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

NULL pass phrase SHOULD NOT be replaced with "changeit" #5126

Closed
AKGarimella opened this issue May 12, 2023 · 0 comments · Fixed by #5131
Closed

NULL pass phrase SHOULD NOT be replaced with "changeit" #5126

AKGarimella opened this issue May 12, 2023 · 0 comments · Fixed by #5131
Assignees
Milestone

Comments

@AKGarimella
Copy link

https://github.com/fabric8io/kubernetes-client/blob/8cf4804a039bc221aed2f6bae3d4c2568874fb5f/kubernetes-client-api/src/main/java/io/fabric8/kubernetes/client/internal/CertUtils.java#LL83C1-L83C1

TrustStores can have null pass phrase. We are unable to use fabric8io client with our custom truststore which has no pass phrase (PEM format) because the code by default uses changeit when pass phrase is null. This shouldn't be the case.

trustStore.load(in, null); is OK with java KeyStore/TrustStore.

null string => null char[]
Also, production systems typically do not changeit as their default pass phrase. So such an assumption in code should never be made.

shawkins added a commit to shawkins/kubernetes-client that referenced this issue May 15, 2023
shawkins added a commit to shawkins/kubernetes-client that referenced this issue May 15, 2023
shawkins added a commit to shawkins/kubernetes-client that referenced this issue May 15, 2023
shawkins added a commit to shawkins/kubernetes-client that referenced this issue May 15, 2023
manusa pushed a commit to shawkins/kubernetes-client that referenced this issue May 25, 2023
@manusa manusa added this to the 6.7.0 milestone May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants