oidc-provider: optional `oidc_session_name` backend-option to override RoleSessionName derivation
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- aws, rust
Línea de trabajo
Si se activa esta mejora, comienza por AwsBackendAuth::resolve_aws y la construcción de AwsExchange; después, revisa cómo backend_options gestiona oidc_role_arn y oidc_subject. Se considera terminado cuando se acepta un oidc_session_name opcional sin cambiar el valor predeterminado existente, se mantiene su saneamiento y queda cubierto por las pruebas relevantes del repositorio.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Context
#83 makes AwsBackendAuth::resolve_aws derive the assumed-role RoleSessionName from the per-connection oidc_subject (scv1:conn:{id}), sanitized to AWS's [\w+=,.@-]{2,64} charset, instead of the constant s3-proxy. This gives consumers per-connection attribution in their CloudTrail.
The session name is currently non-overridable through the middleware: AwsBackendAuth builds the AwsExchange internally from backend_options, and while AwsExchange.session_name is a pub field, using it requires bypassing the middleware entirely (reimplementing the credential-resolution path). So a consumer that wants a different session-name format has no practical hook.
Proposed enhancement (deferred)
Read an optional oidc_session_name backend-option, falling back to the derived-from-subject default:
let session = config.option("oidc_session_name")
.map(sts_session_name) // still sanitize — STS rejects bad input either way
.unwrap_or_else(|| sts_session_name(subject));
exchange.session_name = session;
This reuses the existing string-option mechanism (oidc_role_arn, oidc_subject are passed exactly this way), so it's ~2 lines, adds no new public type/trait/closure, and is fully backward-compatible.
Why it is NOT being added now
- One consumer, one policy. The only known consumer is
source-cooperative/data.source.coop(PR #147), and it wants exactly the derived-from-subject behavior. A configuration knob for a value that never varies is speculative generality. - The default is essentially forced, not opinionated. AWS requires a valid
RoleSessionName; "a sanitized rendering of the subject the caller already supplied" is the sane universal default, not one option among several competing strategies anyone has requested. - Waiting costs nothing. Because
backend_optionsis already an open string map,oidc_session_namecan be added the day a second consumer (or a specific CloudTrail naming convention) actually needs a different format — as a non-breaking one-liner, with no redesign. Adding it now would ship an unused knob (YAGNI).
Trigger to revisit
Add the option when any of these becomes real:
- A second consumer of
multistore-oidc-providerneeds a session-name format other than the sanitized subject. - A consumer needs the session name to encode something else (e.g. role name, a fixed prefix, a hash) to satisfy a CloudTrail /
aws:useridconvention or a resource-policyaws:RoleSessionNamecondition. - The sanitization default proves lossy in practice (e.g. truncation collisions that matter for attribution).
Refs: #83
- Lenguaje dominante
- Rust
- Estrellas
- 20
- Forks
- 1
- Merge medio
- 8 h 29 min
- PR fusionados (30 d)
- 2
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin 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 developmentseed/multistore
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
developmentseed/multistore#160 ·
-
List of a prefix 503s when a single object key contains an empty path segment (//)Posiblemente ocupada @alukach la tomó hace 104 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
developmentseed/multistore#116 · 1 comentario ·
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 68/100
-
Credential cache key (role ARN) doesn't capture the full minted identity (subject + extra_claims)Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 65/100
Todos los issues de developmentseed/multistore
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
Rename SerVtdExt to ServtdExtAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 2 días
-
Android visitors are offered the Linux .deb on cap.so's homepage and download pagePosiblemente ocupada @patrickballard la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
CapSoftware/Cap#3677 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
DioxusLabs/blitz#1371 ·
Los mantenedores suelen responder en 1 día