Consider switching to negation syntax for policies

Abierto
#398 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 17 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
30/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
python
Área
security

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
4.3k
Forks
233
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de jtesta/ssh-audit

Todos los issues de jtesta/ssh-audit

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.