Skip to content

Pg 1545 Update test case to cover grant grant management to role scenario #237

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
wants to merge 2 commits into
base: TDE_REL_17_STABLE
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions contrib/pg_tde/expected/access_control.out
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ SELECT pg_tde_grant_key_viewer_to_role('regress_pg_tde_access_control');

(1 row)

select pg_tde_grant_grant_management_to_role('regress_pg_tde_access_control');
pg_tde_grant_grant_management_to_role
---------------------------------------

(1 row)

SET ROLE regress_pg_tde_access_control;
-- should now be allowed
SELECT pg_tde_add_database_key_provider_file('file-vault', '/tmp/pg_tde_test_keyring.per');
Expand Down
1 change: 1 addition & 0 deletions contrib/pg_tde/sql/access_control.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ RESET ROLE;

SELECT pg_tde_grant_database_key_management_to_role('regress_pg_tde_access_control');
SELECT pg_tde_grant_key_viewer_to_role('regress_pg_tde_access_control');
SELECT pg_tde_grant_grant_management_to_role('regress_pg_tde_access_control');

SET ROLE regress_pg_tde_access_control;

Expand Down
Loading