[PR #4848] Fixed management.json Path in configure.sh when recreating artifacts files #24307

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/4848
Author: @vowaof
Created: 11/24/2025
Status: 🔄 Open

Base: mainHead: fix-configure-datastoreencryptionkey


📝 Commits (1)

  • f4fbc3e Fixed management.json Path in configure.sh

📊 Changes

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

View changed files

📝 infrastructure_files/configure.sh (+2 -3)

📄 Description

Describe your changes

When recreating the infrastructure artifacts files using the configure.sh script, it searches for the DataStoreEncryptionKey in the management.json file.

The problem is, that it searches for the file in the folder infrastructure_files and not in the correct $artifacts_path folder.

Thats why the DataStoreEncryptionKey gets cleared and newly generated every time the configure.sh script is executed.

This PR fixes the problem by using the correct path for the reading of the DataStoreEncryptionKey from $artifacts_path/management.json

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)

Docs not needed explanation

It's a bugfix in the infrastructure configure.sh script which doesn't change the way it's used.

Summary by CodeRabbit

  • Chores
    • Updated configuration file path resolution to use artifact directory structure.

✏️ Tip: You can customize this high-level summary in your review settings.


🔄 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/4848 **Author:** [@vowaof](https://github.com/vowaof) **Created:** 11/24/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix-configure-datastoreencryptionkey` --- ### 📝 Commits (1) - [`f4fbc3e`](https://github.com/netbirdio/netbird/commit/f4fbc3e4b4d2d43e17b2e87bfd4993593af2c1cb) Fixed management.json Path in configure.sh ### 📊 Changes **1 file changed** (+2 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `infrastructure_files/configure.sh` (+2 -3) </details> ### 📄 Description ## Describe your changes When recreating the infrastructure artifacts files using the configure.sh script, it searches for the `DataStoreEncryptionKey` in the management.json file. The problem is, that it searches for the file in the folder `infrastructure_files` and not in the correct `$artifacts_path` folder. Thats why the `DataStoreEncryptionKey` gets cleared and newly generated every time the configure.sh script is executed. This PR fixes the problem by using the correct path for the reading of the `DataStoreEncryptionKey` from `$artifacts_path/management.json` ### 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) ### Docs not needed explanation It's a bugfix in the infrastructure configure.sh script which doesn't change the way it's used. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated configuration file path resolution to use artifact directory structure. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- 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 06:08:31 -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#24307