[PR #1380] [MERGED] Fix jwks validation and flag/config overriding #16842

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1380
Author: @mlsmaycon
Created: 12/12/2023
Status: Merged
Merged: 12/12/2023
Merged by: @mlsmaycon

Base: mainHead: fix/check-jwks-isvalid


📝 Commits (2)

  • 58c2686 Ensure key is valid when no zero time and add log
  • a7139f6 Fix jwks validation and flag/config overriding

📊 Changes

3 files changed (+10 additions, -4 deletions)

View changed files

📝 management/cmd/management.go (+4 -1)
📝 management/cmd/root.go (+3 -2)
📝 management/server/jwtclaims/jwtValidator.go (+3 -1)

📄 Description

Describe your changes

Ensure the jwks expiresInTime is not zero and add a log indicating the new expiration time

Replace the configuration property only when the flag is being used

fixes #1379

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/1380 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 12/12/2023 **Status:** ✅ Merged **Merged:** 12/12/2023 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `fix/check-jwks-isvalid` --- ### 📝 Commits (2) - [`58c2686`](https://github.com/netbirdio/netbird/commit/58c26862a5502670996825f7c56714f115cf2883) Ensure key is valid when no zero time and add log - [`a7139f6`](https://github.com/netbirdio/netbird/commit/a7139f6b6afccbeb6b23e115a8bd85e2fa112bd8) Fix jwks validation and flag/config overriding ### 📊 Changes **3 files changed** (+10 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `management/cmd/management.go` (+4 -1) 📝 `management/cmd/root.go` (+3 -2) 📝 `management/server/jwtclaims/jwtValidator.go` (+3 -1) </details> ### 📄 Description ## Describe your changes Ensure the jwks expiresInTime is not zero and add a log indicating the new expiration time Replace the configuration property only when the flag is being used ## Issue ticket number and link fixes #1379 ### 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 04:06:36 -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#16842