Skip to content

refactor(PLAT-1332): harden browser agent for authenticated same-origin export - #7

Merged
BenElferink merged 4 commits into
mainfrom
cursor/browser-instrumentation-security-2830
Sep 6, 2026
Merged

refactor(PLAT-1332): harden browser agent for authenticated same-origin export#7
BenElferink merged 4 commits into
mainfrom
cursor/browser-instrumentation-security-2830

Conversation

@BenElferink

@BenElferink BenElferink commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

Hardens the browser agent for authenticated same-origin OTLP export (companion to odigos browser-proxy security work).

  • External __ODIGOS__ config contract including exportToken
  • Bearer auth on OTLP HTTP exporters
  • E2E harness updated for external config.js + token gate
  • Docs: architecture, data flow, threat model, security
  • Agent dependency bumps (OpenTelemetry + toolchain only)
  • Nuxt e2e: commit lockfile + legacy-peer-deps .npmrc so install works around npm arborist edgesOut crash without changing the nuxt range

Test plan

  • Agent typecheck/build
  • CI matrix green across frameworks × browsers (esp. nuxt)
Hardened browser agent for authenticated same-origin OTLP export via exportToken Bearer header.
Open in Web Open in Cursor 

cursoragent and others added 4 commits September 6, 2026 12:56
Address security feedback on the sidecar design: document the threat model
and data flow, switch config delivery to external config.js (CSP-safe), and
send a gateway-minted Bearer exportToken on OTLP traces/logs exports.

Co-authored-by: Ben <BenElferink@users.noreply.github.com>
The harness used invalid `#` comments (SyntaxError in every matrix job) and
still needs external config.js + Bearer exportToken to match the hardened
agent contract.

Co-authored-by: Ben <BenElferink@users.noreply.github.com>
Update only the browser agent package dependencies and lockfile.
Leave test-app dependency ranges unchanged.

Co-authored-by: Ben <BenElferink@users.noreply.github.com>
npm arborist crashes on nuxt ^4.4.8 peer resolution (edgesOut).
Add legacy-peer-deps .npmrc and a lockfile so CI can npm ci without
changing the declared nuxt dependency range.

Co-authored-by: Ben <BenElferink@users.noreply.github.com>
@BenElferink BenElferink changed the title refactor: harden browser agent for authenticated same-origin export refactor(PLAT-1332): harden browser agent for authenticated same-origin export Sep 6, 2026
@BenElferink
BenElferink marked this pull request as ready for review September 6, 2026 13:33
@BenElferink
BenElferink merged commit 36630f5 into main Sep 6, 2026
26 of 27 checks passed
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.

2 participants