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

Allow to set some PGC_SUSET GUCs from db owner #340

Closed
wants to merge 2 commits into from

Conversation

lubennikovaav
Copy link

Working on anon ext support (neondatabase/neon#6272), I bumped into superuser only GUCs, ie.
i.e.

DefineCustomStringVariable
(
"anon.salt",
"The salt value used for the pseudonymizing functions",
"",
&guc_anon_salt,
"",
PGC_SUSET,
GUC_SUPERUSER_ONLY,
documentation

We don't provide superuser access in neon, only neon_superuser.
So it is impossible for clients to use this extension with dynamic masking.
It is not secure to simply change it to PGC_USERSET.

I propose to allow some PGC_SUSET GUCs to be set by db_owner.

This is not the most beautiful solution, but it seem to work.

@lubennikovaav
Copy link
Author

This is not needed. Patch anon extension instead and use functions to set GUCs.

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