Open mtamboli opened 2 months ago
FYI, @arkarkala @leochr @jgawor
Hi Monica,
I agree, we can improve the message here
The password was not processed because an unknown password algorithm exception was reported. UnsupportedCryptoAlgorithmException...
is not very helpful.
Perhaps we could say something like
Unable to decode the {AES} password, this may be due to the password being encoded using a different encryption key or there is a typo in the encoded password value. Ensure the wlp.password.encryption.key property is set to the same value that was used to encode the password
Hi Monica,
I agree, we can improve the message here
The password was not processed because an unknown password algorithm exception was reported. UnsupportedCryptoAlgorithmException...
is not very helpful.Perhaps we could say something like
Unable to decode the {AES} password, this may be due to the password being encoded using a different encryption key or there is a typo in the encoded password value. Ensure the wlp.password.encryption.key property is set to the same value that was used to encode the password
I like your suggestion for the new message. Thank you for looking into this.
Describe the bug
A clear and concise description of what the bug is. I am testing custom AES key as the feature is added to WebSphere/Open Liberty Operator.
I tried incorrect AES password which is not encrypted with provided AES key and I see below exceptions during startup and when accessing DB2. I think these exceptions are not clear and need to be updated. We need to clearly mentioned that password could not decrypted: AES algorithm is known to Liberty.
Steps to Reproduce
Steps to reproduce the bug I saw the problem for Liberty application deployed in OCP cluster but it is equivalent to below steps:
[9/9/24, 20:55:20:285 UTC] 0000001e com.ibm.websphere.crypto.PasswordUtil E CWWKS1856E: The password was not processed because an unknown password algorithm exception was reported.
Expected behavior
A clear and concise description of what you expected to happen. We need improved exception which says that provided password cannot be decrypted instead of
unknown password algorithm
Diagnostic information:
java -version
]$WLP_OUTPUT_DIR/messages.log
Liberty version 24.0.0.8 Eclipse OpenJ9 VM, version 17.0.8.1+1 (en_US)
Additional context
Add any other context about the problem here.