-
Notifications
You must be signed in to change notification settings - Fork 4
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
Store admin password in separate file #27
Conversation
|
||
if admin_password: | ||
agent.write_envfile("password.env", {"password": admin_password}) | ||
agent.unset_env("ADMIN_PASSWORD") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you test if unset_env works from update-module.d? It should but I'm not sure...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep tested it and I confirm the password is removed from environment file
This pull request adds functionality to store the admin password in a separate file called "password.env". Storing the password in a separate file improves security and allows for easier management of the password.
NethServer/dev#6969