> For the complete documentation index, see [llms.txt](https://docs.openiam.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.openiam.com/administration-guide/privacy/operate-the-privacy-service.md).

# Operate the privacy service

Read the privacy dashboard, clear deliveries that drifted and outbox events that failed, verify the evidence chain, and know what retention and webhook delivery do in this release.

**Applies to:** OpenIAM 2026.11.1

## What this is, and when you need it

Every consent change, registry transition and privacy decision is written twice: as **evidence** in a hash-chained store, and as an **event** in an outbox that delivers it to the systems that must honor it.

Each stream fails in its own way, and neither interrupts anything to tell you. An event that never delivers means a system carried on processing data for a purpose the person has already withdrawn — the withdrawal is recorded, and nothing acted on it. A broken evidence segment means a record was changed or removed outside the module, and it is not something you repair: the break itself is the evidence. Both are visible only on the screens covered here, and only if you look. This page is the routine around the two streams — what the **Dashboard** counts, what to do with a delivery that did not arrive, how to prove the evidence has not been altered, and what retention does.

One person's consent is [Look up a person's consent](https://docs.openiam.com/administration-guide/privacy/look-up-consent.md). Authoring purposes and notices is [Register purposes and lawful authorities](https://docs.openiam.com/administration-guide/privacy/register-purposes-and-authorities.md).

## At a glance

|                          |                                                                                                                   |
| ------------------------ | ----------------------------------------------------------------------------------------------------------------- |
| **You will end up with** | No unexplained drift on **Operations**, no failed outbox events, and every evidence segment `Valid` on **Health** |
| **Where**                | **Governance → Privacy → Dashboard** and **Operations**; **Monitoring → Health & Analytics → Privacy Health**     |
| **You need first**       | Webconsole access to the privacy screens                                                                          |
| **Takes**                | Minutes for a routine check                                                                                       |
| **Reversible**           | Replays and governed exceptions cannot be undone, and each is written to the evidence chain                       |

## How events reach other systems

When a consent changes, the Privacy module writes an outbox event in the same transaction. A relay publishes pending outbox events every 5 seconds, up to 100 at a time. A publish that fails is retried with a delay that starts at 30 seconds and doubles up to one hour; after 10 attempts the event is `FAILED` and waits for an operator.

Published events are delivered to every `ACTIVE` webhook endpoint whose event types match (an endpoint with no event types receives everything). Each delivery is an HTTP `POST`, signed, and retried on the same schedule as the outbox:

| The endpoint answers | Delivery    | Acknowledgement                                                 |
| -------------------- | ----------- | --------------------------------------------------------------- |
| `2xx`                | `DELIVERED` | `COMPLETED`                                                     |
| `406` or `501`       | `FAILED`    | `UNSUPPORTED`                                                   |
| Any other `4xx`      | `FAILED`    | `PERMANENT_FAILURE`                                             |
| `5xx`, or no answer  | Retried     | `RETRYABLE_FAILURE`, then `PERMANENT_FAILURE` after 10 attempts |

The signature headers the receiving system checks are listed in [Privacy reference](https://docs.openiam.com/administration-guide/privacy/privacy-reference.md#webhook-delivery). The **Registry** → **Webhook endpoints** tab lists the registered endpoints, read-only. Endpoints and their signing secrets are managed outside the console in this release: registering one is a request to your deployment owner or OpenIAM support.

## Clear delivery drift and failed events

{% stepper %}
{% step %}
Open **Governance → Privacy → Operations**. **Delivery drift** lists deliveries that need a decision: those that `FAILED`, those still pending after at least one failed attempt, and — while any webhook endpoint is `ACTIVE` — published events that have no delivery at all.
{% endstep %}

{% step %}
For each row, find out why the receiving system refused it — **Ack status** says whether it was permanent. Once the receiving system is fixed, click **Replay** on the row. The delivery goes back to pending with its attempts reset, and the toast reads `Delivery queued for replay`.
{% endstep %}

{% step %}
For a delivery that should **not** be retried — the endpoint was retired, the event no longer matters there — click **Governed exception**, enter the **Reason**, and click **Raise exception**. The delivery is closed as a permanent failure with your reason, and the decision is evidence. A reason is required.
{% endstep %}

{% step %}
Select **Failed outbox**. Each row is an event that could not be published after 10 attempts — usually the broker was unreachable for longer than the retry schedule. Once it is reachable, click **Replay** on the row and confirm; the event is reset to pending and published on the next relay run.
{% endstep %}
{% endstepper %}

## Verify the evidence chain

The evidence store is append-only and split into **segments**, one per tenant, category and month. Each record carries a sequence number and the hash of the record before it, so altering, removing or inserting a record breaks the chain from that point.

{% stepper %}
{% step %}
Open **Monitoring → Health & Analytics → Privacy Health** (or the **Health** tab of any privacy screen). The page verifies every segment of the tenant each time it loads and each time you click **Refresh**.
{% endstep %}

{% step %}
Read **Evidence integrity**. Every segment should show **Result** `Valid` and no **Findings**. A `Broken` segment expands into its findings, each naming the record where the chain failed: `Sequence break at record …`, `Broken chain link at record …` or `Hash mismatch at record …`.
{% endstep %}
{% endstepper %}

A broken segment means a record was changed or removed outside the Privacy module. Do not repair it: the broken chain is the evidence. Preserve a database backup from before any further change and raise a support case with the segment and the finding.

The same page shows the backlog: **Pending outbox events**, **Failed outbox events** (red when above zero), **Oldest pending age**, **Evidence segments** and **Deliveries by status**. A pending age that keeps growing means the relay is not publishing — the broker or the `privacy-manager` service is down.

## Read the dashboard

**Governance → Privacy → Dashboard** counts what happened in a period you choose with **From** and **To**: **Consent events**, **Withdrawals**, **Evidence records** and **Delivery acknowledgements**, then the same figures broken down by event type, evidence category and acknowledgement status. The consent and evidence counts reconcile to the ledger and evidence rows for the period. **Delivery acknowledgements** counts all deliveries of the tenant, whatever period you choose.

## Retention

The Privacy module can erase evidence it no longer needs to keep, a whole segment at a time. A segment is erased only when **every** record in it is older than the longest retention period that applies to its category, and never while a **legal hold** applies. Erasing a whole segment is what keeps the remaining segments verifiable; each erasure is itself recorded as evidence, naming the segment, the category, the number of records and their date range. Retention never touches the consent ledger.

**The retention sweep ships disabled** — `org.openiam.privacy.retention.sweep.enabled` is `false`, and when enabled it runs at `0 0 3 * * *` (03:00 every day). Retention policies, and enabling the sweep, are deployment configuration with no console screen in this release; ask your deployment owner. Until both are in place, privacy evidence is kept indefinitely.

## Back it up

The Privacy module keeps everything in its own `privacy` database, migrated with the `FLYWAY_PRIVACY_*` installation settings. A backup that covers the core OpenIAM schemas does not cover it; include it, and take it at the same point in time as the `openiam` schema, which holds the users the privacy subjects are linked to. See [What a backup and restore must cover](https://docs.openiam.com/administration-guide/platform/backup-and-restore-scope.md).

## Verification

| What to check                      | How                                                                                                              |
| ---------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| Nothing is waiting on you          | **Operations** shows `No delivery drift` and `No failed outbox events`                                           |
| The relay is keeping up            | **Health**: **Pending outbox events** low and **Oldest pending age** in seconds                                  |
| The evidence is intact             | **Health** → **Evidence integrity**: every segment `Valid`                                                       |
| Your operator actions are recorded | Search `PRIVACY_OPERATOR_ACTION` in **Administration → Log Viewer**: one event per replay and governed exception |

## When it goes wrong

| Symptom                                                       | Likely cause                                                                                   | Resolution                                                           |
| ------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- |
| **Failed outbox events** above zero                           | The broker was unreachable longer than the retry schedule                                      | Restore the broker, then **Replay** on **Failed outbox**             |
| **Oldest pending age** keeps growing                          | The `privacy-manager` service or its broker connection is down                                 | Check the service; pending events are published once it recovers     |
| **Delivery drift** rows with **Ack status** `UNSUPPORTED`     | The endpoint answered `406` or `501` — it does not accept this event type                      | Narrow the endpoint's event types, or raise a **Governed exception** |
| **Delivery drift** rows with `PERMANENT_FAILURE`              | The endpoint refused the delivery with a `4xx` — typically a rejected signature or a wrong URL | Fix the receiving side, then **Replay**                              |
| `Only FAILED outbox events may be replayed (EVT-003)`         | The event was already reset, or has since been published                                       | Refresh the list                                                     |
| `A governed exception requires a documented reason (EVT-006)` | **Reason** was empty                                                                           | Enter the reason                                                     |
| A segment is `Broken`                                         | A record was altered or removed outside the Privacy module                                     | Preserve a backup and raise a support case; do not edit the evidence |
| The dashboard shows no activity                               | The **Tenant**, or the **From** / **To** period, excludes it                                   | Clear the dates and check the tenant                                 |

## Related

* [Look up a person's consent](https://docs.openiam.com/administration-guide/privacy/look-up-consent.md) — one person's ledger and receipts
* [Privacy decisions](https://docs.openiam.com/administration-guide/pbac/privacy-decisions.md) — the decisions recorded as evidence
* [Privacy reference](https://docs.openiam.com/administration-guide/privacy/privacy-reference.md) — delivery statuses, evidence categories, event types, properties and the webhook signature
* [What a backup and restore must cover](https://docs.openiam.com/administration-guide/platform/backup-and-restore-scope.md) — the schemas a backup has to include


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.openiam.com/administration-guide/privacy/operate-the-privacy-service.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
