Conversation
PostgreSQL Anonymizer is an extension to mask or replace personally identifiable information (PII) or commercially sensitive data from a Postgres database Closes cloudnative-pg#345 Signed-off-by: Pierrick Chovelon <pierrick.chovelon@dalibo.com>
pchovelon
force-pushed
the
dev/postgresql-anonymizer
branch
from
September 17, 2026 16:31
048dc68 to
3b5a446
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extension
PostgreSQL Anonymizer is an extension to mask or replace personally identifiable information (PII) or commercially sensitive data from a Postgres database.
The project has a declarative approach of anonymization. This means you can declare the masking rules using the PostgreSQL Data Definition Language (DDL) and specify your anonymization policy inside the table definition itself.
Closes #345
Contributor checklist
compliance (
git commit -s).mainbranch of the upstream repository.issue exists and is referenced via
Closes #345above.feat: add `<extension-name>` container image.maincomponent on bothDebian
stable(trixie) andoldstable(bookworm) viaapt search.task create-extension NAME=<ext>and allTODOcomments in the generated files were resolved.metadata.hclsets the correctpackage(full Debian version) and, whencreate_extension = true, the matchingsql(catalog) version.create_extensionis set correctly (falsefor PostgreSQL modules withno
.controlfile, verified withdpkg -L).renovate:annotations inmetadata.hclandREADME.mdare presentand intact (
suite=,depName=,extractVersion=).CNCF Allowlist;
SPDX
licensesinmetadata.hclare accurate.task checks:allpasses locally.task e2e:test:full TARGET="<extension-name>".README.mdis complete and includes a workingClusterexample (plus aDatabaseexample withCREATE EXTENSIONwhencreate_extension = true).CODEOWNERSwith the component owner's GitHub handle(s).
distribution-pointsentry for the new image was added underrepository.releaseinSECURITY-INSIGHTS.yml.CloudNativePG community.
Maintainer review checklist
new-extension) and theCloses #<id>reference is correct.bakeworkflow built the new target for the fullpgVersions × distributions × {amd64, arm64}matrix.feat: add ...message format.transitive/system libs) are on the CNCF Allowlist; SPDX
licensesmatch.metadata.hclreviewed:package/sqlversions,create_extension,runtime settings (
shared_preload_libraries,*_path,env,required_extensions) and behavior flags are correct.renovate:annotations are intact so automated version PRs will trackthe package going forward.
Dockerfilereviewed: final stage isFROM scratchand contains only theexpected artifacts; the
USER 65532:65532directive matches the nonrootconvention.
create_extension = true), or the Cluster reaches Healthy with the imagemounted for preload-only modules.
README.mdis clear and itsClusterexample (andDatabaseexamplewhen
create_extension = true) are valid.CODEOWNERSentry is present and the component owner(s) accept thelong-term maintenance commitment.
SECURITY-INSIGHTS.ymlhas a matchingdistribution-pointsentry forthe new image.
mainand is ready to merge.