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

Support grants and revokes on foreign tables #725

Merged

Conversation

nickgsc
Copy link
Contributor

@nickgsc nickgsc commented Aug 26, 2024

SUMMARY

Fixes #724

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

postgresql_privs

ADDITIONAL INFORMATION

See #724 for reproduction steps and the nature of the issue. The fix is straight-forward, we simply need to include relkind='f' in our acls check in order for foreign tables to be considered by the privs module

Copy link
Collaborator

@Andersson007 Andersson007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nickgsc hello, thanks for the PR! LGTM, a rare case when everything necessary like a changelog fragment and tests is in place, well done!

Folks, maybe we should also add to the DOCUMENTATION section that this kind of tables is supported since 3.6.0?

@hunleyd
Copy link
Collaborator

hunleyd commented Aug 28, 2024

Folks, maybe we should also add to the DOCUMENTATION section that this kind of tables is supported since 3.6.0?

probably wouldn't hurt @Andersson007

(hence approving but not merging)

@nickgsc
Copy link
Contributor Author

nickgsc commented Aug 28, 2024

I have one other issue to report (related to the postgresql_subscription module) with a companion PR to fix it that I just haven't gotten a chance to submit yet. Hoping to do that today. So if y'all want to wait to cut a new release for that, we could bundle them up.

@Andersson007
Copy link
Collaborator

I have one other issue to report (related to the postgresql_subscription module) with a companion PR to fix it that I just haven't gotten a chance to submit yet. Hoping to do that today. So if y'all want to wait to cut a new release for that, we could bundle them up.

Sure, please update the docs and we'll merge this PR, then we'll wait for the subscription PR - we have no problem with releasing not as often as we should;)

@nickgsc
Copy link
Contributor Author

nickgsc commented Aug 29, 2024

Sounds good. For reference, the other issue is #726 with the fix PR in #727

I'll push updates to the docs on this PR today

@Andersson007 Andersson007 merged commit f9f18d0 into ansible-collections:main Aug 30, 2024
1 check was pending
@Andersson007
Copy link
Collaborator

@nickgsc thanks for the contribution! @hunleyd thanks for reviewing!

@nickgsc nickgsc deleted the privs-support-foreign-tables branch August 30, 2024 14:38
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.

postgresql_privs does not perform grants on foreign tables
3 participants