[PR #688] [MERGED] Update peer status when login expires #12872

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/688
Author: @braginini
Created: 2/14/2023
Status: Merged
Merged: 2/15/2023
Merged by: @braginini

Base: mainHead: feature/extend_peer_status


📝 Commits (4)

  • fd8d6f1 Update peer status when login expires
  • 372057a Remove hardcoded expiration period
  • 570e472 Check peer's login expired status when logging in
  • 87937f5 Remove hardcoded peer login expiration

📊 Changes

5 files changed (+68 additions, -7 deletions)

View changed files

📝 management/server/account.go (+1 -0)
📝 management/server/grpcserver.go (+10 -2)
📝 management/server/http/peers.go (+1 -3)
📝 management/server/mock_server/account_mock.go (+9 -0)
📝 management/server/peer.go (+47 -2)

📄 Description

Describe your changes

Extend PeerStatus with an extra field LoginExpired that can be stored in the database.

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/688 **Author:** [@braginini](https://github.com/braginini) **Created:** 2/14/2023 **Status:** ✅ Merged **Merged:** 2/15/2023 **Merged by:** [@braginini](https://github.com/braginini) **Base:** `main` ← **Head:** `feature/extend_peer_status` --- ### 📝 Commits (4) - [`fd8d6f1`](https://github.com/netbirdio/netbird/commit/fd8d6f16d61d39a4f7f4684998b3c8400c211a6c) Update peer status when login expires - [`372057a`](https://github.com/netbirdio/netbird/commit/372057a7f03252b0b247b75f463a183120dbd7dc) Remove hardcoded expiration period - [`570e472`](https://github.com/netbirdio/netbird/commit/570e472f945b291da44b2193b77d6cee31d1e80b) Check peer's login expired status when logging in - [`87937f5`](https://github.com/netbirdio/netbird/commit/87937f5c0e3d75f8ce49ed881147cc3fa26789c9) Remove hardcoded peer login expiration ### 📊 Changes **5 files changed** (+68 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `management/server/account.go` (+1 -0) 📝 `management/server/grpcserver.go` (+10 -2) 📝 `management/server/http/peers.go` (+1 -3) 📝 `management/server/mock_server/account_mock.go` (+9 -0) 📝 `management/server/peer.go` (+47 -2) </details> ### 📄 Description ## Describe your changes Extend [PeerStatus](https://github.com/netbirdio/netbird/blob/756ce96da96149c0c470993074997561fe8f3b9f/management/server/peer.go#L30) with an extra field LoginExpired that can be stored in the database. ## Issue ticket number and link ### Checklist - [x] 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#12872