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 oneplatform and dataSourceType pair. Any other pair returns 400.
Rule types
A policy is a flat list of rules. Each rule has atype 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.
DENYbeatsALLOW.DENY ["Attributes"]withALLOW ["Attributes.OrderId"]removes all ofAttributes, includingOrderId.- A narrower
DENYinside anALLOWstill applies.ALLOW ["Attributes"]withDENY ["Attributes.CustomerName"]keeps every attribute exceptCustomerName. MANDATORYsurvives aDENYon its parent.DENY ["Queue"]removes everyQueuefield except the mandatory ones, such asQueue.Name.
Field paths
Field paths follow the record’s JSON structure. Paths descend into arrays automatically, soparticipants.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 successfulPOST creates a new policy version with a new policyId. Operata keeps earlier versions for audit. Reads always return the latest version.
- Full replace. A
POSTreplaces all of yourALLOWandDENYrules for that data source. Rules you leave out are gone. - Reset. A
POSTwith"rules": []removes your rules. The policy then holds theMANDATORYdefaults only. - No duplicate versions. A
POSTwhose 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,
GETreturns the defaults withcreatedBy: "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 legacyREDACTION_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.
Related
- Get redaction policy — read the rules in effect.
- Create redaction policy — replace your rules.
- Legacy redaction config — the CTR-only config that Cloud Collector releases before v1.2.3 read.
- Privacy and redaction — where redaction runs and why.
- Contact trace records — the CTR fields that
connect/ctrpaths reference. - Authentication, Errors, Rate limits — shared API conventions.