[PR #3879] [MERGED] [management] REST client impersonation #23973

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/3879
Author: @pnmcosta
Created: 5/26/2025
Status: Merged
Merged: 6/2/2025
Merged by: @mlsmaycon

Base: mainHead: feature/net-181


📝 Commits (5)

  • 2d295e1 [management] REST client impersonation
  • 9208fc5 add missing test tags
  • d26fcc7 fix comment type
  • 1eebe64 remove duplicate init
  • 11dc2c4 handle edge case of chained impersonation

📊 Changes

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

View changed files

📝 management/client/rest/client.go (+2 -0)
management/client/rest/impersonation.go (+48 -0)
management/client/rest/impersonation_test.go (+77 -0)
📝 management/client/rest/options.go (+9 -0)
📝 management/server/types/settings.go (+1 -1)

📄 Description

Describe your changes

Ability to return a REST Client impersonated for a specific account

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

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


🔄 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/3879 **Author:** [@pnmcosta](https://github.com/pnmcosta) **Created:** 5/26/2025 **Status:** ✅ Merged **Merged:** 6/2/2025 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `feature/net-181` --- ### 📝 Commits (5) - [`2d295e1`](https://github.com/netbirdio/netbird/commit/2d295e12d5cafecb44cc56f01c193da56f7f9a49) [management] REST client impersonation - [`9208fc5`](https://github.com/netbirdio/netbird/commit/9208fc530eca2becd041a20192958eac960c1b83) add missing test tags - [`d26fcc7`](https://github.com/netbirdio/netbird/commit/d26fcc79f37cc4609ba2a0fc2dc978b3359a71cb) fix comment type - [`1eebe64`](https://github.com/netbirdio/netbird/commit/1eebe64b63b09e6bd320bc6314c8b83e62900345) remove duplicate init - [`11dc2c4`](https://github.com/netbirdio/netbird/commit/11dc2c497e33b0a73c564cfc5e0bdf0af46a8319) handle edge case of chained impersonation ### 📊 Changes **5 files changed** (+137 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `management/client/rest/client.go` (+2 -0) ➕ `management/client/rest/impersonation.go` (+48 -0) ➕ `management/client/rest/impersonation_test.go` (+77 -0) 📝 `management/client/rest/options.go` (+9 -0) 📝 `management/server/types/settings.go` (+1 -1) </details> ### 📄 Description ## Describe your changes Ability to return a REST Client impersonated for a specific account ## 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) - [ ] Extended the README / documentation, if necessary > 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). --- <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 06:08:05 -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#23973