feat(db): techgarden_app role + techgarden database (backend consolidation P1)#261
Merged
Merged
Conversation
…onsolidation Prerequisite (P1) for techgarden PR #109 (ADR-0030/0031, schema-per-module). Adds to the shared 1276-dev postgresql cluster: - Database CR techgarden-database (adopts existing techgarden DB, owner -> techgarden_app) - managed role techgarden_app (LOGIN NOSUPERUSER NOBYPASSRLS, the RLS invariant) - ExternalSecret techgarden-db-app-credentials, reusing the iris_app Bitwarden entry (promoted to techgarden_app; nothing connects as iris_app post-cutover) Per-service DBs/roles stay untouched as the PR1 rollback. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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.
Prerequisite P1 for techgarden PR #109 (ADR-0030 / ADR-0031 — merge the five per-service databases into one
techgardendatabase, schema per module).What this adds to the shared
1276-devpostgresqlclustertechgarden-database— adopts the existing (empty)techgardenDB created by the cluster bootstrap, reassigning ownertechgardencode→techgarden_app.databaseReclaimPolicy: retain.techgarden_app—LOGIN NOSUPERUSER NOBYPASSRLS inherit, mirroring the four per-service roles.NOSUPERUSER NOBYPASSRLSis the ADR-0018 RLS invariant.techgarden-db-app-credentials— password parity with the five product-namespace app secrets in the techgarden repo.Password sourcing
Reuses the former
iris_appBitwarden entry (6389718c-…), promoted totechgarden_app— nothing connects asiris_appafter the cutover. Avoids minting a new Secrets Manager entry. PR2 caution (commented in the file): do not delete that Bitwarden entry when retiring the per-service roles; it now backstechgarden_app.Safety
The per-service DBs/roles (
iris/dopamenu/plates/notifications) are untouched — they remain the PR1 rollback. Merging this alone changes nothing about the running services; it only makestechgarden_app+ thetechgardenDB available so the techgarden overlays can be repointed and PR #109 merged.🤖 Generated with Claude Code