You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Puzzling behaviour when revoking default_privs: using state: absent disregards both objs and privs, and just revokes all on TABLES, SEQUENCES and TYPES
I expect this to run: ALTER DEFAULT PRIVILEGES FOR ROLE writers IN SCHEMA public REVOKE TRUNCATE,TRIGGER ON TABLES FROM developers
ACTUAL RESULTS
What it runs (as indicated by ansible-playbook -vvv):
"queries": [
"ALTER DEFAULT PRIVILEGES FOR ROLE \"writers\" IN SCHEMA \"public\" REVOKE ALL ON TABLES FROM \"developers\";\nALTER DEFAULT PRIVILEGES FOR ROLE \"writers\" IN SCHEMA \"public\" REVOKE ALL ON SEQUENCES FROM \"developers\";\nALTER DEFAULT PRIVILEGES FOR ROLE \"writers\" IN SCHEMA \"public\" REVOKE ALL ON TYPES FROM \"developers\";"
]
my assumption is "state: absent" triggers a default behaviour that removes all permissions for a hardcoded list of object types, and that's it.
The text was updated successfully, but these errors were encountered:
dmorel
changed the title
community.postgresql.postgresql_privs behaviour: state: absent
community.postgresql.postgresql_privs puzzling behaviour on state: absent
Sep 15, 2023
SUMMARY
Puzzling behaviour when revoking default_privs: using state: absent disregards both objs and privs, and just revokes all on TABLES, SEQUENCES and TYPES
ISSUE TYPE
COMPONENT NAME
community.postgresql.postgresql_privs
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
I expect this to run: ALTER DEFAULT PRIVILEGES FOR ROLE writers IN SCHEMA public REVOKE TRUNCATE,TRIGGER ON TABLES FROM developers
ACTUAL RESULTS
What it runs (as indicated by ansible-playbook -vvv):
my assumption is "state: absent" triggers a default behaviour that removes all permissions for a hardcoded list of object types, and that's it.
The text was updated successfully, but these errors were encountered: