[PR #2841] [MERGED] [management] Limit the setup-key update operation #15694

Closed
opened 2026-08-05 03:08:13 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2841
Author: @pascal-fischer
Created: 11/4/2024
Status: Merged
Merged: 11/15/2024
Merged by: @pascal-fischer

Base: mainHead: fix/setup-key-update


📝 Commits (5)

  • a34f9b8 update setup key update api and operation to not allow certain changes to existing keys
  • 2795f1f fix test
  • e505c81 fix comments
  • b92de24 Merge branch 'main' into fix/setup-key-update
  • 0a545ba merge fix

📊 Changes

5 files changed (+38 additions, -55 deletions)

View changed files

📝 management/server/http/api/openapi.yml (+0 -25)
📝 management/server/http/api/types.gen.go (+0 -15)
📝 management/server/http/setupkeys_handler.go (+0 -6)
📝 management/server/setupkey.go (+8 -4)
📝 management/server/setupkey_test.go (+30 -5)

📄 Description

Describe your changes

This PRs limits the options on what fields can be updated through the API and gets the API definition and the code in sync.

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/2841 **Author:** [@pascal-fischer](https://github.com/pascal-fischer) **Created:** 11/4/2024 **Status:** ✅ Merged **Merged:** 11/15/2024 **Merged by:** [@pascal-fischer](https://github.com/pascal-fischer) **Base:** `main` ← **Head:** `fix/setup-key-update` --- ### 📝 Commits (5) - [`a34f9b8`](https://github.com/netbirdio/netbird/commit/a34f9b888f1f60ccedf91e2f41e03c46d68a46d4) update setup key update api and operation to not allow certain changes to existing keys - [`2795f1f`](https://github.com/netbirdio/netbird/commit/2795f1f4590ddebb9d9c29593b16a7df062d2e88) fix test - [`e505c81`](https://github.com/netbirdio/netbird/commit/e505c81bdf094f5722569c385a10c01ef2f34f09) fix comments - [`b92de24`](https://github.com/netbirdio/netbird/commit/b92de24a9353e7fb08099b311f84b7bc5710c00b) Merge branch 'main' into fix/setup-key-update - [`0a545ba`](https://github.com/netbirdio/netbird/commit/0a545ba9017edff46e9af2c499f5a4d00bf5e425) merge fix ### 📊 Changes **5 files changed** (+38 additions, -55 deletions) <details> <summary>View changed files</summary> 📝 `management/server/http/api/openapi.yml` (+0 -25) 📝 `management/server/http/api/types.gen.go` (+0 -15) 📝 `management/server/http/setupkeys_handler.go` (+0 -6) 📝 `management/server/setupkey.go` (+8 -4) 📝 `management/server/setupkey_test.go` (+30 -5) </details> ### 📄 Description ## Describe your changes This PRs limits the options on what fields can be updated through the API and gets the API definition and the code in sync. ## Issue ticket number and link ### 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 03:08:13 -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#15694