Repository navigation
Conversation
- state_backends / state_bindings in GitDB, credentials AES-GCM encrypted (AAD = backend id) - ObjectStore (GCS, S3 + compatible, in-memory) with streaming gunzip and size limit - Basic Pulumi DIY discovery (project and legacy layouts) to assign projects - organization:stateiac:backends:* and stacks:read permissions, org admin gets all - API /api/state-iac/backends/** and settings page /org/<org>/settings/state-iac - state_iac.backend.* and state_iac.binding.updated events (no credentials) - Removes the old storage module and the dead /settings/storage redirect Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The project service no longer forces `modules.stateiac` to false and the settings switch is no longer "coming soon". It stays off by default. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
Incluido en |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fase 1 de State IaC (#105). La organización configura los buckets donde guarda el estado de Pulumi (GCS, S3 o compatibles) y asigna cada proyecto de Pulumi que hay en ellos a un proyecto de GitOps. El bucket solo se lee. Además, el módulo State IaC ya se puede activar en los ajustes del proyecto.
Va apilada sobre #113 (fase 0): conviene fusionar esa primero.
Closes #106
Cambios
state_backends: un bucket con prefijo opcional por organización. Las credenciales se cifran con AES-GCM usandoGITDB_ENCRYPTION_KEY, con el id del backend como AAD, y la API y la UI solo devuelvenhasCredentials.state_bindings: un registro por cada proyecto de Pulumi de un backend, que apunta a un proyecto de GitOps de la misma organización. Sistacksestá vacío, cubre todos los stacks.registerStateIac()escuchaproject.deleted.$modules/state-iac:StateBackendServiceyStateBindingService, con errores por campo (stateIac.errors.<code>).ObjectStorecon tres implementaciones:GcsObjectStore,S3ObjectStore(también para endpoints compatibles) yInMemoryObjectStore. Hace streaming, descomprime gzip detectándolo por el contenido y tiene un límite de 50 MB..bak, las copias retenidas y los locks.http(s)://host[:puerto]y bloquea loopback, link-local y metadata. Las redes privadas se permiten, para MinIO.access_denied,bucket_not_found…) y nunca el mensaje del proveedor.organization:stateiac:backends:{read,create,update,delete,test,all}yorganization:stateiac:stacks:{read,all}.GET|POST /api/state-iac/backendsGET|PATCH|DELETE /api/state-iac/backends/[id]POST …/[id]/testGET …/[id]/projectsPUT|DELETE …/[id]/projects/[pulumiProject]/org/<org>/settings/state-iaccon un modal de alta y edición, "Probar conexión" y activar/desactivar. Para borrar un backend hay que escribir su nombre.state_iac.backend.created|updated|deletedystate_iac.binding.updated, enDomainEventMapy en el catálogo, sin credenciales.modules.stateiacafalsey el interruptor de ajustes deja de salir como "Próximamente". Por defecto sigue desactivado.src/modules/storagey la redirección muerta/org/<org>/settings/storage.Tests
bun run checksale sin errores y pasan los 864 tests unitarios. Hay 54 nuevos: servicios, API, cifrado,ObjectStorey descubrimiento contra los fixtures de Feat: State IaC spike, ADR 0003 y fixtures de Pulumi DIY (#110) #113.state-iac-backends.spec.tsy la personaorgStateIacReader. Solo quien tieneorganization:stateiac:backends:*puede configurar backends y asignaciones. También hay un e2e que activa y desactiva el módulo en los ajustes del proyecto. Pasan 94 e2e. Fallan 2 debrand-ui.spec.ts, que fallan igual sin estos cambios.Pendiente
InMemoryObjectStore./state-iacdel proyecto todavía no muestra stacks: eso llega en [State IaC] Fase 2: Stacks, recursos y outputs por proyecto #107.🤖 Generated with Claude Code