[PR #3128] [MERGED] [management] Preserve jwt groups when accessing API with PAT #21616

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/3128
Author: @bcmmbaga
Created: 12/30/2024
Status: Merged
Merged: 12/31/2024
Merged by: @bcmmbaga

Base: mainHead: fix/jwt-group-sync-api-issue-3127


📝 Commits (2)

  • 67ead0e Skip JWT group sync for token-based authentication
  • ab42395 Add tests

📊 Changes

4 files changed (+37 additions, -2 deletions)

View changed files

📝 management/server/account.go (+6 -0)
📝 management/server/account_test.go (+28 -2)
📝 management/server/http/middleware/auth_middleware.go (+1 -0)
📝 management/server/jwtclaims/extractor.go (+2 -0)

📄 Description

Describe your changes

Fix unintended removal of synced JWT groups when accessing the API with PAT.

Fixes #3127

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)
  • Extended the README / documentation, if necessary

🔄 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/3128 **Author:** [@bcmmbaga](https://github.com/bcmmbaga) **Created:** 12/30/2024 **Status:** ✅ Merged **Merged:** 12/31/2024 **Merged by:** [@bcmmbaga](https://github.com/bcmmbaga) **Base:** `main` ← **Head:** `fix/jwt-group-sync-api-issue-3127` --- ### 📝 Commits (2) - [`67ead0e`](https://github.com/netbirdio/netbird/commit/67ead0ebdb4d217e55d159ea519ddc1f3997cf7c) Skip JWT group sync for token-based authentication - [`ab42395`](https://github.com/netbirdio/netbird/commit/ab4239573a64f4df8bb7e0a9d34a3fae075fa522) Add tests ### 📊 Changes **4 files changed** (+37 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `management/server/account.go` (+6 -0) 📝 `management/server/account_test.go` (+28 -2) 📝 `management/server/http/middleware/auth_middleware.go` (+1 -0) 📝 `management/server/jwtclaims/extractor.go` (+2 -0) </details> ### 📄 Description ## Describe your changes Fix unintended removal of synced JWT groups when accessing the API with PAT. ## Issue ticket number and link Fixes #3127 ### Checklist - [x] 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) - [ ] Extended the README / documentation, if necessary --- <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:08:44 -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#21616