Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to create config file next to binary #701

Merged
merged 3 commits into from
Feb 28, 2023
Merged

Allow to create config file next to binary #701

merged 3 commits into from
Feb 28, 2023

Conversation

pappz
Copy link
Contributor

@pappz pappz commented Feb 22, 2023

Describe your changes

Without you set the full path of the config file the Netbird can not
handle it. We check the path of the given config file's name and
if it is not contain a folder then skip the step to create a folder
for it.
You can place the config file next to the binary:
./netbird up --config myconfig.json

Issue ticket number and link

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

If we do not define the configDir then the Go
create a random temp dir for copy routine.
It is not optimal from security purpose.
@pappz pappz requested a review from mlsmaycon February 26, 2023 10:17
@mlsmaycon mlsmaycon merged commit 462a86c into main Feb 28, 2023
@mlsmaycon mlsmaycon deleted the fix-config-file branch February 28, 2023 16:01
pulsastrix pushed a commit to pulsastrix/netbird that referenced this pull request Dec 24, 2023
Force to use the proper temp dir

If we do not define the configDir then the Go
create a random temp dir for copy routine.
It is not optimal from security purpose.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants