Consider switching to negation syntax for policies

オープン
#398 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 17 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
python
領域
security

調査の方向性

Read the related issues #350 and #363, then inspect how policies currently define supported algorithms and how those policies are applied. The issue proposes changing policy behavior but leaves the syntax and design open; done would require a decided approach that handles new defaults and newly insecure algorithms safely.

索引モデルが issue の本文から書いたものです。

説明

Currently policies set a fixed set of algorithms. I think it would be better to only disable certain algorithms (maybe also enable some that are supported, but disabled by default in that version), but otherwise leave the default lists untouched.

To me the question is about future-proofing, enabling new algorithms and the need to update the policies.

Currently with a fixed list when upgrading to a new OpenSSH version the new algorithms are disabled, even though they are safe, post-quantum-secure algorithms. Also a newer version might disable some algorithm because it has become insecure. But with these policies I currently re-enable them and have to manually update the policy to protect against these attacks.

For sure, one should regularly audit and update the policy according to best practices, but unfortunately, often this is not possible due to time constraints and one has to just reuse existing configuration and hope for good defaults.

With the negation syntax one could disable all insecure or otherwise unwanted crypto while leaving the the opportunity to get new crypto on an upgrade without explicitly needing to enable them and now outdated crypto would then also get disabled.

It happens regularly that crypto that was deemed secure before, is now regarded as insecure, but I am not aware of any case where a cryptographic algorithm was deemed broken and then later turned out to be secure.

relates to #350 and #363

I am open for other arguments.

主要言語
Python
スター
4.3k
フォーク
233
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

jtesta/ssh-audit のほかの issue

jtesta/ssh-audit の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。