Skip to content

Tunnel endpoint basic auth override #8341

@filip-kis-fsc

Description

@filip-kis-fsc

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

  1. use sentry tunnel with nextjs app
  2. authenticate sentry via env variable
  3. nextjs app has own basic auth unrelated to sentry
  4. open app, type in basic auth credentials to login and observe network for sentry tunnel request

Expected Result

sentry tunnel request is successful

Actual Result

sentry tunnel request fails with status 400

causes: ["invalid project key"]
detail: "bad sentry DSN public key"

This appears to happen due to header 'authorization: Basic <xyz>' being sent to the tunnel endpoint. Note that this basic auth has nothing to do with sentry but the app itself.

Is there a way to avoid this override?

Sentry is already using SENTRY_AUTH_TOKEN env variable and has dsn specified in sentry.client.config.js, sentry.server.config.js and sentry.edge.config.js files.

Product Area

Other

Link

No response

DSN

https://00cd68d0276b4de3a6f342955581ac69@o430938.ingest.sentry.io/6122809

Version

7.55.0

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Status

    Waiting for: Community

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions