[GH-ISSUE #5933] getting-started.sh generates dashboard callback URIs that cause post-login 404 with current dashboard image #11325

Open
opened 2026-08-05 01:29:18 -04:00 by saavagebueno · 5 comments
Owner

Originally created by @Breinich on GitHub (Apr 20, 2026).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/5933

Summary

When using the official installer flow (getting-started.sh) and generated configs, NetBird login redirects to callback paths that are not handled by the current netbirdio/dashboard image.

The generated values were:

  • AUTH_REDIRECT_URI=/nb-auth
  • AUTH_SILENT_REDIRECT_URI=/nb-silent-auth
  • dashboardRedirectURIs in config.yaml with those same paths

With this config, login flow reached IdP correctly but callback returned 404.

Switching callbacks to hash-based routes fixed the issue:

  • AUTH_REDIRECT_URI=/#callback
  • AUTH_SILENT_REDIRECT_URI=/#silent-callback
  • dashboardRedirectURIs updated accordingly

Environment

  • Deployment: self-hosted Docker (combined netbird-server + dashboard)
  • Reverse proxy: BunkerWeb (NetBird template, nginx based)
  • Dashboard image: netbirdio/dashboard:latest
  • Server image: netbirdio/netbird-server:latest

Steps to reproduce

  1. Run official installer flow and use generated config files from getting-started.sh.
  2. Deploy stack behind reverse proxy.
  3. Start login flow and observe redirect/callback stage.

Actual behavior

OAuth entrypoint works (/oauth2/auth reached), but callback path returns 404 and login cannot complete.

Expected behavior

Installer-generated callback URIs should match routes supported by current dashboard build. Login should complete without manual callback URI edits.

Root cause

Current dashboard build does not expose /nb-auth and /nb-silent-auth routes. Default callback handling works with /#callback and /#silent-callback (hash-based).

Suggestion

Please align installer-generated callback values with the callback mode expected by current dashboard releases, or make callback mode explicit/auto-detected in installer output.

Originally created by @Breinich on GitHub (Apr 20, 2026). Original GitHub issue: https://github.com/netbirdio/netbird/issues/5933 ## Summary When using the official installer flow (getting-started.sh) and generated configs, NetBird login redirects to callback paths that are not handled by the current netbirdio/dashboard image. The generated values were: - AUTH_REDIRECT_URI=/nb-auth - AUTH_SILENT_REDIRECT_URI=/nb-silent-auth - dashboardRedirectURIs in config.yaml with those same paths With this config, login flow reached IdP correctly but callback returned 404. Switching callbacks to hash-based routes fixed the issue: - AUTH_REDIRECT_URI=/#callback - AUTH_SILENT_REDIRECT_URI=/#silent-callback - dashboardRedirectURIs updated accordingly ## Environment - Deployment: self-hosted Docker (combined netbird-server + dashboard) - Reverse proxy: BunkerWeb (NetBird template, nginx based) - Dashboard image: netbirdio/dashboard:latest - Server image: netbirdio/netbird-server:latest ## Steps to reproduce 1. Run official installer flow and use generated config files from getting-started.sh. 2. Deploy stack behind reverse proxy. 3. Start login flow and observe redirect/callback stage. ## Actual behavior OAuth entrypoint works (/oauth2/auth reached), but callback path returns 404 and login cannot complete. ## Expected behavior Installer-generated callback URIs should match routes supported by current dashboard build. Login should complete without manual callback URI edits. ## Root cause Current dashboard build does not expose /nb-auth and /nb-silent-auth routes. Default callback handling works with /#callback and /#silent-callback (hash-based). ## Suggestion Please align installer-generated callback values with the callback mode expected by current dashboard releases, or make callback mode explicit/auto-detected in installer output.
Author
Owner

@jnfrati commented on GitHub (Apr 21, 2026):

Hey @Breinich were you facing the issue after configuring BunkerWeb as the reverse proxy? Here are some docs on Nginx configuration https://docs.netbird.io/selfhosted/external-reverse-proxy#nginx-combined

This is usually not a problem when the getting-started script configures the reverse proxy

<!-- gh-comment-id:4287070261 --> @jnfrati commented on GitHub (Apr 21, 2026): Hey @Breinich were you facing the issue after configuring BunkerWeb as the reverse proxy? Here are some docs on Nginx configuration https://docs.netbird.io/selfhosted/external-reverse-proxy#nginx-combined This is usually not a problem when the getting-started script configures the reverse proxy
Author
Owner

@Breinich commented on GitHub (Apr 21, 2026):

Yes, I checked and adhered to this documentation

<!-- gh-comment-id:4290486075 --> @Breinich commented on GitHub (Apr 21, 2026): Yes, I checked and adhered to this documentation
Author
Owner

@killmasta93 commented on GitHub (May 12, 2026):

hi @Breinich did you solve the issue?

<!-- gh-comment-id:4436907753 --> @killmasta93 commented on GitHub (May 12, 2026): hi @Breinich did you solve the issue?
Author
Owner

@Breinich commented on GitHub (May 29, 2026):

yes, I solved with

Switching callbacks to hash-based routes fixed the issue:

  • AUTH_REDIRECT_URI=/#callback
  • AUTH_SILENT_REDIRECT_URI=/#silent-callback
  • dashboardRedirectURIs updated accordingly

as I wrote in the issue

<!-- gh-comment-id:4580005500 --> @Breinich commented on GitHub (May 29, 2026): yes, I solved with > Switching callbacks to hash-based routes fixed the issue: > > - AUTH_REDIRECT_URI=/#callback > - AUTH_SILENT_REDIRECT_URI=/#silent-callback > - dashboardRedirectURIs updated accordingly as I wrote in the issue
Author
Owner

@ktp1976 commented on GitHub (Jul 20, 2026):

I am completely new to netbird and wanted to try to selfhost. I ran into this issue with a fresh install of Ubuntu 26.04 using the official installer (getting-started.sh) and guide. This issue is now open since 3 month and I ran into another problem which I tried to debug to no avail with /oauth2/token giving me a 401 after logging in with email and password (will file a separate issue), after i fixed this issue and was able to create the initial user.
This does not feel like a warm welcome. I would suggest that at least something as easy to correct in the installer as this would find its way to the latest release as fast as possible.

<!-- gh-comment-id:5021220226 --> @ktp1976 commented on GitHub (Jul 20, 2026): I am completely new to netbird and wanted to try to selfhost. I ran into this issue with a fresh install of Ubuntu 26.04 using the official installer (getting-started.sh) and guide. This issue is now open since 3 month and I ran into another problem which I tried to debug to no avail with /oauth2/token giving me a 401 after logging in with email and password (will file a separate issue), after i fixed this issue and was able to create the initial user. This does not feel like a warm welcome. I would suggest that at least something as easy to correct in the installer as this would find its way to the latest release as fast as possible.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#11325