[PR #6868] [infrastructure] Align dashboard callback routes #29169

Open
opened 2026-08-05 08:07:34 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/6868
Author: @CoderSufiyan
Created: 7/23/2026
Status: 🔄 Open

Base: mainHead: fix/issue-5933-dashboard-callbacks


📝 Commits (2)

  • 73b2c7e [infrastructure] Align dashboard callback routes
  • 6878eaa [infrastructure] Preserve retired script mode

📊 Changes

6 files changed (+32 additions, -18 deletions)

View changed files

📝 infrastructure_files/getting-started-enterprise.sh (+4 -4)
📝 infrastructure_files/getting-started.sh (+4 -4)
📝 infrastructure_files/migrate.sh (+4 -4)
📝 tools/idp-migrate/DEVELOPMENT.md (+1 -1)
📝 tools/idp-migrate/main.go (+14 -4)
📝 tools/idp-migrate/main_test.go (+5 -1)

📄 Description

Summary

  • generate the dashboard callback routes supported by the current dashboard across installer and migration flows
  • preserve URL fragments when the IdP migration tool builds dashboard redirect URIs
  • verify generated Zitadel dashboard configuration and migration redirect URLs

Fixes #5933

Testing

  • go test ./tools/idp-migrate -count=1
  • bash -n infrastructure_files/getting-started.sh infrastructure_files/getting-started-with-dex.sh infrastructure_files/getting-started-enterprise.sh infrastructure_files/getting-started-with-zitadel.sh infrastructure_files/migrate.sh

Checklist

  • Documentation is not needed

View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.

Summary by CodeRabbit

  • Bug Fixes

    • Updated embedded identity provider sign-in and silent-auth callback URLs to use fragment-based routes.
    • Improved callback URL handling for domains that include ports.
    • Updated migration output and generated configuration to use the new callback routes consistently.
  • Documentation

    • Updated setup and migration documentation with the revised callback URL format.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/6868 **Author:** [@CoderSufiyan](https://github.com/CoderSufiyan) **Created:** 7/23/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/issue-5933-dashboard-callbacks` --- ### 📝 Commits (2) - [`73b2c7e`](https://github.com/netbirdio/netbird/commit/73b2c7e2a7eebc52cb06483c7976cca3d9618d66) [infrastructure] Align dashboard callback routes - [`6878eaa`](https://github.com/netbirdio/netbird/commit/6878eaa3cc750c83d47b67a578a7b54e1a2cba1c) [infrastructure] Preserve retired script mode ### 📊 Changes **6 files changed** (+32 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `infrastructure_files/getting-started-enterprise.sh` (+4 -4) 📝 `infrastructure_files/getting-started.sh` (+4 -4) 📝 `infrastructure_files/migrate.sh` (+4 -4) 📝 `tools/idp-migrate/DEVELOPMENT.md` (+1 -1) 📝 `tools/idp-migrate/main.go` (+14 -4) 📝 `tools/idp-migrate/main_test.go` (+5 -1) </details> ### 📄 Description ## Summary - generate the dashboard callback routes supported by the current dashboard across installer and migration flows - preserve URL fragments when the IdP migration tool builds dashboard redirect URIs - verify generated Zitadel dashboard configuration and migration redirect URLs Fixes #5933 ## Testing - `go test ./tools/idp-migrate -count=1` - `bash -n infrastructure_files/getting-started.sh infrastructure_files/getting-started-with-dex.sh infrastructure_files/getting-started-enterprise.sh infrastructure_files/getting-started-with-zitadel.sh infrastructure_files/migrate.sh` ## Checklist - [x] Documentation is **not needed** <!-- codesmith:footer --> --- <a href="https://app.blacksmith.sh/netbirdio/codesmith/netbird/pr/6868"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-light-v2.svg"><img alt="View with Codesmith" src="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"></picture></a> <a href="https://backend.blacksmith.sh/track/enable-autofix?expires=1787386323&installation_model_id=427504&pr_number=6868&repository=netbirdio%2Fnetbird&return_to=https%3A%2F%2Fgithub.com%2Fnetbirdio%2Fnetbird%2Fpull%2F6868&signature=d5afa9730c446643352c3af279a8d20dca5c5dbec25848ea186a96b46704c07d"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-light.svg"><img alt="Autofix with Codesmith" src="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"></picture></a> <sup>Need help on this PR? Tag <code>/codesmith</code> with what you need. Autofix is disabled.</sup> <!-- codesmith:autofix:disabled --> <!-- /codesmith:footer --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Updated embedded identity provider sign-in and silent-auth callback URLs to use fragment-based routes. * Improved callback URL handling for domains that include ports. * Updated migration output and generated configuration to use the new callback routes consistently. * **Documentation** * Updated setup and migration documentation with the revised callback URL format. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 08:07:34 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#29169