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

PRISMA_FIELD_DECRYPTION_KEYS is never set, so the AES key cannot be rotated

Abierto
#946 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
57/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
helm, typescript
Área
backend, security

Línea de trabajo

Start with .helm/ctrl/templates/backend/deployment.yaml and cron.yaml, where PRISMA_FIELD_ENCRYPTION_KEY is currently set; then check how the application and prisma-field-encryption read environment variables. Configure retired decryption keys through PRISMA_FIELD_DECRYPTION_KEYS while preserving the current key setup. Done when both deployments can load the retired keys needed for gradual rotation and restoring backups.

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

Descripción

backend tech debt

We have no way to hold more than one encryption key at a time. PRISMA_FIELD_ENCRYPTION_KEY is set in .helm/ctrl/templates/backend/deployment.yaml and cron.yaml, and that single key is all the app ever sees.

prisma-field-encryption does support more. It takes a current encryption key plus a list of retired decryption keys via PRISMA_FIELD_DECRYPTION_KEYS, and every encrypted value already carries a fingerprint of the key that wrote it, so reads can pick the right one per row. We just never configure the list.

Two things depend on that:

  1. Rotation. Changing the key means decrypting everything under the old one and re-encrypting under the new one. With only one key loaded, there's no window where both are available, so it can't be done gradually.
  2. Old backups. A backup stays tied to whichever key was current when it was taken. Restoring one and reading the encrypted columns needs that key, whether or not we've rotated since.

So retired keys would need to outlive the backups that depend on them, and right now there's no mechanism to load them even if we kept them somewhere.

Lenguaje dominante
TypeScript
Estrellas
4
Forks
0
Merge medio
14 h 50 min
PR fusionados (30 d)
5

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 Garvan-Data-Science-Platform/ctrl

Todos los issues de Garvan-Data-Science-Platform/ctrl

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.