Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

OSPS-SA-03.02 sets security.threat_model.path unconditionally

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

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
68/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
python
Área
security

Línea de trabajo

Start by reading the generate_threat_model plugin handler and the file_create.project_reference behavior described in FR-015/FR-016. Check how the handler reports file creation and how the existing reference value is handled. Done means the reference is recorded only for a file created in that run, without replacing a different existing path.

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

Descripción

module-baseline quality

The OSPS-SA-03.02 remediation sets security.threat_model.path through an unconditional project_update, whether or not a threat model file was created in that run. It can also replace a path the project already set.

On the 043 branch, other controls record file references only through file_create.project_reference: the reference is recorded only for a file created in that run, and only into an empty field (FR-015/FR-016). SA-03.02 generates its file through the generate_threat_model plugin handler rather than file_create, so it was left as it was.

Fix: record the reference only when the handler reports that it created the file, using the same "empty or equal" rule. Related to #482.

Found while implementing feature 043 (remediation safety, branch 043-remediation-safety, not yet merged).

Lenguaje dominante
Python
Estrellas
22
Forks
27
Merge medio
2 d 28 min
PR fusionados (30 d)
40

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 darnitdevorg/darnit

Todos los issues de darnitdevorg/darnit

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.