Outbound privacy: sensitive properties and deletion forwarding

Two controls govern personal data that Lucida sends to other tools: sensitive-property enforcement decides which properties may leave, and deletion...

Embed
Preview of the card
<a href="https://lucidace.com/help/outbound-privacy"><img src="https://lucidace.com/help/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/2f4b888b-c4e6-488b-81bd-6e838fb12d2e/pages/2fd93a8b-e5c4-4d6a-8ef7-63454d80e5a3/social-card.svg?v=3e7ae33eec8b" alt="Outbound privacy: sensitive properties and deletion forwarding" width="600" height="315"></a>

Two controls govern personal data that Lucida sends to other tools: sensitive-property enforcement decides which properties may leave, and deletion forwarding erases a person at the connected destinations when you erase them in Lucida.

Sensitive-property enforcement

The tracking plan classifies properties: a property flagged pii or sensitive, on an event or as a global property, is personal data; forbidden must never leave. Before any record goes out, one shared helper (go/internal/sensitive) applies that classification to the record's properties, nested objects such as $set included:

Flag

Default

With hash

With allow or the property in the allow-list

HIPAA project

forbidden

dropped

dropped

dropped

dropped

pii, sensitive

dropped

SHA-256 of the trimmed, lower-cased value

sent as is

dropped (or hashed with hash); allow and the allow-list are ignored

not flagged

sent

sent

sent

sent

It applies on every outbound path:

  • Realtime destinations, backfills, batched sends, workflows and audience syncs: kit.Deliverer scrubs records before the rate cap, filter and transform, so nothing flagged reaches the dead-letter queue, the pending queue or the vendor. Replays from the dead-letter queue are scrubbed again, and the destination preview shows the scrubbed record.

  • Templated destinations (go/connectors/dsttemplate) go through the same Deliverer.

  • Batch exports (go/exports, events and persons streams): properties and person_properties are scrubbed per row.

A failing classification lookup fails the delivery (it is retried); unchecked data is never sent. A plan edit is enforced within 30 seconds (cache TTL). Distinct ids are identifiers, not properties, and are sent as they are.

Settings

  • Destination: Sensitive properties on the destination's routing page, or PUT /v1/projects/{pid}/connectors/{id}/routing (also the draft) with "sensitive": {"action": "drop" | "hash" | "allow", "allow": ["email"]} (stored as config.route.sensitive). Audience syncs use their destination's setting.

  • Batch export: Sensitive properties on the new-schedule form, or options.sensitive with the same shape on /export-schedules (events and persons streams only).

  • HIPAA: compliance_profile=hipaa forces enforcement: a destination set to allow is treated as drop and allow-lists are ignored.

Deletion and DSR forwarding

A person delete (DELETE /v1/projects/{pid}/persons/{id}, the bulk delete, a DSR deletion) is forwarded to every connected destination of the project that has a vendor delete API:

Destination

Vendor call

Identifier

Amplitude (amplitude_out)

User Privacy API POST /api/2/deletions/users (needs the secret_key credential)

distinct id as user id

Mixpanel (mixpanel_out)

GDPR API POST /api/app/data-deletions/v3.0/ (service account; needs project_token)

distinct id

Intercom (intercom_out)

contact search by external_id, then DELETE /contacts/{id}

distinct id

Braze

POST /users/delete (API key with users.delete)

distinct id as external id

Customer.io

Track API DELETE /api/v1/customers/{id}; with suppress POST .../suppress

distinct id

Iterable

DELETE /api/users/byUserId/{id} and by email; with suppress POST /api/users/forget

distinct id, email

Klaviyo

data-privacy deletion job per email and per profile found by external_id

email, distinct id

HubSpot

POST /crm/v3/objects/contacts/gdpr-delete

email

Every other destination is listed as unsupported. A vendor 404 counts as deleted.

How it runs

  1. The lc-api deletion executor runs a forward stage before it erases anything: it stages the person's distinct ids and email in deletion_forward_subjects (pg 0229).

  2. lc-connectors (go/connectors/dsr, every LC_DSR_FORWARD_TICK, default 1m) expands the subject into one deletion_forwards row per destination connector (paused ones included), sends the vendor deletes and records the outcome: sent, unsupported (no delete API, or no identifier the vendor keys people by), pending (retried with backoff from 1 minute, doubling to 6 hours, 8 attempts) or failed (retries exhausted, or the vendor refused the request with a 4xx such as a bad key).

  3. The staged identifiers are the only copy that outlives the erasure. They are cleared as soon as no forward is pending or failed, and after 30 days at the latest (pending forwards then fail). They are never logged; vendor error text is stored with them redacted.

Options and API

  • forward (default true; false with keep_person, because a kept person keeps their vendor profiles too) and suppress (delete and block re-creation where the vendor supports it: Customer.io, Iterable) on the single and bulk delete.

  • GET /v1/projects/{pid}/deletion-requests/{id}/forwards: {staged, expanded, retryable, suppress, forwards: [...]} with one row per destination (status, attempts, last error, next try, sent at).

  • POST /v1/projects/{pid}/deletion-requests/{id}/forwards/{forward_id}/retry: puts a failed forward back in the queue (409 when it did not fail or the identifiers were purged).

  • Web: Persons → Deletion requests → Forwarding shows the per-destination status with a Retry button; the bulk form has Do not forward and Suppress options.

Updated