Skip to content

Design: Shared database layer for hosted applications - #69

Open
nkakadiya4 wants to merge 3 commits into
mainfrom
shared-database-design
Open

Design: Shared database layer for hosted applications#69
nkakadiya4 wants to merge 3 commits into
mainfrom
shared-database-design

Conversation

@nkakadiya4

Copy link
Copy Markdown

Proposes replacing per-app dedicated MSSQL clusters with a shared database layer: shared-by-default PostgreSQL clusters (dedicated mode opt-in), IAM-only auth, per-service DB roles, schema-per-app isolation, and a new database: app spec block with standard DB_* env vars (no password).

@nkakadiya4
nkakadiya4 requested a review from a team as a code owner July 23, 2026 16:43

@jamesiarmes jamesiarmes left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall design is nice; I especially appreciate the per-server rather than per-app user scoping. Adding a control plane for our hosting service is great idea, but a bit more than we're looking to engineer right now.

Check the comments below, but the largest change will be use OpenTofu rather than a dedicated control plane.

Comment thread docs/design/shared-database-design./shared-database-design.md Outdated
Comment thread docs/design/shared-database-design./shared-database-design.md Outdated
Comment thread docs/design/shared-database-design./shared-database-design.md Outdated
Comment thread docs/design/shared-database-design./shared-database-design.md Outdated
Comment thread docs/design/shared-database-design./shared-database-design.md
Comment thread docs/design/shared-database-design./shared-database-design.md Outdated
Comment thread docs/design/shared-database-design./shared-database-design.md Outdated
Comment thread docs/design/shared-database-design./shared-database-design.md Outdated
@nkakadiya4
nkakadiya4 requested a review from jamesiarmes July 24, 2026 22:14
Comment thread docs/design/shared-database-design./shared-database-design.md Outdated
@nkakadiya4
nkakadiya4 requested a review from jamesiarmes July 27, 2026 18:30
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.

2 participants