Skip to content

Configure redaction versions

All values below belong to the tenant-mgmt-api chart unless stated otherwise. Secrets are always referenced by name, never put in values.

Off by default; the inbox works without it.

email:
enabled: true
from: "OpenDome <no-reply@example.test>"
smtp:
host: smtp.example.test
port: 587
tls: starttls # starttls | tls | none (none only for a local catcher)
existingSecret: smtp-relay # keys: username, password; none = no SMTP auth
# The page of a version in your management UI; {tenant}, {facet}, {version} are URL-encoded.
versionLinkTemplate: "https://admin.example.test/{tenant}/versions/{facet}/{version}"
# The member's chosen language, else their directory language, each only when listed in
# `locales`; else `defaultLocale`. Built-in texts: en, es, ca, de, fr, it, pl.
defaultLocale: en
locales: [en, es, ca, de, fr, it, pl]
templatesConfigMap: "" # optional: <locale>.json files that override or add texts
maxAttempts: 8
egress:
cidrs: ["203.0.113.10/32"] # the relay, when it is outside the namespace

Without versionLinkTemplate the email carries no link and tells the reader to open the version in the management UI. A template override is a ConfigMap with one <locale>.json per language, keyed by notification kind with subject and body, using the placeholders {actor}, {version}, {facet} and {tenant}. A language you add this way must also be listed in email.locales.

The email language is resolved per recipient: the language the member chose (/notifications/preferences), else their directory language, else defaultLocale. A chosen or directory language that is not in locales is skipped. See Email.

Review requests read who may be asked from a SCIM 2.0 service. Without it, requests are refused (fail closed).

memberDirectory:
scim:
url: https://idp.example.test/scim/v2
existingSecret: scim-token # bearer token, key `token`
tokenKey: token
groupAttribute: groups.display # members: GET {url}/Users?filter=<groupAttribute> eq "<group>"
group: "" # default: the tenant id
subjectAttribute: userName # must equal the `sub` of the member's actor token
subjectCaseFold: true # case-insensitive subjects (email addresses)
rolesAttribute: roles # or "<schema URN>:<attribute>"
cacheSeconds: 60
egress:
cidrs: ["198.51.100.0/24"]
port: 443
reviewRequests:
remindHours: 24

A member’s display name, email address and language come from the directory (displayName, the primary emails entry, preferredLanguage); a user with active: false is not a member. Approvers are members whose roles include TENANT_ADMIN.

documentLinks:
publicBaseUrl: https://api.tenant.example.test # REQUIRED: the chart fails to render without it
maxStarts: 3
maxBytes: 268435456 # per document
setMaxBytes: 268435456 # per set
mcpMaxBytes: 10485760 # per member over MCP
setsPerMinute: 10
documentsPerMinute: 50
documentsPerDay: 500
bytesPerDay: 2147483648
egressAllowlist: [] # optional client networks; requires trustedProxyPeers
trustedProxyHops: 1 # proxies that append to X-Forwarded-For (the ingress = 1)
trustedProxyPeers: [] # the ingress controller's pod or node ranges (CIDRs)
labels: # a set's download, in your language (English defaults)
archiveName: "" # documents-redacted.zip
indexName: "" # index.txt
indexText: "" # "Some documents of this set are not available."
  • publicBaseUrl is the tenant API host whose ingress routes the download path to this cell; it has no default.
  • trustedProxyPeers decides whose X-Forwarded-For is read. Use a range that survives a controller pod being replaced (never one pod’s /32). scripts/ingress-peer-cidrs.sh prints the pod ranges of the nodes that run the controller.
  • The reference key ring, the ticket key and the copy-grant key pair are generated by the charts and kept across upgrades; bring your own with existingKeySecret and existingCopyGrantSecret for render-only flows.
  • The tenant-semantic-api chart turns off the ingress access log for the download path. It supports ingress-nginx and Traefik 3.3 or later, and refuses to render for an unknown controller without an explicit setting.

The runner image ships no speech engine and no weights. Mount them on a claim (extractionAssets.whisper, optionally extractionAssets.parakeet, and extractionAssets.ffmpeg for decoding and toned derivatives), then route languages:

extractionAssets:
asr:
engine: "" # auto (default): whisper.cpp; parakeet only for parakeetLanguages
languageEngines: "ca:whisper,es:whisper" # <language>:<engine> routes
parakeetLanguages: "" # empty = Parakeet off
language: "" # one declared language for every recording; empty = detect
detectLanguage: "" # default true
whisperDtw: "" # default auto: word timing from the model's preset
numThreads: "" # default 2
chunkSeconds: "" # default 120 (Parakeet)
  • whisper.cpp (the default engine) handles every language its model knows, Catalan included. Word timestamps come from DTW alignment, which redaction needs to place time ranges.
  • Parakeet is opt-in per language and only for languages you have benchmarked. It takes no language input, so every Parakeet transcript is language-checked and a mismatch fails the document (asr_language_mismatch).
  • Without a mounted engine, an audio or video document fails with asr_not_configured; other documents are not affected. There is no silent fallback to the other engine.

Engine, model and routing are part of the speech identity every version records: changing them makes versions stale.

Images, scanned pages and the face class need the OCR assets on a claim:

extractionAssets:
ocr:
existingClaim: ocr-assets
executablePath: /opt/ocr/bin/tesseract
tessdataPath: /opt/ocr/tessdata
faceModelPath: /opt/ocr/models/face_detection_yunet_2023mar.onnx
langs: "spa+cat+eng" # default "eng": set your corpus's languages, primary first
engineVersion: "5.5.0" # declared; the runner refuses a binary that reports another
engine: tesseract # tesseract | ppocr | onnxtr (ONNX engines need model checksums)
  • langs defaults to eng. Set the languages of your documents, primary first; each needs its <lang>.traineddata. Keep eng: it reads @ correctly where other language models garble it.
  • The ONNX engines (PP-OCRv6, OnnxTR) read detection and recognition models from the claim and need their SHA-256 declared; the runner refuses other models.

Image redaction settings (all part of every version’s fingerprint on an image deployment):

redaction:
image:
boxPaddingPx: 4
ocrLowConfidence: 60 # words below it widen spans and identifier-like words are covered
ocrPageConfidenceFloor: 45 # pages below it need review
ocrReviewAction: refuse # refuse (no derivative) | cover (cover the page whole)
blurBlockPx: 12
faceDetection: true
faceScoreThreshold: 0.6
video:
frames: false # true: cover video frames (needs OCR assets and an ffmpeg with VP9/Opus)
fps: 2
maxFrames: 1800
Value Default Meaning
redaction.docIdKeyRing generated Key ring of the opaque document ids (<kid>:<secret>[,…], first is active). Rotate by prepending a key; a table keeps its key while the ring holds it.
redaction.audioMarginMs 400 Margin around each redacted time range
redaction.metadataPiiFields source_author,source_extra Connector metadata fields scrubbed
redaction.draftTtlDays 30 Drafts and their samples, without use
redaction.versionSampleTtlDays 365 A version’s validation sample
redaction.sampleLeaseSeconds 120 How long the engine’s sample worker holds one validation-sample document without posting progress. The worker renews it every third of this while it computes; past it, the next claim resumes the document.
redaction.sampleMaxAttempts 5 Leases a sample document may take before it is given up (attempts_exhausted)
redaction.keepOriginals true Keep media originals for the viewer
redactionMedia.ticketTtlSeconds 300 Media and copy tickets for administrators
copyVerifier.* Limits of the render-verification job
docExtract.llmEndpoint empty The cell’s local OpenAI-compatible model; text classes are unavailable without it

The worker takes the lease length from each claim. Its own fallback, used only when a claim does not carry one, is OSL_REDACTION_SAMPLE_LEASE_SECONDS (default 120) on the semantic engine; you do not normally set it.

The sign-off key (redactionSignoff) and the validation-sample secrets (redactionSample) are shared with the tenant-semantic-api chart; without them sign-offs and samples answer 503.