-
Notifications
You must be signed in to change notification settings - Fork 39
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
Conversation
@@ -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()) |
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.
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
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.
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)) |
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.
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.
@stbenjam sounds good, updated! |
ACK |
Fixes #9888 - use random_password over generate_password
generate_password has a dependency on openssl.