[GH-ISSUE #6927] Broken password/header auth in cloud-managed account with self-hosted cluster #12275

Open
opened 2026-08-05 01:32:46 -04:00 by saavagebueno · 1 comment
Owner

Originally created by @Bajahaw on GitHub (Jul 27, 2026).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/6927

Describe the problem

Password, PIN, and header service authentication methods are broken on a NetBird Cloud account after setting up a self-hosted proxy/cluster. NetBird-only access works.

All non–NetBird-only auth methods return 400 with invalid session token.

Originally reported in discussion: https://github.com/netbirdio/netbird/discussions/6740

To Reproduce

  1. Free cloud account
  2. Set up self-hosted cluster/proxy (Docker command from management UI)
  3. Add a service with auth method other than NetBird-only access (password, PIN, or header)
  4. Try to log in (browser or curl)
  5. Get 400 / invalid session token

Expected behavior

Password, PIN, and header authentication should succeed the same as before the self-hosted cluster was added.

Are you using NetBird Cloud?

Yes — NetBird Cloud (free) + self-hosted proxy/cluster on Oracle free-tier VPS (public IP, ports 443/80 open).

NetBird version

v0.74.4

Did this work before?

Yes. Service auth worked until the self-hosted proxy/cluster was set up. NetBird-only access was never enabled when it broke. With NetBird-only access enabled, access works fine.

Environment and topology

  • NetBird Cloud account
  • Oracle free tier VPS with public IP
  • Self-hosted cluster using the Docker command provided in the management UI
  • Reproduced on multiple devices, including Chrome and curl
  • Tried changing auth method, recreating service, recreating the cluster, changing the domain — issue persists

Logs

2026-07-12T12:26:20.484Z DEBG proxy/internal/tcp/router.go:323: SNI router accepted conn from [REDACTED_CLIENT_IP]:[REDACTED_PORT] on [REDACTED_PROXY_IP]:443
2026-07-12T12:26:20.490Z DEBG [remote: [REDACTED_CLIENT_IP]:[REDACTED_PORT], sni: [REDACTED_HOST], match: true, tls: true] proxy/internal/tcp/router.go:383: SNI route lookup
2026-07-12T12:26:20.490Z DEBG proxy/internal/tcp/router.go:390: SNI "[REDACTED_HOST]" routed to HTTP handler (service_id=[REDACTED_SERVICE_ID])
2026-07-12T12:26:20.544Z DEBG proxy/internal/accesslog/middleware.go:28: request: request_id=[REDACTED_REQUEST_ID] method=POST host=[REDACTED_HOST] path=/
2026-07-12T12:26:20.544Z DEBG proxy/internal/auth/middleware.go:112: checking authentication for host: [REDACTED_HOST], exists: true
2026-07-12T12:26:20.628Z DEBG proxy/internal/accesslog/middleware.go:88: response: request_id=[REDACTED_REQUEST_ID] method=POST host=[REDACTED_HOST] path=/ status=400 duration=83ms source=[REDACTED_CLIENT_IP] origin=[REDACTED_ORIGIN] service=[REDACTED_SERVICE_ID] account=[REDACTED_ACCOUNT_ID]

Impact

Complete inaccessibility of services that require password/PIN/header auth (unless switched to NetBird-only access).

Additional context

  • Affected area: Login / Authentication / IdP (service auth on reverse proxy)
  • SSO was not tested
  • Discussion has had no maintainer response
Originally created by @Bajahaw on GitHub (Jul 27, 2026). Original GitHub issue: https://github.com/netbirdio/netbird/issues/6927 ### Describe the problem Password, PIN, and header service authentication methods are broken on a NetBird Cloud account after setting up a self-hosted proxy/cluster. NetBird-only access works. All non–NetBird-only auth methods return **400** with `invalid session token`. Originally reported in discussion: https://github.com/netbirdio/netbird/discussions/6740 ### To Reproduce 1. Free cloud account 2. Set up self-hosted cluster/proxy (Docker command from management UI) 3. Add a service with auth method other than NetBird-only access (password, PIN, or header) 4. Try to log in (browser or curl) 5. Get 400 / invalid session token ### Expected behavior Password, PIN, and header authentication should succeed the same as before the self-hosted cluster was added. ### Are you using NetBird Cloud? Yes — NetBird Cloud (free) + self-hosted proxy/cluster on Oracle free-tier VPS (public IP, ports 443/80 open). ### NetBird version v0.74.4 ### Did this work before? Yes. Service auth worked until the self-hosted proxy/cluster was set up. NetBird-only access was never enabled when it broke. With NetBird-only access enabled, access works fine. ### Environment and topology - NetBird Cloud account - Oracle free tier VPS with public IP - Self-hosted cluster using the Docker command provided in the management UI - Reproduced on multiple devices, including Chrome and curl - Tried changing auth method, recreating service, recreating the cluster, changing the domain — issue persists ### Logs ``` 2026-07-12T12:26:20.484Z DEBG proxy/internal/tcp/router.go:323: SNI router accepted conn from [REDACTED_CLIENT_IP]:[REDACTED_PORT] on [REDACTED_PROXY_IP]:443 2026-07-12T12:26:20.490Z DEBG [remote: [REDACTED_CLIENT_IP]:[REDACTED_PORT], sni: [REDACTED_HOST], match: true, tls: true] proxy/internal/tcp/router.go:383: SNI route lookup 2026-07-12T12:26:20.490Z DEBG proxy/internal/tcp/router.go:390: SNI "[REDACTED_HOST]" routed to HTTP handler (service_id=[REDACTED_SERVICE_ID]) 2026-07-12T12:26:20.544Z DEBG proxy/internal/accesslog/middleware.go:28: request: request_id=[REDACTED_REQUEST_ID] method=POST host=[REDACTED_HOST] path=/ 2026-07-12T12:26:20.544Z DEBG proxy/internal/auth/middleware.go:112: checking authentication for host: [REDACTED_HOST], exists: true 2026-07-12T12:26:20.628Z DEBG proxy/internal/accesslog/middleware.go:88: response: request_id=[REDACTED_REQUEST_ID] method=POST host=[REDACTED_HOST] path=/ status=400 duration=83ms source=[REDACTED_CLIENT_IP] origin=[REDACTED_ORIGIN] service=[REDACTED_SERVICE_ID] account=[REDACTED_ACCOUNT_ID] ``` ### Impact Complete inaccessibility of services that require password/PIN/header auth (unless switched to NetBird-only access). ### Additional context - Affected area: Login / Authentication / IdP (service auth on reverse proxy) - SSO was not tested - Discussion has had no maintainer response
Author
Owner

@linear-code[bot] commented on GitHub (Jul 27, 2026):

NET-1447

<!-- gh-comment-id:5095630861 --> @linear-code[bot] commented on GitHub (Jul 27, 2026): <!-- linear-linkback --> <p><a href="https://linear.app/netbird/issue/NET-1447">NET-1447</a></p>
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#12275