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.1

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.1
File Size Uploaded
dbwarden_pgsql_rbac-0.2.1.tar.gz 17.3 kB Details

Built distribution (wheel)

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

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 log

Release 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 log

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

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