Skip to content

GRANT OPTION is not tested #1570

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

Open
steve-chavez opened this issue Apr 23, 2025 · 0 comments
Open

GRANT OPTION is not tested #1570

steve-chavez opened this issue Apr 23, 2025 · 0 comments

Comments

@steve-chavez
Copy link
Member

Problem

GRANT OPTION is not tested on vault tests and some others:

schema | object_name | grantee | privilege_type
--------+---------------------------+----------------+----------------
vault | _crypto_aead_det_decrypt | postgres | EXECUTE
vault | _crypto_aead_det_decrypt | supabase_admin | EXECUTE
vault | _crypto_aead_det_encrypt | supabase_admin | EXECUTE
vault | _crypto_aead_det_noncegen | supabase_admin | EXECUTE
vault | create_secret | postgres | EXECUTE
vault | create_secret | supabase_admin | EXECUTE
vault | decrypted_secrets | postgres | DELETE
vault | decrypted_secrets | postgres | SELECT

For reference, GRANT OPTION is added like

grant select, delete, truncate, references on vault.secrets, vault.decrypted_secrets to postgres
with grant option;

Not testing this can cause regressions.

Solution

Add GRANT OPTION to all db object privilege tests.

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

No branches or pull requests

1 participant