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 doing ALTER ROLE .. CONNECTION LIMIT on reserved roles #81

Open
steve-chavez opened this issue Feb 7, 2024 · 3 comments
Open
Labels
enhancement New feature or request

Comments

@steve-chavez
Copy link
Member

Problem

Currently gives an error:

alter role authenticator connection limit 30;

ERROR:  42501: "authenticator" is a reserved role, only superusers can modify it

This is useful for limiting pool connections.

Solution

Allow it.

@steve-chavez steve-chavez added the enhancement New feature or request label Feb 7, 2024
@soedirgo
Copy link
Member

This needs to be more granular, otherwise you'd be able to alter role supabase_admin connection limit 0

@steve-chavez
Copy link
Member Author

@soedirgo We have an undocumented (pending fix) feature that allows for configurable reserved roles by suffixing them with *, like authenticator here:

reserved_roles="supabase_storage_admin, anon, reserved_but_not_yet_created, authenticator*"

https://github.com/supabase/supautils/blob/master/nix/withTmpDb.sh.in#L18

That should clear your concern right?

@soedirgo
Copy link
Member

Hmm yeah, I think that'd work 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants