No description
  • Go 91.8%
  • Makefile 6.3%
  • Dockerfile 1.9%
Find a file
zemdregon 14a3b9b205
Some checks are pending
CI / lint (push) Waiting to run
CI / test (push) Waiting to run
CI / build (push) Waiting to run
CI / docker (push) Blocked by required conditions
chore(deps): bump docker/setup-buildx-action to v4
Self-hosted CI workflows only.
2026-08-10 18:13:45 -05:00
.github/workflows chore(deps): bump docker/setup-buildx-action to v4 2026-08-10 18:13:45 -05:00
cmd/module chore: add CI/LICENSE and align module bootstrap 2026-07-22 19:09:33 -05:00
internal fix(ci): self-hosted runners; packaging v0.1.5 2026-08-10 10:33:54 -05:00
.env.example Initial commit 2026-07-03 12:03:03 -05:00
.gitignore Initial commit 2026-07-03 12:03:03 -05:00
.golangci.yml docs: CHANGELOG/COMPATIBILITY for v0.1.0 data.redaction (#4) 2026-08-09 20:26:52 -05:00
CHANGELOG.md fix(ci): self-hosted runners; packaging v0.1.5 2026-08-10 10:33:54 -05:00
COMPATIBILITY.md docs: CHANGELOG/COMPATIBILITY for v0.1.0 data.redaction (#4) 2026-08-09 20:26:52 -05:00
Dockerfile Initial commit 2026-07-03 12:03:03 -05:00
go.mod Add SettingsProvider for live extra sensitive keys. 2026-08-10 03:49:50 -05:00
go.sum Add SettingsProvider for live extra sensitive keys. 2026-08-10 03:49:50 -05:00
LICENSE chore: add CI/LICENSE and align module bootstrap 2026-07-22 19:09:33 -05:00
Makefile Initial commit 2026-07-03 12:03:03 -05:00
muxcore.json fix(ci): self-hosted runners; packaging v0.1.5 2026-08-10 10:33:54 -05:00
README.md chore: add CI/LICENSE and align module bootstrap 2026-07-22 19:09:33 -05:00

Data Redaction Pattern

Field-name prefix, path, and regex based PII redaction provider for MuxCore.

A gRPC sidecar module that recursively redacts JSON objects using configurable rules — field name substring matching, exact nested paths, and regex value patterns. Without this module, core has no structured data redaction capability. Matched values are replaced with ***REDACTED***.

Key Features

  • Three rule typesfield:<name> (case-insensitive substring key match), path:<a.b.c> (exact nested path), /<regex>/ (string value pattern). Bare strings (no prefix) are treated as field: rules.
  • Default sensitive keys — Automatically redacts keys containing well-known sensitive field names from contracts.SensitiveLogFieldNames()
  • Recursive traversal — Walks nested maps and arrays to apply rules at every level
  • gRPC APIRedact and SupportedRules RPCs

Configuration

Env var Default Description
REDACTION_GRPC_ADDR :9650 Module gRPC listen address
MUXCORE_MODULE_ID data-redaction-pattern Module identity (SDK / registration)
MUXCORE_GRPC_ADDR (required) Core mesh address
MUXCORE_INSECURE_DISABLE_TLS false Set true to disable TLS (dev only)

Usage

make build
export MUXCORE_GRPC_ADDR=localhost:9090
export MUXCORE_INSECURE_DISABLE_TLS=true
./data-redaction-pattern

Contract

Implements DataRedactionProvider (pkg/contracts). Registers capability: data.redaction.