[PR #687] [MERGED] Add login expiration fields to peer HTTP API #12871

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/687
Author: @braginini
Created: 2/13/2023
Status: Merged
Merged: 2/14/2023
Merged by: @braginini

Base: mainHead: feature/peer_login_expiration_api


📝 Commits (5)

  • bcf3a49 Add login expiration fields to peer HTTP API
  • c26bccb Add login expiration enable/disable to the Peer HTTP API
  • 3c7726c Fix tests
  • 5347065 Add peer HTTP API update test
  • ad5eb47 Clarify LoginExpired comments

📊 Changes

6 files changed (+144 additions, -45 deletions)

View changed files

📝 management/server/activity/codes.go (+16 -0)
📝 management/server/http/api/openapi.yml (+18 -2)
📝 management/server/http/api/types.gen.go (+14 -2)
📝 management/server/http/peers.go (+21 -14)
📝 management/server/http/peers_test.go (+56 -20)
📝 management/server/peer.go (+19 -7)

📄 Description

Describe your changes

Return login expiration related fields in the Peer HTTP GET endpoint.
Support enable/disable peer's login expiration via HTTP PUT.

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/687 **Author:** [@braginini](https://github.com/braginini) **Created:** 2/13/2023 **Status:** ✅ Merged **Merged:** 2/14/2023 **Merged by:** [@braginini](https://github.com/braginini) **Base:** `main` ← **Head:** `feature/peer_login_expiration_api` --- ### 📝 Commits (5) - [`bcf3a49`](https://github.com/netbirdio/netbird/commit/bcf3a4973add12e5c6083b17390eaa60b3197227) Add login expiration fields to peer HTTP API - [`c26bccb`](https://github.com/netbirdio/netbird/commit/c26bccbfd2d1b8166780e9aa6eea816e87c0e4d8) Add login expiration enable/disable to the Peer HTTP API - [`3c7726c`](https://github.com/netbirdio/netbird/commit/3c7726c3c1758e5256caf7cd218b25afb11ebc5d) Fix tests - [`5347065`](https://github.com/netbirdio/netbird/commit/5347065fdbb43355d9fa91b2b04a05c823dffcac) Add peer HTTP API update test - [`ad5eb47`](https://github.com/netbirdio/netbird/commit/ad5eb47c1202507eda7cf95f23e8ea3c6b7360ba) Clarify LoginExpired comments ### 📊 Changes **6 files changed** (+144 additions, -45 deletions) <details> <summary>View changed files</summary> 📝 `management/server/activity/codes.go` (+16 -0) 📝 `management/server/http/api/openapi.yml` (+18 -2) 📝 `management/server/http/api/types.gen.go` (+14 -2) 📝 `management/server/http/peers.go` (+21 -14) 📝 `management/server/http/peers_test.go` (+56 -20) 📝 `management/server/peer.go` (+19 -7) </details> ### 📄 Description ## Describe your changes Return login expiration related fields in the Peer HTTP GET endpoint. Support enable/disable peer's login expiration via HTTP PUT. ## 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:06:53 -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#12871