[PR #5258] [management] Ensure configure.sh does not clear the DataStoreEncryptionKey value #25404

Open
opened 2026-08-05 07:05:58 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/5258
Author: @CodingTil
Created: 2/4/2026
Status: 🔄 Open

Base: mainHead: fix/configure.sh


📝 Commits (1)

  • 9a9a7ad Ensure configure.sh does not clear the DataStoreEncryptionKey value

📊 Changes

1 file changed (+9 additions, -7 deletions)

View changed files

📝 infrastructure_files/configure.sh (+9 -7)

📄 Description

Describe your changes

Ensure configure.sh script does not clear the DataStoreEncryptionKey value, even for the artifacts/management.json file.

The script currently already has this logic for the management.json file. This PR only extends it to the artifacts/management.json file.

Hotfix for #5257

Stack

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)

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.

Documentation

Select exactly one:

  • I added/updated documentation for this change
  • Documentation is not needed for this change (explain why)

This PR aligns actual behavior with expected behavior.

Docs PR URL (required if "docs added" is checked)

Paste the PR link from https://github.com/netbirdio/docs here:

https://github.com/netbirdio/docs/pull/__

Summary by CodeRabbit

  • Bug Fixes
    • Improved encryption key retrieval process to check multiple configuration locations and validate keys more robustly, ensuring reliable setup and deployment initialization.

🔄 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/5258 **Author:** [@CodingTil](https://github.com/CodingTil) **Created:** 2/4/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/configure.sh` --- ### 📝 Commits (1) - [`9a9a7ad`](https://github.com/netbirdio/netbird/commit/9a9a7ad75fb2ee7d2dfae23374475a2a0af26c44) Ensure configure.sh does not clear the DataStoreEncryptionKey value ### 📊 Changes **1 file changed** (+9 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `infrastructure_files/configure.sh` (+9 -7) </details> ### 📄 Description ## Describe your changes Ensure `configure.sh` script does not clear the `DataStoreEncryptionKey` value, even for the `artifacts/management.json` file. The script currently already has this logic for the `management.json` file. This PR only extends it to the `artifacts/management.json` file. ## Issue ticket number and link Hotfix for #5257 ## Stack <!-- branch-stack --> ### 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) > By submitting this pull request, you confirm that you have read and agree to the terms of the [Contributor License Agreement](https://github.com/netbirdio/netbird/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT.md). ## Documentation Select exactly one: - [ ] I added/updated documentation for this change - [X] Documentation is **not needed** for this change (explain why) This PR aligns actual behavior with expected behavior. ### Docs PR URL (required if "docs added" is checked) Paste the PR link from https://github.com/netbirdio/docs here: https://github.com/netbirdio/docs/pull/__ <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved encryption key retrieval process to check multiple configuration locations and validate keys more robustly, ensuring reliable setup and deployment initialization. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <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 07:05:58 -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#25404