Skip to content

Add temporary JA4/TLS debug endpoint#646

Draft
prk-Jr wants to merge 2 commits intomainfrom
feat/ja4-debug-endpoint
Draft

Add temporary JA4/TLS debug endpoint#646
prk-Jr wants to merge 2 commits intomainfrom
feat/ja4-debug-endpoint

Conversation

@prk-Jr
Copy link
Copy Markdown
Collaborator

@prk-Jr prk-Jr commented Apr 20, 2026

Summary

  • Adds a temporary GET /_ts/debug/ja4 endpoint to the Fastly adapter to capture JA4 TLS fingerprint, H2 fingerprint, cipher suite, TLS version, user-agent, and Client Hints in production
  • Exposes these signals to evaluate TLS fingerprinting as a cross-browser identity seed and OpenRTB ext validated-browser signal
  • Endpoint is marked temporary and should be removed after evaluation

Changes

File Change
crates/trusted-server-adapter-fastly/src/main.rs Added build_ja4_debug_response handler and route; added unit tests

Closes

Closes #645

Test plan

  • cargo test --workspace
  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • cargo fmt --all -- --check
  • JS tests: cd crates/js/lib && npx vitest run
  • JS format: cd crates/js/lib && npm run format
  • Docs format: cd docs && npm run format
  • WASM build: cargo build --package trusted-server-adapter-fastly --release --target wasm32-wasip1
  • Manual testing via fastly compute serve
  • Other: Deploy and hit /_ts/debug/ja4 to confirm fingerprint data returns

Checklist

  • Changes follow CLAUDE.md conventions
  • No unwrap() in production code — use expect("should ...")
  • Uses tracing macros (not println!)
  • New code has tests
  • No secrets or credentials committed

@prk-Jr prk-Jr self-assigned this Apr 20, 2026
@aram356 aram356 marked this pull request as draft April 20, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add JA4/TLS fingerprint debug endpoint

1 participant