-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Summary
Update the synthetic ID generation system to modify available components and change the default template.
Changes Required
Components to Keep
client_ip- Client IP addressuser_agent- Browser user agent stringaccept_language- Accept-Language headeraccept_encoding- Accept-Encoding header (new)
Components to Add
random_uuid- A random UUID for additional entropy
Components to Remove
first_party_id- Remove from available componentspublisher_domain- Remove from available componentsauth_user_id- Remove from available components
New Default Template
{{ client_ip }}:{{ user_agent }}:{{ accept_language }}:{{ accept_encoding }}
Additional: Random Suffix
Append a random 6-character alphanumeric suffix (a-z, A-Z, 0-9) to the HMAC hash, separated by a period.
Final ID format: <64-char-hmac>.<6-char-random-suffix>
Example: a1748067b3908f2c9e0f6ea30a341328ba4b84de45448b13d1007030df14a98e.xK9f2B
Files to Update
- crates/common/src/synthetic.rs - Main synthetic ID generation logic
- trusted-server.toml - Default configuration and template documentation