[rfc] Separate Chains controller system and userspace identities.
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
Línea de trabajo
Empieza leyendo la sección sobre keyless signing de docs/sigstore.md y la discusión sobre el límite de confianza de la propuesta. No se nombran archivos de implementación ni pruebas; el issue es un RFC, por lo que avanzar requiere decidir si se acepta el diseño del controlador con dos cuentas de servicio y definir el alcance de su despliegue y configuración.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Writing down some thoughts that have been rattling in my head for a bit. Please leave any feedback + comments!
/cc @lcarva @chitrangpatel for explicit feedback, but feedback welcome from everyone.
tl;dr: I think we should separate Chains into 2 separate service account identities: trusted build provenance attestations and untrusted userspace signing.
Background
Chains today will sign 2 types of things:
- Build (i.e. Run) Provenance that it generates itself
- OCI images specified in Run output by user pipelines.
Today, we run Chains in a single reconciler with a single service account and single config - this means that the same key/identity that is used to sign build provenance is also used to sign OCI refs that users output from their pipelines.
This can make it hard to reason about the trust boundary of things Chains signs - especially if clients choose to do unexpected things like have Chains sign an "OCI image" that is actually another provenance document, or something that wasn't actually output by the Pipeline.
Proposal
Split the trust boundary into 2 parts separated by service account:
- tekton-chains (existing service account): service account that outputs trusted system-generated provenance.
- tekton-chains-userspace: service account that outputs "untrusted" (really depends on how much you trust the underlying pipelines) userspace derived signatures.
By separating by service account, we can guarantee distinct identities even with use of keyless signing. The consequence of this means that the controller will need to be split into 2 deployments/configs/etc. (one for each service account), though this also opens up a bunch of possibilities for different Chains deployments such as having a cluster-wide build provenance config (tekton-chains) and configurable namespace/tenant configs (tekton-chains-userspace).
Alternatives
- Remove OCI signing from chains and recommend everyone to sign in their Runs - I think there's value in having the auto-sign behavior, even if it doesn't give you as much metadata as signing within the build itself. I'd like to avoid this.
- Keep things as they are - This is going to be a problem for deployments where the Chains operators don't trust the user pipelines (this came up in a recent Slack thread). I think we need some answer.
- Same controller/service account, different configs / keys - This won't work for keyless signing, since they'd have the same identity.
- Lenguaje dominante
- Go
- Estrellas
- 279
- Forks
- 171
- Merge medio
- 2 d 4 h
- PR fusionados (30 d)
- 70
Preparar el entorno
- Sin Dockerfile ni 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 tektoncd/chains
-
Add missing fields in `config.md` docsPosiblemente ocupada @cvas22 la tomó hace 18 días. Abiertokind/feature lifecycle/frozen
Dificultad 1/5 1-3 horas Aptitud para principiantes 65/100
tektoncd/chains#748 · 3 comentarios ·
Los mantenedores suelen responder en 2 días
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 42/100
tektoncd/chains#2024 · 2 reacciones ·
Los mantenedores suelen responder en 2 días
-
Bug: MarkSigned called despite signer-load or format-not-found failures (signed=true with no signature)Posiblemente ocupada @anithapriyanatarajan la tomó hace 118 días. Abiertokind/bug
tektoncd/chains#1796 · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
Warn when non-default TUF mirror URL is configuredQuizá libre de nuevo @anithapriyanatarajan la tomó hace 166 días y no hay ningún pull request abierto. Abiertokind/feature
tektoncd/chains#1665 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
Warn or block when OCI storage uses result-derived registry without storage.oci.repositoryPosiblemente ocupada @ahmedbektic la tomó hace 38 días. Abiertokind/feature
Dificultad 3/5 1-2 días Aptitud para principiantes 62/100
Los mantenedores suelen responder en 2 días
Todos los issues de tektoncd/chains
Issues similares
-
Support kubevirt CRDsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
rancher/rancher-ai-mcp#206 ·
Los mantenedores suelen responder en 1 día
-
test: make command and stdio startup tests portablePosiblemente ocupada @dajiaohuang la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
mark3labs/mcp-go#1220 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Project submission: Agent8088Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
open-telemetry/opentelemetry-go-compile-instrumentation#1743 ·
Los mantenedores suelen responder en 2 días
-
FindInBatches panics for non-positive batch sizesPosiblemente ocupada @Dazhou-del la tomó hoy. Abiertotype:with reproduction steps
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día