Trust policy principals are matched by ARN and are not bound to a unique id
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- aws, rust
- Área
- authentication, security
Línea de trabajo
Start with principal_entry_matches in crates/server/src/management/assume_role.rs, then trace where trust policies are saved and how role and user IDs are assigned. Compare the behavior with the IAM trust policy rules described in the issue. Done means a trust policy bound to a principal stops matching a recreated role or user with the same ARN, while the documented account and root principal matches still work.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What ExtendDB does
principal_entry_matches in crates/server/src/management/assume_role.rs compares a trust policy Principal entry against the caller by exact ARN string, with extra matches for a bare account id and the arn:aws:iam::<account>:root form. ExtendDB stores no principal unique id. A role or user that is deleted and recreated with the same name keeps the same ARN, so it matches a trust policy written for the original principal.
What IAM does
The IAM User Guide (the Principal element of a role trust policy) states that IAM converts a role or user ARN in a trust policy to the principal's unique id when the policy is saved, so a principal that is deleted and recreated with the same name no longer matches. Measured across a delete and recreate: GetRole returns a new RoleId and GetUser a new UserId for the recreated principal.
Effect
A trust relationship meant for one incarnation of a role or user is inherited by a later principal that carries the same name. Deleting and recreating a principal does not drop the trust another role extended to the earlier one.
Suggested fix
Bind a trust policy's named principal to the principal's unique id at write time and match on that id, so a recreated same-named principal does not satisfy a trust policy written for the earlier one.
- Lenguaje dominante
- Rust
- Estrellas
- 517
- Forks
- 60
- Merge medio
- 2 d 23 h
- PR fusionados (30 d)
- 25
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ExtendDB/extenddb
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 2 días
-
[storage.cassandra] accepts unknown keys silentlyPosiblemente ocupada @LeeroyHannigan la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
ExtendDB/extenddb#540 · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 2 días
Todos los issues de ExtendDB/extenddb
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
manuscript-lang/manuscript#1364 ·
Los mantenedores suelen responder en 1 día
-
`printf "%o"` prints decimalAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
fable-compiler/Fable#5157 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
Los mantenedores suelen responder en 1 día
-
C-bug needs-triage O-UEFI T-libs
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día