dbwarden-pgsql-rbac
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
Metadata
Release files for dbwarden-pgsql-rbac 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dbwarden_pgsql_rbac-0.2.1.tar.gz | 17.3 kB | With provenance | Details for dbwarden_pgsql_rbac-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dbwarden_pgsql_rbac-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for dbwarden_pgsql_rbac-0.2.1-py3-none-any.whl |
Total release size: 29.1 kB
Release files / dbwarden_pgsql_rbac-0.2.1.tar.gz
| Download URL | dbwarden_pgsql_rbac-0.2.1.tar.gz |
|---|---|
| Size | 17.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f7eb5e16fd304196f542e77d8a67ca767ccfb7fe52186545604b1010a2dd064
|
|
BLAKE2b-256 checksum How to use checksums |
389f1b836fa1eabcf096f9fcfc3375d122159f74f0f454742622645b1840da4e
|
| 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 Sep 1, 2026.
Transparency logRelease files / dbwarden_pgsql_rbac-0.2.1-py3-none-any.whl
| Download URL | dbwarden_pgsql_rbac-0.2.1-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
615fd5c19cb3e9832f16d65ddf92b6f0201512ff9ab4785a7934ba4b7b9e8d7b
|
|
BLAKE2b-256 checksum How to use checksums |
d798b20f8cc444cefa0274d6ab6af9daa62aa3a774dbfdbdd3f2b040851db574
|
| 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 Sep 1, 2026.
Transparency logSecurity for dbwarden-pgsql-rbac 0.2.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for dbwarden_pgsql_rbac-0.2.1.tar.gz
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 Sep 1, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.