netbird pre-shared not persistent #341

Closed
opened 2025-11-20 05:09:52 -05:00 by saavagebueno · 4 comments
Owner

Originally created by @support-tt on GitHub (May 22, 2023).

Describe the problem
PreShared key not persistent in the config.json on ubuntu 20.04 , 22.04 , 23.04 , Windows and Mint. (At least this distros I tested)

To Reproduce
Steps to reproduce the behavior:

  1. netbird up --preshared-key PreSharedKey
  2. cat /etc/netbird/config.json --> PreShared key is in the config
  3. netbird down --> Still Key is in the Config
  4. netbird up --> Key removed from the konfig

Same problem when using gui. I already opened a issue #845 which was closed as fixed but the problem is still in the 0.20.3.

Expected behavior
Key should be persistent in the config.josn because after restarts of the service or the server the client connects without the key so preshared key protection is disabled ...

NetBird status -d output:
If applicable, add the output of the netbird status -d command
Is think not relevant because the connection is working fine when connected without preshared key or using netbird up --preshared-key with every connect.

Screenshots
Same problem/screenshots then in #845

Originally created by @support-tt on GitHub (May 22, 2023). **Describe the problem** PreShared key not persistent in the config.json on ubuntu 20.04 , 22.04 , 23.04 , Windows and Mint. (At least this distros I tested) **To Reproduce** Steps to reproduce the behavior: 1. netbird up --preshared-key PreSharedKey 2. cat /etc/netbird/config.json --> PreShared key is in the config 3. netbird down --> Still Key is in the Config 4. netbird up --> Key removed from the konfig Same problem when using gui. I already opened a issue #845 which was closed as fixed but the problem is still in the 0.20.3. **Expected behavior** Key should be persistent in the config.josn because after restarts of the service or the server the client connects without the key so preshared key protection is disabled ... **NetBird status -d output:** If applicable, add the output of the `netbird status -d` command Is think not relevant because the connection is working fine when connected without preshared key or using netbird up --preshared-key with every connect. **Screenshots** Same problem/screenshots then in #845
Author
Owner

@support-tt commented on GitHub (Jun 21, 2023):

is no one using the pre-shared key function (still not persistent in 21.5)?
Because in my tests every time netbird is started I need to manually add the psk (in the UI I needed to readd it and in CLI I need to define the option --preshared-key)

@support-tt commented on GitHub (Jun 21, 2023): is no one using the pre-shared key function (still not persistent in 21.5)? Because in my tests every time netbird is started I need to manually add the psk (in the UI I needed to readd it and in CLI I need to define the option --preshared-key)
Author
Owner

@mlsmaycon commented on GitHub (Jul 21, 2023):

@support-tt can you please check the latest 0.21.9 version?

@mlsmaycon commented on GitHub (Jul 21, 2023): @support-tt can you please check the latest 0.21.9 version?
Author
Owner

@support-tt commented on GitHub (Jul 21, 2023):

@mlsmaycon thank you very much in linux this is working perfectly fine now. i will ask my collegue to also test it in windows but it looks great.

@support-tt commented on GitHub (Jul 21, 2023): @mlsmaycon thank you very much in linux this is working perfectly fine now. i will ask my collegue to also test it in windows but it looks great.
Author
Owner

@support-tt commented on GitHub (Jul 21, 2023):

@mlsmaycon windows 11 is now also tested and working fine. I think we can close this now.
Thank you very much for the fix :)

@support-tt commented on GitHub (Jul 21, 2023): @mlsmaycon windows 11 is now also tested and working fine. I think we can close this now. Thank you very much for the fix :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#341