[PR #1366] [MERGED] Extend management API to support list of allowed JWT groups #13588

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1366
Author: @bcmmbaga
Created: 12/8/2023
Status: Merged
Merged: 12/8/2023
Merged by: @bcmmbaga

Base: allow-jwt-groupsHead: extend-account-update-api


📝 Commits (3)

  • ab98293 Add JWTAllowGroups settings to account management
  • faef060 Return an empty group list if jwt allow groups is not set
  • 3d45e30 Add JwtAllowGroups to account settings in handler test

📊 Changes

5 files changed (+27 additions, -1 deletions)

View changed files

📝 management/server/account.go (+4 -0)
📝 management/server/http/accounts_handler.go (+9 -0)
📝 management/server/http/accounts_handler_test.go (+5 -1)
📝 management/server/http/api/openapi.yml (+6 -0)
📝 management/server/http/api/types.gen.go (+3 -0)

📄 Description

Describe your changes

Extend the update account endpoint /api/accounts/{accountId} to accommodate the introduction of a new optional field, jwt_allow_groups. This field enables the specification of groups whose members are permitted access to Netbird when utilizing JWT Group Propagation.

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/1366 **Author:** [@bcmmbaga](https://github.com/bcmmbaga) **Created:** 12/8/2023 **Status:** ✅ Merged **Merged:** 12/8/2023 **Merged by:** [@bcmmbaga](https://github.com/bcmmbaga) **Base:** `allow-jwt-groups` ← **Head:** `extend-account-update-api` --- ### 📝 Commits (3) - [`ab98293`](https://github.com/netbirdio/netbird/commit/ab98293aa19a108a150c91786ffd24dfbd0b70aa) Add JWTAllowGroups settings to account management - [`faef060`](https://github.com/netbirdio/netbird/commit/faef060d7b8b5ce485f584450505fb36b3ba2651) Return an empty group list if jwt allow groups is not set - [`3d45e30`](https://github.com/netbirdio/netbird/commit/3d45e3028e861bf6586d31baea15306c9debffcb) Add JwtAllowGroups to account settings in handler test ### 📊 Changes **5 files changed** (+27 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `management/server/account.go` (+4 -0) 📝 `management/server/http/accounts_handler.go` (+9 -0) 📝 `management/server/http/accounts_handler_test.go` (+5 -1) 📝 `management/server/http/api/openapi.yml` (+6 -0) 📝 `management/server/http/api/types.gen.go` (+3 -0) </details> ### 📄 Description ## Describe your changes Extend the update account endpoint `/api/accounts/{accountId}` to accommodate the introduction of a new optional field, `jwt_allow_groups`. This field enables the specification of groups whose members are permitted access to Netbird when utilizing JWT Group Propagation. ## Issue ticket number and link ### 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) - [ ] 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 02: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#13588