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.
| Role | Can | Cannot |
|---|---|---|
| Admin | Manage tenants, integrations, templates, retention policies and user accounts; grant roles within policy | Read the full audit ledger without the Auditor or DPO role; approve their own retention exception |
| DPO | Read audit evidence, resolve escalations, approve exceptions, close high-severity grievances, review retention decisions | Change consent records; edit the ledger; grant system roles |
| Auditor | Read the ledger, verify hash chains, export evidence packages, review access reports | Modify any record; change retention; grant access |
| Operator | Run day-to-day operations: reprocess a failed alert, investigate a validation error, resolve routine cases | Change 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
/v1/admin/roles/assignResponse 200Grants 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 category | What to decide | Constraint |
|---|---|---|
| Consent artifacts and versions | Retention after the relationship ends | Long enough to answer a dispute or an audit; set from legal advice |
| Personal data under a purpose | Retention per purpose, not per system | No longer than the purpose requires; the purpose register is the source |
| Complaint and request records | Retention after closure | Enough to show the case was handled, and to spot patterns |
| Audit ledger entries | Retention independent of the data | Often the longest-lived record; protect it from purge |
| Notification and delivery records | Short operational period | Keep hashes and receipts, not message bodies, where possible |
| Access and role-change logs | At least as long as the audit period | They 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.
- Classify the record and confirm that no legal or regulatory duty requires continued retention.
- Identify every copy, including backups, search indexes, analytics extracts and processor-side stores.
- Destroy the encryption key that makes the record readable, and record the key identifier, the scope and the approver.
- Propagate the instruction to processors with the same acknowledgement discipline as a withdrawal.
- Verify that reads fail, that derived records are addressed, and that the ledger entry survives to prove the destruction happened.
- 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
/v1/admin/retention-policies/{data_category}Response 200Defines 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.