[PR #760] [MERGED] Add JWT middleware validation failure log #12959

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/760
Author: @mlsmaycon
Created: 3/23/2023
Status: Merged
Merged: 3/23/2023
Merged by: @mlsmaycon

Base: mainHead: log-middleware-errors


📝 Commits (1)

  • 9490029 Add JWT middleware validation failure log

📊 Changes

1 file changed (+8 additions, -3 deletions)

View changed files

📝 management/server/http/middleware/jwt.go (+8 -3)

📄 Description

Describe your changes

We will log the middleware log now, but in the next releases we should provide a generic error that can be parsed by the dashboard.

Partially helps with the issue reported in #750

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/760 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 3/23/2023 **Status:** ✅ Merged **Merged:** 3/23/2023 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `log-middleware-errors` --- ### 📝 Commits (1) - [`9490029`](https://github.com/netbirdio/netbird/commit/94900299b697abc8e9ee71fd58c60e845b0a5e2a) Add JWT middleware validation failure log ### 📊 Changes **1 file changed** (+8 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `management/server/http/middleware/jwt.go` (+8 -3) </details> ### 📄 Description ## Describe your changes We will log the middleware log now, but in the next releases we should provide a generic error that can be parsed by the dashboard. ## Issue ticket number and link Partially helps with the issue reported in #750 ### 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 02:07:06 -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#12959