docs: add postgres provisioning + RLS conversation transcription #354
Loading…
Reference in a new issue
No description provided.
Delete branch "docs/postgres-security-transcription"
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?
What
Adds
dev-docs/postgres-security.md: a summarized Q/A transcription of the design conversation on how Mokosh provisions its Postgres roles, installs extensions, and enforces row-level security in dev and prod. Kept in prompt/answer form so the path to the answer (including one wrong turn) is the teaching material, not just the conclusion.Why
A reference artifact for others. The core lessons it captures: verify load-bearing premises against the real system before designing (the "extensions are untrusted" comment was false and drove a wrong plan); the four extensions are trusted in PG13+; RLS enforcement depends on the app role's attributes, not the migration role's; and there are always three identities (admin bootstrap + migrator + app), because you cannot authenticate as a role to create that same role.
Notes
Documentation only, no code or behavior change. Filed without a YouTrack issue at the requester's direction. Related implementation work is tracked in PMS-489 through PMS-494.