Prepare PostgreSQL and secret wiring for Attic #5
Labels
No labels
host:electra
host:fleet
host:lyra
host:vega
host:vega
phase:cutover
phase:deploy
phase:mcp
phase:module
phase:packaging
phase:prep
phase:validation
project:attic-postgres-lyra-rollout
project:auto-update-reliability
project:declarative-purity-cleanup
project:external-review
project:host-facts-refactor
project:lyra-nixos-deploy
project:lyra-service-stack-migration
project:nebula-mesh-network
project:security-hardening
project:service-stack-migration
project:vega-sillytavern-cutover
service:auto-update
service:mem0
service:sillytavern
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
nimmo/nixos-config#5
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Prepare the PostgreSQL-backed Attic metadata path before introducing a second Attic node.
Scope
This issue covers the preparatory work from
projects/attic-postgres-lyra-rollout.mdPhase 1.Acceptance Checklist
Implementation Outline
modules/services/atticd.nixto readdatabase.urlfrom that secret-backed source.Verification
Success means the credentials work and the database is reachable from the Attic host.
Notes
lyrabefore this is done.Progress update:
modules/services/atticd.nix.attic/token/rs256_secret_base64andattic/database/urlfromsecrets/attic.yamlvia SOPS.database.urlfrom the Nix config and now injectATTIC_SERVER_DATABASE_URLthrough the service environment.secrets/README.mdto document the new Attic secret layout.nix flake checkpassed after the wiring change.Remaining work for this issue is the live PostgreSQL side:
Further progress update:
vegawith a remote staged deploy:rsync -a --delete --exclude=.git ./ nimmo@vega:~/nixos-staging/ssh -t nimmo@vega 'sudo nixos-rebuild test --flake /home/nimmo/nixos-staging#vega'sops-install-secretsaddedatticd-database-urland updated the renderedatticd-envsecret template during activation.What remains for this issue:
secrets/attic.yamlvegaConnectivity progress update:
vegatonova.meshusing a one-offpsqlinvocation vianix shell nixpkgs#postgresql.Did not find any relations., which is consistent with an empty database before Attic creates its tables.Remaining note for final acceptance:
attic/database/urlso the issue is validated with the exact service identity, not just a general PostgreSQL login.Final validation update:
vegausing the real Attic database credentials (redacted in terminal transcript) via a one-offpsqlcheck.Did not find any relations., which is expected for a newly created empty database before Attic initializes schema.This completes the scope of this issue:
vegatest activation succeeded with the new secret-backed environment