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

Fixes #9888 - use random_password over generate_password #57

Merged
merged 1 commit into from
Mar 26, 2015

Conversation

dustints
Copy link

generate_password has a dependency on openssl.

@@ -120,7 +120,7 @@
$ca_key = "${certs::pki_dir}/private/${default_ca_name}.key"
$ca_cert = "${certs::pki_dir}/certs/${default_ca_name}.crt"
$ca_cert_stripped = "${certs::pki_dir}/certs/${default_ca_name}-stripped.crt"
$ca_key_password = cache_data('ca_key_password', generate_password())
$ca_key_password = cache_data('ca_key_password', random_password())
Copy link
Member

Choose a reason for hiding this comment

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

random_password takes a length argument, and you should bump the theforeman-foreman requirement in metadata.json to >= 2.0.0, as that is when it was introduced

Copy link
Author

Choose a reason for hiding this comment

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

updated

@@ -120,7 +120,7 @@
$ca_key = "${certs::pki_dir}/private/${default_ca_name}.key"
$ca_cert = "${certs::pki_dir}/certs/${default_ca_name}.crt"
$ca_cert_stripped = "${certs::pki_dir}/certs/${default_ca_name}-stripped.crt"
$ca_key_password = cache_data('ca_key_password', generate_password())
$ca_key_password = cache_data('ca_key_password', random_password(8))
Copy link
Member

Choose a reason for hiding this comment

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

Nitpicky, but 8 is very short. I'd say 24 at least. No one's going to be typing this in

generate_password has a dependency on openssl.
@dustints
Copy link
Author

@stbenjam sounds good, updated!

@stbenjam
Copy link
Member

ACK

dustints pushed a commit that referenced this pull request Mar 26, 2015
Fixes #9888 - use random_password over generate_password
@dustints dustints merged commit cec063a into theforeman:master Mar 26, 2015
@dustints dustints deleted the 9888 branch March 26, 2015 13:50
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