Skip to content

fix: add missing REVOKE on config-write functions#64

Merged
YuweiXiao merged 1 commit into
mainfrom
worktree-revoke-config-functions
Mar 30, 2026
Merged

fix: add missing REVOKE on config-write functions#64
YuweiXiao merged 1 commit into
mainfrom
worktree-revoke-config-functions

Conversation

@YuweiXiao

Copy link
Copy Markdown
Contributor

Summary

  • set_config() and set_group_config() were missing REVOKE ALL ON FUNCTION ... FROM PUBLIC, allowing any database user to modify global and per-group pipeline configuration
  • All 12 other management functions already had this protection — these two were the only gap
  • Added ACL regression test coverage for both config-write (denied) and config-read (allowed) functions

Test plan

  • make check-regression TEST=acl — verifies set_config and set_group_config are denied for non-superusers, and get_config/get_group_config remain accessible
  • Full regression suite (42/42 tests pass)

🤖 Generated with Claude Code

These two config-write functions were missing REVOKE ALL ... FROM PUBLIC,
allowing any database user to modify global and per-group configuration.
All other management functions already had this protection.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@YuweiXiao YuweiXiao merged commit 606cd8a into main Mar 30, 2026
5 checks passed
@YuweiXiao YuweiXiao deleted the worktree-revoke-config-functions branch March 30, 2026 02:47
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.

1 participant