Every consent system has an administration surface, and it is usually the weakest part. Not because the team is careless, but because administrative convenience quietly becomes permanent power: a shared admin login, a database console, a role that can both edit a record and sign off the evidence pack.

The specification's requirement is not "have roles". It is that duties stay separate and that every administrative action is attributable, reviewed and reversible.

Separation of duties

Four roles cover the operating model. Custom roles are allowed only where a duty genuinely differs, not to work around an approval.

RoleCanCannot
AdminManage tenants, integrations, templates, retention policies and user accounts; grant roles within policyRead the full audit ledger without the Auditor or DPO role; approve their own retention exception
DPORead audit evidence, resolve escalations, approve exceptions, close high-severity grievances, review retention decisionsChange consent records; edit the ledger; grant system roles
AuditorRead the ledger, verify hash chains, export evidence packages, review access reportsModify any record; change retention; grant access
OperatorRun day-to-day operations: reprocess a failed alert, investigate a validation error, resolve routine casesChange roles; alter retention; delete audit entries; read unrestricted principal history

Two combinations are especially dangerous and should be blocked explicitly: Admin plus Auditor (change a record and certify it) and Admin plus DPO (grant yourself the power to approve your own exception). Where a small team genuinely needs overlapping coverage, require a second approver and log the overlap as a standing risk.

Access controls

Role definitions are not controls until the login path enforces them.

  • MFA and SSO for every administrative account. No local password exception, no shared service account with a human owner. Hardware-backed authentication for Admin and Auditor.
  • Short sessions and step-up re-authentication for destructive actions: role changes, retention policy changes, erasure jobs and ledger exports.
  • Just-in-time elevation. An operator who needs temporary access requests it, with a reason and an expiry, and the grant is logged.
  • Real-time revocation. Removing a role takes effect on the next request, not at the next sync. A departing employee is a same-hour change.
  • Per-endpoint authorisation. The gateway proves who is calling; the service checks the permission. A valid token is not a permission.
  • Periodic access review. A report of who holds which role, who granted it, when it was last used and what changed. The Auditor consumes it without asking engineering to build a query.

API contract

Assign a role

Statutory Standard
POST/v1/admin/roles/assignResponse 200

Grants one of the four operating roles, records who granted it, and requires MFA and SSO on the admin path.

Request body

{
  "user_id": "adm_12",
  "role": "AUDITOR",
  "justification": "Quarterly evidence review"
}

Response

{
  "user_id": "adm_12",
  "roles": [
    "AUDITOR"
  ],
  "changed_by": "adm_01",
  "changed_at": "2026-11-19T10:15:00Z"
}

What the implementation must hold

  • Roles: Admin, DPO, Auditor, Operator, plus custom roles where duties need separating.
  • Require MFA and SSO for every admin account, with no local password exception.
  • Role changes are audit events with the granting identity and the reason.
  • Access revocation takes effect in real time, not at the next login cycle.

Retention and destruction

Retention is where consent records and the data they justify diverge. The consent artifact often has to survive longer than the processing it authorised, because it is the proof that the processing was lawful. Write the schedule down per category.

Record categoryWhat to decideConstraint
Consent artifacts and versionsRetention after the relationship endsLong enough to answer a dispute or an audit; set from legal advice
Personal data under a purposeRetention per purpose, not per systemNo longer than the purpose requires; the purpose register is the source
Complaint and request recordsRetention after closureEnough to show the case was handled, and to spot patterns
Audit ledger entriesRetention independent of the dataOften the longest-lived record; protect it from purge
Notification and delivery recordsShort operational periodKeep hashes and receipts, not message bodies, where possible
Access and role-change logsAt least as long as the audit periodThey are part of the evidence of who could do what

Three rules make the schedule executable. Version the policy, so a purge can be tied to the rule in force at the time. Warn before destruction, so an administrator can catch a mistake. And honour legal holds inside the same run, because a hold that must be applied by hand will eventually be missed.

Cryptographic erasure

Deletion has a physics problem: backups, replicas and caches hold copies you cannot reliably reach. Cryptographic erasure accepts that and removes the ability to read the data instead.

  1. Classify the record and confirm that no legal or regulatory duty requires continued retention.
  2. Identify every copy, including backups, search indexes, analytics extracts and processor-side stores.
  3. Destroy the encryption key that makes the record readable, and record the key identifier, the scope and the approver.
  4. Propagate the instruction to processors with the same acknowledgement discipline as a withdrawal.
  5. Verify that reads fail, that derived records are addressed, and that the ledger entry survives to prove the destruction happened.
  6. Log the job: category, count, policy version, approver, key reference and the verification result.

Erasure is not the same as a delete statement. A delete that leaves a readable backup is a promise, not a control.

API contract

Set a retention and erasure policy

Statutory Standard
PUT/v1/admin/retention-policies/{data_category}Response 200

Defines how long a category is kept, whether a legal hold applies, and how the record is destroyed at the end.

Request body

{
  "retain_days": 1095,
  "legal_hold": false,
  "erasure_method": "CRYPTO_ERASE",
  "notify_admins_before_days": 14
}

Response

{
  "data_category": "consent_artifacts",
  "retain_days": 1095,
  "next_run": "2026-12-01T00:00:00Z",
  "held_records": 0
}

What the implementation must hold

  • The period shown is a placeholder. Set every period from your own legal advice.
  • Warn administrators before a purge, and skip records under legal hold in the same run.
  • Cryptographic erasure means destroying the key that makes the record readable, and logging the destruction.
  • A purge is an audit event with the count, the category and the policy version.

Administering administration

The administration surface is itself a consent-relevant system, so it needs the same evidence discipline.

  • Every role change is an audit event, with the granting identity, the reason and the target.
  • Every retention run is an audit event, with the policy version and the count.
  • Every export is an audit event, with the query and the requester.
  • Every ledger read is an audit event, which is why the Auditor role exists separately.
  • Policy changes are maker-checker. One person proposes, another approves, and both are recorded.

Failure patterns to design out

  • The permanent super-admin. One account that can do everything, shared by two people, with no attribution.
  • The console exception. A database login that bypasses the service and writes consent status directly.
  • The retention policy in a spreadsheet. Nobody knows which version was in force when a purge ran.
  • The legal hold applied by hand. A record that should have been preserved is destroyed by the next scheduled run.
  • The delete that only marks a row. The data remains readable in backups and extracts.
  • The access review that nobody reads. The report exists, but no one with authority signs it.

Next step

Administration produces the evidence; the ledger protects it: the cryptographic audit ledger. If you need help with any of this, write to us and we will help.