Atlas + Lucida + Cookie Munch: which path does what
One signed_up source and one erasure path when a product runs Atlas, Lucida and Cookie Munch: how Lucida dedupes signed_up, the webhook source's on_delete setting and where to read the authoritative erasure path.
A product on Atlas and Lucida can produce signed_up three ways and erase a person two ways. Lucida collapses the duplicates, but one path each is cleaner.
Recommended setup
One
signed_upsource. Use the Atlas webhook source with{"preset":"atlas","events":{"user.created":"signed_up"}}, or Atlas forwarding, or your own server capture. Any one is enough.One erasure path. With Cookie Munch linked, let its rights executor erase. Leave the webhook source on
"on_delete":"ignore"(the default once Cookie Munch is linked). Without Cookie Munch, the webhook source erases onuser.deleted("on_delete":"erase", the default then).
How signed_up is deduped
Lucida stores events once per event uuid. For signed_up, when the sender gives no uuid, Lucida derives it as a UUIDv5 of <project id>:signed_up:<distinct_id> in Lucida's fixed business namespace 6f1c4a52-9d3e-5b07-8a21-4c7e90b3d5f1 (the same as other business-keyed events). The Atlas webhook source and a server capture without a uuid therefore produce the same uuid for the same person, and the second is stored over the first, not counted again.
Your own uuid opts out. An event that arrives with its own
uuidkeeps it, so it will not collapse with the others. Leave the uuid offsigned_upif you want the dedupe.The distinct id must be the same on every path (the Atlas
sub). Different ids are different people.The Atlas webhook source always uses the derived uuid for the event you name in
events. Its$identifykeeps its delivery-based uuid.
Erasure: on_delete
On the Atlas webhook source's mapping, on_delete says what user.deleted does:
Value | Effect |
|---|---|
| Queues the person's erasure (events, recordings, forwarding to destinations) |
| Acknowledges the delivery and does nothing |
unset |
|
POST /v1/projects/{project_id}/webhook-sources
{"name":"Atlas","mapping":{"preset":"atlas","on_delete":"ignore","events":{"user.created":"signed_up"}},"auth":{"mode":"atlas"}}Add "secret":"<the Atlas endpoint signing secret>" to auth. The 201 returns token (shown once) and path: set the Atlas webhook endpoint's URL to https://capture.lucidace.com + path. Do not point Atlas at /v1/batch or /capture with the public key: those check capture_allowed_origins, server deliveries carry no Origin, and every event is dropped as origin_not_allowed. A working delivery answers 202 {"status":1,"events":1}.
on_delete works with the atlas preset only. Without a link or an explicit value, a deletion still erases, as before.
See which path is authoritative
GET /v1/projects/{project_id}/cookiemunch answers erasure_path:
Value | Meaning |
|---|---|
| The linked Cookie Munch executor erases; no webhook source does |
| An Atlas webhook source erases; no Cookie Munch link |
| Both erase, so one Atlas deletion makes two erasure records: set the source to |
| Neither is set up |
More: Atlas, Cookie Munch.