Skip to main content

dbwarden-pgsql-rbac

Python PyPI CI

PostgreSQL RBAC object handlers for DBWarden.

Brings roles, grants, default privileges, and row-level security policies into DBWarden's schema diff, so access control is versioned and migrated alongside your tables.

Object types

Object type Manages
role CREATE/ALTER/DROP ROLE, including LOGIN, SUPERUSER, and connection limits
default_privileges ALTER DEFAULT PRIVILEGES
policies CREATE/ALTER/DROP POLICY and ROW LEVEL SECURITY state
grants GRANT / REVOKE on tables and other objects

Roles register first: nothing can be granted to a role that does not exist yet, and both policies and default privileges reference roles by name.

Installation

dbwarden plugin add dbwarden-pgsql-rbac

Trust tier

This is an official DBWarden plugin. Its distribution name is classified before any of its code is imported, and dbwarden plugin add verifies the PyPI Trusted-Publishing attestation (PEP 740) against dbwarden-org/dbwarden-pgsql-rbac before installing. It loads automatically once installed, with no dbwarden plugin trust step.

Development

uv venv && uv pip install -e . -e ../dbwarden pytest
pytest -q

The tests/test_conformance.py suite runs DBWarden's shared conformance harness (dbwarden.plugin_conformance): entry point resolution, no import-time side effects, hook signatures, public-API-only imports, and idempotent setup().

License

MIT

Release files for dbwarden-pgsql-rbac 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dbwarden-pgsql-rbac 0.2.0
File Size Uploaded
dbwarden_pgsql_rbac-0.2.0.tar.gz 17.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dbwarden-pgsql-rbac 0.2.0
File Interpreter ABI Platform
dbwarden_pgsql_rbac-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 29.1 kB

Release files / dbwarden_pgsql_rbac-0.2.0.tar.gz

Download URL dbwarden_pgsql_rbac-0.2.0.tar.gz
Size 17.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8e58f8f6c264101f9cd4d6904053f1cd0bfb4fec0d917c0fa589136a6d595db0
BLAKE2b-256 checksum
How to use checksums
db163c056d19d67c91efb6dc5a00832a1c85dd886172e29383991c24e78e7c1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 6, 2026.

Transparency log

Release files / dbwarden_pgsql_rbac-0.2.0-py3-none-any.whl

Download URL dbwarden_pgsql_rbac-0.2.0-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b64f2cf62af2f57cf2b9ea60b16444f066c6a9b29778796f7063e5f0edb2056
BLAKE2b-256 checksum
How to use checksums
e9e025262898d9fc6c8e9c516df51c0e4a36f26eaf71b14b23ee300d2ea69b18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 6, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.1

2 release files

This release

0.2.0 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page