dbwarden-ch-rbac
ClickHouse RBAC object handlers for dbwarden.
Teaches dbwarden's schema diff to manage ClickHouse access control the same way it manages tables: extracted from a live snapshot, diffed against your models, and emitted as reversible migration SQL.
Object types
| Object type | Manages |
|---|---|
ch_settings_profile |
CREATE/ALTER/DROP SETTINGS PROFILE |
ch_role |
CREATE/ALTER/DROP ROLE |
ch_user |
CREATE/ALTER/DROP USER, including auth, host, and default roles |
ch_quota |
CREATE/ALTER/DROP QUOTA |
ch_row_policy |
CREATE/ALTER/DROP ROW POLICY |
ch_named_collection |
CREATE/ALTER/DROP NAMED COLLECTION, with secret values redacted in snapshots |
ch_grant |
GRANT / REVOKE |
Handlers register in ClickHouse's RBAC dependency order (profiles, then roles, then users, then everything that references them) so a single migration applies cleanly in one pass.
Installation
dbwarden plugin add dbwarden-ch-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-ch-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-ch-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_ch_rbac-0.2.1.tar.gz | 12.8 kB | With provenance | Details for dbwarden_ch_rbac-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dbwarden_ch_rbac-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for dbwarden_ch_rbac-0.2.1-py3-none-any.whl |
Total release size: 29.1 kB
Release files / dbwarden_ch_rbac-0.2.1.tar.gz
| Download URL | dbwarden_ch_rbac-0.2.1.tar.gz |
|---|---|
| Size | 12.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d746449f5227d0c441ae8ee49fa849e53ad89ad69c05d1bfb6b5dfa461aacf1
|
|
BLAKE2b-256 checksum How to use checksums |
6fb2086bae76d2d6743c3d6286f09f95b7e2494c4b18cdca5b3772604c62ebbf
|
| 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_ch_rbac-0.2.1-py3-none-any.whl
| Download URL | dbwarden_ch_rbac-0.2.1-py3-none-any.whl |
|---|---|
| Size | 16.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
500778cca3eb0a56fffd7e0dfa1e339f4533f93287e6b5461663f62e82f4a3d1
|
|
BLAKE2b-256 checksum How to use checksums |
888efa8d60a130773a09581a77e5348c916074bbcf657e60bf57fecec78b3d43
|
| 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-ch-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_ch_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.