[PR #5087] [MERGED] [management] Check config compatibility #22021

Closed
opened 2026-08-05 05:09:14 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/5087
Author: @braginini
Created: 1/11/2026
Status: Merged
Merged: 1/12/2026
Merged by: @mlsmaycon

Base: mainHead: fix/dex-config


📝 Commits (5)

  • d7c5f5d Enforce HttpConfig overwrite when embeddedIdp is enabled
  • 5659e45 Disable offline_access scope in dashboard by default
  • 721e92f Add group propagation foundation to embedded idp
  • 098e480 Require groups scope in dex config for okt and pocket
  • 42c5db4 remove offline_access from device default scopes

📊 Changes

4 files changed (+33 additions, -47 deletions)

View changed files

📝 idp/dex/provider.go (+9 -5)
📝 infrastructure_files/getting-started.sh (+1 -1)
📝 management/cmd/management.go (+22 -40)
📝 management/server/idp/embedded.go (+1 -1)

📄 Description

Describe your changes

  • ensure no auth params from HttpConfig is used if EmbeddedIdP is enabled
  • remove offline_access scope from dashboard (getting started script)

Stack

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.

Documentation

Select exactly one:

  • I added/updated documentation for this change
  • Documentation is not needed for this change (explain why)
    minor backwards compatibility improvements

Docs PR URL (required if "docs added" is checked)

Paste the PR link from https://github.com/netbirdio/docs here:

https://github.com/netbirdio/docs/pull/__

Summary by CodeRabbit

  • Bug Fixes

    • Replaced offline_access with groups in embedded IdP scopes (dashboard/environment generation updated).
    • Avoids fetching external OIDC configuration when embedded IdP is active to prevent unnecessary network calls.
  • Refactor

    • Centralized embedded IdP configuration handling to detect conflicts and consistently apply derived settings.
  • Behavior

    • Enabled group scope and claim support for OIDC connectors.

✏️ Tip: You can customize this high-level summary in your review settings.


🔄 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/5087 **Author:** [@braginini](https://github.com/braginini) **Created:** 1/11/2026 **Status:** ✅ Merged **Merged:** 1/12/2026 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `fix/dex-config` --- ### 📝 Commits (5) - [`d7c5f5d`](https://github.com/netbirdio/netbird/commit/d7c5f5dacba6374b962accc577ba06021b55e287) Enforce HttpConfig overwrite when embeddedIdp is enabled - [`5659e45`](https://github.com/netbirdio/netbird/commit/5659e45c9331c966fce8e0f7d4d52db72fb20ec4) Disable offline_access scope in dashboard by default - [`721e92f`](https://github.com/netbirdio/netbird/commit/721e92f026706ea114bc05d54b43f91e596f2e46) Add group propagation foundation to embedded idp - [`098e480`](https://github.com/netbirdio/netbird/commit/098e480e7427a92c1d61fcf2313f1a07bbe2b467) Require groups scope in dex config for okt and pocket - [`42c5db4`](https://github.com/netbirdio/netbird/commit/42c5db44d4417487e030d6a899c3d3ed4d97ad70) remove offline_access from device default scopes ### 📊 Changes **4 files changed** (+33 additions, -47 deletions) <details> <summary>View changed files</summary> 📝 `idp/dex/provider.go` (+9 -5) 📝 `infrastructure_files/getting-started.sh` (+1 -1) 📝 `management/cmd/management.go` (+22 -40) 📝 `management/server/idp/embedded.go` (+1 -1) </details> ### 📄 Description ## Describe your changes - ensure no auth params from HttpConfig is used if EmbeddedIdP is enabled - remove offline_access scope from dashboard (getting started script) ## Issue ticket number and link ## Stack <!-- branch-stack --> ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [x] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) > By submitting this pull request, you confirm that you have read and agree to the terms of the [Contributor License Agreement](https://github.com/netbirdio/netbird/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT.md). ## Documentation Select exactly one: - [ ] I added/updated documentation for this change - [x] Documentation is **not needed** for this change (explain why) minor backwards compatibility improvements ### Docs PR URL (required if "docs added" is checked) Paste the PR link from https://github.com/netbirdio/docs here: https://github.com/netbirdio/docs/pull/__ <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Replaced offline_access with groups in embedded IdP scopes (dashboard/environment generation updated). * Avoids fetching external OIDC configuration when embedded IdP is active to prevent unnecessary network calls. * **Refactor** * Centralized embedded IdP configuration handling to detect conflicts and consistently apply derived settings. * **Behavior** * Enabled group scope and claim support for OIDC connectors. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- 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 05:09:14 -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#22021