Skip to content

feat(db): techgarden_app role + techgarden database (backend consolidation P1)#261

Merged
TechGardenCode merged 1 commit into
mainfrom
feature/techgarden-app-role-and-database
Jul 17, 2026
Merged

feat(db): techgarden_app role + techgarden database (backend consolidation P1)#261
TechGardenCode merged 1 commit into
mainfrom
feature/techgarden-app-role-and-database

Conversation

@TechGardenCode

Copy link
Copy Markdown
Owner

Prerequisite P1 for techgarden PR #109 (ADR-0030 / ADR-0031 — merge the five per-service databases into one techgarden database, schema per module).

What this adds to the shared 1276-dev postgresql cluster

  • Database CR techgarden-database — adopts the existing (empty) techgarden DB created by the cluster bootstrap, reassigning owner techgardencodetechgarden_app. databaseReclaimPolicy: retain.
  • Managed role techgarden_appLOGIN NOSUPERUSER NOBYPASSRLS inherit, mirroring the four per-service roles. NOSUPERUSER NOBYPASSRLS is the ADR-0018 RLS invariant.
  • ExternalSecret techgarden-db-app-credentials — password parity with the five product-namespace app secrets in the techgarden repo.

Password sourcing

Reuses the former iris_app Bitwarden entry (6389718c-…), promoted to techgarden_app — nothing connects as iris_app after 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 backs techgarden_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 makes techgarden_app + the techgarden DB available so the techgarden overlays can be repointed and PR #109 merged.

🤖 Generated with Claude Code

…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)
@TechGardenCode
TechGardenCode merged commit aabb85a into main Jul 17, 2026
6 checks passed
@TechGardenCode
TechGardenCode deleted the feature/techgarden-app-role-and-database branch July 17, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant