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

Store admin password in separate file #27

Merged
merged 2 commits into from
Jul 29, 2024
Merged

Store admin password in separate file #27

merged 2 commits into from
Jul 29, 2024

Conversation

stephdl
Copy link
Collaborator

@stephdl stephdl commented Jul 5, 2024

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

@stephdl stephdl force-pushed the noPasswordInEnv branch from fc80140 to ee318fd Compare July 5, 2024 10:17
@stephdl stephdl self-assigned this Jul 5, 2024
@stephdl stephdl requested a review from DavidePrincipi July 5, 2024 10:25
@stephdl stephdl force-pushed the noPasswordInEnv branch from ee318fd to 4408310 Compare July 5, 2024 10:26
@stephdl stephdl force-pushed the noPasswordInEnv branch from 4408310 to 6d19315 Compare July 5, 2024 10:27
imageroot/actions/configure-module/20configure Outdated Show resolved Hide resolved
imageroot/actions/get-configuration/20read Outdated Show resolved Hide resolved
imageroot/systemd/user/collabora.service Outdated Show resolved Hide resolved
imageroot/actions/configure-module/20configure Outdated Show resolved Hide resolved
imageroot/actions/configure-module/20configure Outdated Show resolved Hide resolved
imageroot/update-module.d/10upgrade_password Outdated Show resolved Hide resolved
@stephdl stephdl requested a review from DavidePrincipi July 5, 2024 14:43

if admin_password:
agent.write_envfile("password.env", {"password": admin_password})
agent.unset_env("ADMIN_PASSWORD")
Copy link
Member

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...

Copy link
Collaborator Author

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

@stephdl stephdl merged commit cb29c17 into main Jul 29, 2024
1 check passed
@stephdl stephdl deleted the noPasswordInEnv branch July 29, 2024 08:12
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