Sanitise Azure/AWS JSON exports by redacting sensitive values and custom patterns.
181
Sanitises Azure / AWS resource export JSON by replacing sensitive values —
resource identifiers, subscription/account IDs, IP addresses, container
images, org URLs — with numbered placeholders like REDACTED_IP_1. Also
supports custom text patterns (organisation names, people's names, project
codenames) supplied at runtime.
| Category | Example |
|---|---|
| Subscription IDs | /subscriptions/09de2180-... |
| Resource group names | rg-aue-prd-plt-git-01 |
| Resource / container names | github-runner-aihubrunners1 |
| Container registry images | acraueprdpltshd01.azurecr.io/... |
| IP addresses (v4/v6) | 10.200.24.71 |
| AWS ARNs and account IDs | arn:aws:iam::123456789012:role/... |
| Workspace / Log Analytics IDs | UUID-format workspace IDs |
| GitHub / org URLs | https://github.com/your-org |
| Account names | management - 09de2180 (Azure Account) |
| App IDs / secrets in env vars | APP_ID, *_SECRET, *_TOKEN, *PEM |
Plus any custom literal text or regex patterns you supply (e.g. your organisation's name, a person's name).
docker compose up --build
Or without compose:
docker build -t resource-json-sanitiser:local .
docker run -p 5001:5001 -e FLASK_SECRET_KEY=$(openssl rand -hex 32) resource-json-sanitiser:local
Published image:
daljeetbarmi/resource-json-sanitiser:latest
Pull and run:
docker pull daljeetbarmi/resource-json-sanitiser:latest
docker run -p 5001:5001 -e FLASK_SECRET_KEY=$(openssl rand -hex 32) daljeetbarmi/resource-json-sanitiser:latest
Sanitiser class
rather than module-level globals, so each upload/CLI run gets its own
isolated counters — safe for concurrent requests under Flask.0.0.0.0:5001 so it's reachable from outside the
container.FLASK_SECRET_KEY should be set to a real secret in any non-local
deployment (used only for flash-message session signing).Content type
Image
Digest
sha256:818e5bc2a…
Size
46.4 MB
Last updated
4 months ago
docker pull daljeetbarmi/resource-json-sanitiser