Skip to main content
A redaction policy is a set of rules that tells a collector, such as the Cloud Collector, which fields to keep. The collector applies it before a record leaves your environment for Operata. Each Operata Group has one policy per data source. Use this page to understand the rule model and path syntax before you call the two policy endpoints.
Redaction policies replace the legacy CTR-only redaction config. Cloud Collector releases before v1.2.3 still read it. See Legacy redaction config for those endpoints.

Endpoints

Both endpoints take your Operata Group ID twice: as the username in HTTP Basic auth, and in a GroupID header. The two must match. See Authentication.

Data sources

Each policy belongs to one platform and dataSourceType pair. Any other pair returns 400.

Rule types

A policy is a flat list of rules. Each rule has a type and a fieldList of field paths. A field that no rule matches keeps its key, but its value arrives as null. To ship a field’s value, a MANDATORY or ALLOW rule must match it. The MANDATORY list differs per data source. Read your policy with Get redaction policy to see the current list. Operata can add mandatory fields over time, and the rulesHash in the response changes when it does.

When rules overlap

The collector resolves overlapping rules in a fixed order: MANDATORY, then DENY, then ALLOW.
  • DENY beats ALLOW. DENY ["Attributes"] with ALLOW ["Attributes.OrderId"] removes all of Attributes, including OrderId.
  • A narrower DENY inside an ALLOW still applies. ALLOW ["Attributes"] with DENY ["Attributes.CustomerName"] keeps every attribute except CustomerName.
  • MANDATORY survives a DENY on its parent. DENY ["Queue"] removes every Queue field except the mandatory ones, such as Queue.Name.
Rule order in the list doesn’t matter.

Field paths

Field paths follow the record’s JSON structure. Paths descend into arrays automatically, so participants.sessions.mediaType reaches every session of every participant without an index. The syntax has no array indexes. Filter values are single-quoted strings. The left side of a filter can be a dotted path, such as [bot.name != 'test'].

Versions and changes

Every successful POST creates a new policy version with a new policyId. Operata keeps earlier versions for audit. Reads always return the latest version.
  • Full replace. A POST replaces all of your ALLOW and DENY rules for that data source. Rules you leave out are gone.
  • Reset. A POST with "rules": [] removes your rules. The policy then holds the MANDATORY defaults only.
  • No duplicate versions. A POST whose rules match the latest version, in any order, returns that version and creates nothing. Retrying a write is safe.
  • Never set. If you’ve never written a policy for a data source, GET returns the defaults with createdBy: "system".

How collectors apply the policy

The collector for each data source runs in your environment and fetches its policy from Operata. It refreshes the policy at most every five minutes, so a change takes effect within about five minutes. Records collected before the refresh use the previous policy. The collector also caches the policy in AWS Secrets Manager in your account. If Operata is unreachable, it keeps applying the cached policy. If it has neither a fresh nor a cached policy, it fails the batch rather than ship data it hasn’t redacted. The Amazon Connect collectors read redaction policies from Cloud Collector v1.2.3. Earlier releases read the legacy redaction config.

Moving from the legacy config

The legacy REDACTION_CONFIG covers CTRs only. This is how each legacy shape maps to a connect/ctr policy: Two behaviors differ. A legacy BLACKLIST entry that was the parent of a mandatory field, such as Queue, left the whole parent untouched. The policy removes everything under it except the mandatory fields. Legacy array indexes, such as Recordings.1.Location, have no equivalent.