Skip to content

feat(control-plane): identify dataplane requests with its own User-Agent - #5536

Merged
nicoloboschi merged 1 commit into
mainfrom
feat/control-plane-user-agent
Oct 14, 2026
Merged

nicoloboschi merged 1 commit into
mainfrom
feat/control-plane-user-agent

Conversation

@nicoloboschi

Copy link
Copy Markdown
Collaborator

The control plane's server calls the dataplane API three ways, and none of them set a User-Agent, so its traffic showed up as the client default (or as Node's node). It now sends hindsight-control-plane/<version> on all three:

The version comes from the control plane's own package.json. Browser-side calls only go to the control plane's own /api/* routes, and browsers don't allow setting this header anyway, so nothing changes there.

Test: tests/lib/hindsight-client.test.ts checks the value and that both the direct-fetch headers and the low-level client carry it. The full control-plane suite passes (294).

@nicoloboschi
nicoloboschi merged commit d5b1d42 into main Oct 14, 2026
103 checks passed
@nicoloboschi
nicoloboschi deleted the feat/control-plane-user-agent branch October 14, 2026 15:50
@nicoloboschi nicoloboschi mentioned this pull request Nov 3, 2026
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.

1 participant