[PR #2595] [MERGED] [management] fix legacy decrypting of empty values #15384

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2595
Author: @bcmmbaga
Created: 9/13/2024
Status: Merged
Merged: 9/15/2024
Merged by: @mlsmaycon

Base: mainHead: fix-decrypt-empty-values


📝 Commits (4)

  • de991d4 allow legacy decrypting on empty values
  • f7bf1e3 validate source size and padding limits
  • 3ea8297 remove empty else
  • c89990d fix comparison

📊 Changes

2 files changed (+227 additions, -4 deletions)

View changed files

📝 management/server/activity/sqlite/crypt.go (+14 -4)
📝 management/server/activity/sqlite/crypt_test.go (+213 -0)

📄 Description

Describe your changes

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/2595 **Author:** [@bcmmbaga](https://github.com/bcmmbaga) **Created:** 9/13/2024 **Status:** ✅ Merged **Merged:** 9/15/2024 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `fix-decrypt-empty-values` --- ### 📝 Commits (4) - [`de991d4`](https://github.com/netbirdio/netbird/commit/de991d47e5be222acf8729d7b6fec2ac2c71f398) allow legacy decrypting on empty values - [`f7bf1e3`](https://github.com/netbirdio/netbird/commit/f7bf1e3610788995792c60ea6942750d8d0936d3) validate source size and padding limits - [`3ea8297`](https://github.com/netbirdio/netbird/commit/3ea8297605ea38f2c9cf30713f8bdf9f209b2528) remove empty else - [`c89990d`](https://github.com/netbirdio/netbird/commit/c89990d0b455f33b13d7f98c91bea28424accbea) fix comparison ### 📊 Changes **2 files changed** (+227 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `management/server/activity/sqlite/crypt.go` (+14 -4) 📝 `management/server/activity/sqlite/crypt_test.go` (+213 -0) </details> ### 📄 Description ## Describe your changes ## Issue ticket number and link ### 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 03:07:32 -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#15384