Skip to content

Dev and deploy run migrations as the same superuser role #141

Description

@OriginDevIT

decisions.md ('Migrations run as the database owner') splits DATABASE_URL_ADMIN from a least-privilege DATABASE_URL, but locally both are the postgres superuser and osds_dev is owned by postgres. The least-privilege path is therefore never exercised — a permission the app role lacks will first appear in a real deployment. Create the app role and grant set as part of the container entrypoint work.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dbpackages/db, schema, migrations

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions