-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Parent epic
Description
Implement the low-level functions that create and delete the ts-ec cookie and set EC response headers. Called by ec_finalize_response() (Story 2).
Scope: ec/cookie.rs
Acceptance criteria
create_ec_cookie()produces a cookie withDomain=.{publisher.domain},Max-Age=31536000,SameSite=Lax; Secure.HttpOnlyis NOT set (JS must read the cookie). Domain derived fromsettings.publisher.domain, NOTsettings.publisher.cookie_domain.delete_ec_cookie()produces a cookie withMax-Age=0, same attributes.set_ec_on_response()setsSet-CookieandX-ts-ecresponse headers.clear_ec_on_response()setsSet-CookiewithMax-Age=0AND strips all EC-related response headers:X-ts-ec,X-ts-eids,X-ts-ec-consent,x-ts-eids-truncated, and anyX-ts-<partner_id>headers. Prevents leaking EC identity on consent-withdrawal responses.- Unit tests cover cookie string format, Max-Age=0 deletion, domain derivation, and header stripping.
Spec ref
docs/internal/ssc_technical_spec.md §5.1, §5.2, §5.3
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels