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 user-seed.conf to set a username besides 'admin' #323

Merged
merged 5 commits into from
Sep 27, 2021
Merged

Allow user-seed.conf to set a username besides 'admin' #323

merged 5 commits into from
Sep 27, 2021

Conversation

gcoxmoz
Copy link
Contributor

@gcoxmoz gcoxmoz commented Sep 20, 2021

Pull Request (PR) description

Allow user-seed.conf to have a not-hardcoded userid instead of 'admin.

This Pull Request (PR) fixes the following issues

The user-seed.conf file sets a default local user/password (admin/changeme by default). Some security policies wish for you to have only non-default userids. At present, the existing module doesn't allow that.

The testing is a little lax here because there was not great testing on these classes to begin with. Sorry.

[user_info]
USERNAME=admin
USERNAME=<%= $user %>
Copy link
Member

Choose a reason for hiding this comment

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

thanks for the PR, can you please add a unit test for this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The class had no test at all, so I kinda winged it, but, "added."

@bastelfreak bastelfreak added the enhancement New feature or request label Sep 21, 2021
I didn't write much of this, and I'm not a great test writer, but, here goes.
@gcoxmoz gcoxmoz requested a review from bastelfreak September 27, 2021 15:16
@bastelfreak
Copy link
Member

thanks for the work!

@bastelfreak bastelfreak merged commit 3d4fb9a into voxpupuli:master Sep 27, 2021
@gcoxmoz gcoxmoz deleted the user_seed_user branch March 12, 2022 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants