-
Notifications
You must be signed in to change notification settings - Fork 221
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
Check that parameters for certificate and private key are not set to the same file #589
Comments
@thomastaylor312 Hey i am just getting started with rust and thought this was a good way to get started, any pointers on where I can begin ? |
@sladyn98 That code should be common to most ways of building a config and can return an error during initialization, which should be suitable for this check. |
Hi @sladyn98, thanks for offering to help! So when I was double checking things, I actually think we'd want to verify this in the The reason being is that the config file and command line flag stuff is optional, which means a user can generate a Hope that helps! And thanks again for the help |
Hi, I found this issue was not updated since June 5th and I'm been following Krustlet community. So I submit a new PR, could you please help review this PR when it is convenient. Thanks. |
When --cert-file and --private-key-file are set to the same file one overwrites the other and TLS fails with a parse error (which makes sense).
A quick check in the config that these parameters do not have the same value would be a useful addition I think.
The text was updated successfully, but these errors were encountered: