Skip to content

implement DDL/utility command firewall via ProcessUtility hook#1

Merged
rustwizard merged 7 commits into
masterfrom
command-fw
Mar 29, 2026
Merged

implement DDL/utility command firewall via ProcessUtility hook#1
rustwizard merged 7 commits into
masterfrom
command-fw

Conversation

@rustwizard

Copy link
Copy Markdown
Owner

No description provided.

@rustwizard rustwizard self-assigned this Mar 28, 2026
- Rename audit schema from pg_command_fw to command_fw (pg_ prefix is reserved)
- Add Dockerfile, docker-compose.yml for building and running tests in Docker
- Add tests/docker/test.sh with 25 integration tests covering all GUC settings,
  blocking rules, audit log behaviour, and regular SQL passthrough
- Add .github/workflows/ci.yml that runs docker compose on push/PR to master
Add pg_command_fw.block_copy flag (default off). When enabled, plain
COPY TO/FROM file or stdout is blocked for non-superusers. Superusers
remain exempt unless listed in blocked_roles. Add integration tests.
@rustwizard rustwizard merged commit 0932f02 into master Mar 29, 2026
1 check passed
@rustwizard rustwizard deleted the command-fw branch March 29, 2026 09:12
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