Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

define default access privileges for default users too #1512

Merged
merged 4 commits into from
Jun 22, 2021

Conversation

FxKu
Copy link
Member

@FxKu FxKu commented Jun 2, 2021

Using preparedDatabases allows you to create a set of pre-defined owner, reader and writer NOLOGIN roles. With defaultUsers enabled LOGIN roles can be created to which inherit all privileges from their NOLOGIN counterparts except for defalt access privileges. This means, when using tools such as flyway one has to make sure that the NOLOGIN owner role is set before creating new tables. If the migration is executed with the <dbName>[_<schemaName>]_owner_user role, reader and writer roles will have no access.

Because such behavior is not very obvious to users, this PR suggests to define default access privileges on the LOGIN roles, too.

Closes #1170

@FxKu FxKu added this to the 1.7 milestone Jun 2, 2021
@FxKu FxKu added the zalando label Jun 2, 2021
@sdudoladov
Copy link
Member

👍

@sdudoladov
Copy link
Member

👍

1 similar comment
@FxKu
Copy link
Member Author

FxKu commented Jun 22, 2021

👍

@FxKu FxKu merged commit 54e506c into master Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default privileges not setup up for the <db>_owner_user role
2 participants