Skip to content

📡 feat: Add Authenticated Proxy Mode for Browser RUM Telemetry#13464

Merged
danny-avila merged 1 commit into
danny-avila:devfrom
upman:ai-1030-rum-proxy-upstream-main
Jun 2, 2026
Merged

📡 feat: Add Authenticated Proxy Mode for Browser RUM Telemetry#13464
danny-avila merged 1 commit into
danny-avila:devfrom
upman:ai-1030-rum-proxy-upstream-main

Conversation

@upman

@upman upman commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add proxy RUM mode where the browser sends OTLP traffic to /api/rum with the LibreChat bearer token.
  • Validate the token on the backend, then forward traces/logs to RUM_PROXY_TARGET_URL without forwarding auth headers.
  • Keep the browser proxy path fixed and configure only the collector target server-side.

Validation

  • Jest coverage for config, proxy handler, and frontend token wiring.
  • ESLint on touched files.
  • Local browser test: RUM traces reached a dummy collector through the backend proxy.

Note

Proxy-mode RUM depends on the LibreChat backend/auth path, so it will not independently detect full backend outages or failures before auth/bootstrap. Those should stay covered by backend metrics and synthetic availability checks.

One follow up could be to break the proxy into a separate pod/process to reduce reliance of the backend being available

@upman
upman force-pushed the ai-1030-rum-proxy-upstream-main branch from f0f6d69 to db97970 Compare June 2, 2026 00:28
@upman
upman marked this pull request as ready for review June 2, 2026 00:33
@danny-avila danny-avila changed the title feat(rum): add authenticated proxy mode feat: add authenticated proxy mode for RUM Jun 2, 2026
@danny-avila
danny-avila changed the base branch from main to dev June 2, 2026 01:03
@danny-avila

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danny-avila danny-avila changed the title feat: add authenticated proxy mode for RUM 📡 feat: Add Authenticated Proxy Mode for Browser RUM Telemetry Jun 2, 2026
@danny-avila
danny-avila merged commit a86e504 into danny-avila:dev Jun 2, 2026
17 checks passed
ThomasVuNguyen pushed a commit to ThomasVuNguyen/LibreChat that referenced this pull request Jul 15, 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.

2 participants