Consider switching to negation syntax for policies

Đang mở
#398 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 17 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
30/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
security

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
4.3k
Fork
233
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của jtesta/ssh-audit

Tất cả issue của jtesta/ssh-audit

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.