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

refactor: argo password reset script #1663

Merged
merged 2 commits into from
Jul 4, 2024
Merged

Conversation

deer-wmde
Copy link
Contributor

some improvements to the password reset script, so that per default its only output is the new password.

--type='json' \
--patch="[{'op': 'replace', 'path': '/data/admin.password', 'value': '${ENCODED_HASH}'}]"
}

PASSWORD=$(pwgen -N1 -Bs 32)
Copy link
Contributor

@m90 m90 Jul 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to this change, but is pwgen a commonly installed tool? I've never heard of it yet, and it's not installed on my system. Maybe we can get away with reading from urandom which should work kind of everywhere

tr -dc A-Za-z0-9 </dev/urandom | head -c 32

Feel free to disregard this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fairly common but I still like your suggestion, thanks 🎇

@deer-wmde deer-wmde merged commit 060f0a6 into main Jul 4, 2024
2 checks passed
@deer-wmde deer-wmde deleted the de/argo-improve-pw-reset-script branch July 4, 2024 13:00
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