Skip to content

feat: introduce least-privilege realtime user#1954

Open
leandrocp wants to merge 1 commit into
mainfrom
lp-superuser-conn-migration
Open

feat: introduce least-privilege realtime user#1954
leandrocp wants to merge 1 commit into
mainfrom
lp-superuser-conn-migration

Conversation

@leandrocp

Copy link
Copy Markdown
Contributor

Realtime needs superuser to run migrations to bootstrap the project, including roles and permissions setup.

Runtime on the other hand should connect as least-privilege, more controlled role for security reasons, which is the DB_USER_REALTIME added in this PR.

That role is optional to avoid disruption of existing projects and/or cases where superuser is still needed.

Follow-up of #1852 and part of Migrations v2 project.

Realtime needs superuser to run migrations to bootstrap the project,
including roles and permissions setup.

Runtime on the other hand should connect as least-privilege, more
controlled role for security reasons, which is the DB_USER_REALTIME
added in this PR.

That role is optional to avoid disruption of existing projects and/or
cases where superuser is still needed.

Follow-up of #1852
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