[PR #1205] Fix/events key handling #15047

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

Original Pull Request: https://github.com/netbirdio/netbird/pull/1205

State: closed
Merged: No


Describe your changes

Because of we provide option to regenerate the config file the encryption key could be lost.

  • The configure.sh read the existing key and write it back during the config generation
  • If config file does not contains key then the service try to read the key from backup file
  • During the key generation the service write out the key into a file and after save it to config file
  • Refactor the logging logic in case the key is invalid for the encrypted data

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
**Original Pull Request:** https://github.com/netbirdio/netbird/pull/1205 **State:** closed **Merged:** No --- ## Describe your changes Because of we provide option to regenerate the config file the encryption key could be lost. - The configure.sh read the existing key and write it back during the config generation - If config file does not contains key then the service try to read the key from backup file - During the key generation the service write out the key into a file and after save it to config file - Refactor the logging logic in case the key is invalid for the encrypted data ## 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
saavagebueno added the pull-request label 2026-08-05 03:06:52 -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#15047