Report vulnerabilities privately through GitHub security advisories: Report a vulnerability (the repository's Security tab, "Report a vulnerability"). Do not open a public issue or pull request for a suspected vulnerability.
Include the pdbr version (pdbr --version), the PostgreSQL version, the
relevant configuration (redact secrets) and a reproduction: the HTTP
request, the database schema and the roles involved. A proof of concept
against the fixture schema in db/init/01-schema.sql is ideal.
pdbr is maintained by a small team. Response targets, measured from the report:
| Step | Target |
|---|---|
| Acknowledge the report | 3 working days |
| Triage and confirm or decline, with severity | 7 days |
| Fix or mitigation for a confirmed high or critical issue | 30 days |
| Coordinated disclosure | with the fixed release, credited if you wish |
These are targets, not guarantees. The reporter is kept informed if one slips.
| Version | Supported |
|---|---|
| Latest minor release of 1.x (once 1.0 is released) | Security and critical bug fixes |
| Older 1.x minors | Upgrade to the latest minor |
| 0.x | Latest release only: fixes ship in the next 0.x release |
Fixes are released as a patch of the latest minor. pdbr depends on pdbcore, the shared engine; an issue in pdbcore is fixed there and released with a pdbr update that pins the fixed version. Supported PostgreSQL versions are listed in docs/compatibility.md.
In scope:
- Authentication bypass: accepting a forged, expired or wrongly signed JWT, trusting claim headers from an untrusted peer, running a request under a role it is not allowed to assume.
- Row-level security bypass: one request's identity (role or claims) leaking into another request or connection, or a policy not applying to a query pdbr compiles.
- Exposure of data or schema hidden by
@omitand the other smart comments, by the privilege-driven generation rules. - SQL injection: user-controlled input reaching a statement as anything but a bind parameter or a validated identifier.
- Denial of service that gets around the documented limits (
limits.*,server.request_timeout,database.statement_timeout) or exhausts memory with a bounded request. - Cross-site request forgery and CORS handling.
Out of scope:
- Findings that need superuser,
BYPASSRLSor table-owner access to the database, or write access to the configuration file. - Running with
auth.mode: noneorroles.switch: falseand finding that requests run as the connection role: that is what those settings do. - Load that stays inside the configured limits, and limits you have raised.
- Watch mode (
watch.enabled), which is a development convenience. - Vulnerabilities in PostgreSQL, PostGIS, extensions or Go itself. Report them upstream.
Every release publishes checksums.txt next to the archives, a CycloneDX
SBOM (pdbr_<version>_sbom.cdx.json) and a keyless
cosign signature bundle
(checksums.txt.sigstore.json). The archives and the container image also
carry GitHub build provenance attestations.
$ sha256sum --check --ignore-missing checksums.txt
$ cosign verify-blob checksums.txt \
--bundle checksums.txt.sigstore.json \
--certificate-identity-regexp '^https://github.com/suprbdev/pdbr/\.github/workflows/release\.yaml@refs/tags/v' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
$ gh attestation verify pdbr_<version>_linux_amd64.tar.gz --repo suprbdev/pdbr
$ cosign verify ghcr.io/suprbdev/pdbr:<version> \
--certificate-identity-regexp '^https://github.com/suprbdev/pdbr/\.github/workflows/release\.yaml@refs/tags/v' \
--certificate-oidc-issuer https://token.actions.githubusercontent.comdocs/deployment.md has the production checklist and
docs/rls.md explains roles, claims and policies. The short
version: run with auth.mode: jwt or a trusted gateway, never as a
superuser or a BYPASSRLS role, switch roles per request, keep
openapi.enabled: false where the API shape is sensitive, and
enable FORCE ROW LEVEL SECURITY on tables the connection role owns.