-
Notifications
You must be signed in to change notification settings - Fork 245
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
In FIPS environment password must be at least 14 characters #558
Conversation
Signed-off-by: Olivier Lamy <olamy@apache.org>
src/main/java/com/cloudbees/plugins/credentials/impl/UsernamePasswordCredentialsImpl.java
Dismissed
Show dismissed
Hide dismissed
src/main/java/com/cloudbees/plugins/credentials/impl/UsernamePasswordCredentialsImpl.java
Fixed
Show fixed
Hide fixed
Signed-off-by: Olivier Lamy <olamy@apache.org>
Signed-off-by: Olivier Lamy <olamy@apache.org>
src/main/java/com/cloudbees/plugins/credentials/impl/UsernamePasswordCredentialsImpl.java
Outdated
Show resolved
Hide resolved
...est/java/com/cloudbees/plugins/credentials/impl/UsernamePasswordCredentialsImplFIPSTest.java
Outdated
Show resolved
Hide resolved
…asswordCredentialsImplFIPSTest.java Co-authored-by: James Nord <jtnord@users.noreply.github.com>
Signed-off-by: Olivier Lamy <olamy@apache.org>
Signed-off-by: Olivier Lamy <olamy@apache.org>
Signed-off-by: Olivier Lamy <olamy@apache.org>
snapshot.setUsernameSecret(credentials.isUsernameSecret()); | ||
return snapshot; | ||
} catch (Descriptor.FormException e) { | ||
throw new RuntimeException(e); |
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.
weired. I was expecting the method to throw be able to throw an IOException
as many credentials can (and are) documented to do that. doc
Breaks |
jenkinsci/credentials-plugin#558 shows that there are cases where a longer password is better in the test.
jenkinsci/credentials-plugin#558 shows that there are cases where a longer password is better in the test.
…ode jenkinsci/credentials-plugin#558 Signed-off-by: Olivier Lamy <olamy@apache.org>
…ode jenkinsci/credentials-plugin#558 Signed-off-by: Olivier Lamy <olamy@apache.org>
https://github.com/jenkinsci/credentials-plugin/releases/tag/1378.v81ef4269d764 includes the change to throw a FormException from the UsernamePasswordCredentialsImpl constructor. Change included in: * jenkinsci/credentials-plugin#558
https://github.com/jenkinsci/credentials-plugin/releases/tag/1378.v81ef4269d764 includes changes that throw a Descriptor.FormException from the UsernamePasswordCredentialsImpl constructor. Added in: * jenkinsci/credentials-plugin#558
Signed-off-by: Olivier Lamy olamy@apache.org
Testing done
Submitter checklist