Skip to content

Read DataDome's JA4 from EdgeZero ingress and drop ClientInfo.tls_ja4 #1663

Todo

Description

@dhruv8sh

Follow-up from #1661 (#1592).

Description

#1661 makes the identity app read JA4 only from EdgeZero's request ingress (ctx.ja4(), EZI-3). DataDome still reads it from ClientInfo.tls_ja4, which the Fastly adapter fills from the SDK (req.get_tls_ja4() in trusted-server-adapter-fastly/src/platform.rs) and Spin leaves None. So DataDome gets no JA4 on Axum behind a trusted proxy, and there are two JA4 sources to keep in step.

Proposed direction: pass DataDome the JA4 from ctx.ja4(), then delete ClientInfo.tls_ja4 and the adapters' fills.

Done when

  • DataDome's protection request takes its JA4 from EdgeZero's ctx.ja4() on every adapter.
  • ClientInfo.tls_ja4 and the adapter code that fills it are removed.
  • Tests cover DataDome with a JA4, without one, and on Axum with the trusted JA4 proxy header.

Affected area

Integrations (DataDome), platform types, Fastly and Spin adapters.

Code: crates/trusted-server-core/src/integrations/datadome/protection.rs; crates/trusted-server-core/src/platform/types.rs (ClientInfo); crates/trusted-server-adapter-fastly/src/platform.rs; crates/trusted-server-adapter-spin/src/platform.rs.

The JA4 debug response in trusted-server-adapter-fastly/src/main.rs also reads the SDK directly, but it is tracked for removal by #645.

Related

Activity

  1. self-assigned this
    on Nov 24, 2026
  2. added theissue type on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions