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

In FIPS environment password must be at least 14 characters #558

Merged
merged 6 commits into from
Sep 17, 2024

Conversation

olamy
Copy link
Member

@olamy olamy commented Sep 12, 2024

Signed-off-by: Olivier Lamy olamy@apache.org

Testing done

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

Signed-off-by: Olivier Lamy <olamy@apache.org>
Signed-off-by: Olivier Lamy <olamy@apache.org>
Signed-off-by: Olivier Lamy <olamy@apache.org>
@olamy olamy marked this pull request as ready for review September 12, 2024 23:38
@olamy olamy requested a review from a team as a code owner September 12, 2024 23:38
@olamy olamy added the bug label Sep 12, 2024
@batmat batmat changed the title In FIPS environement password must be at least 14 characters In FIPS environment password must be at least 14 characters Sep 13, 2024
…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>
olamy added a commit to olamy/kubernetes-credentials-plugin that referenced this pull request Sep 17, 2024
Signed-off-by: Olivier Lamy <olamy@apache.org>
snapshot.setUsernameSecret(credentials.isUsernameSecret());
return snapshot;
} catch (Descriptor.FormException e) {
throw new RuntimeException(e);
Copy link
Member

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

@jtnord jtnord merged commit 81ef426 into jenkinsci:master Sep 17, 2024
17 checks passed
@olamy olamy deleted the password-length-fips-mode branch September 17, 2024 09:13
@basil
Copy link
Member

basil commented Sep 17, 2024

Breaks hudson.plugins.emailext.MailAccountFIPSTest#testFormValidationForInsecureAuth, hudson.plugins.git.FIPSModeUrlCheckTest#testGitSCMSourceCheck, and org.jenkinsci.plugins.kubernetes.credentials.OpenShiftBearerTokenCredentialWithFIPSTest in https://ci.jenkins.io/job/Tools/job/bom/job/PR-3588/2/

MarkEWaite added a commit to MarkEWaite/git-plugin that referenced this pull request Sep 17, 2024
jenkinsci/credentials-plugin#558 shows that
there are cases where a longer password is better in the test.
MarkEWaite added a commit to jenkinsci/git-plugin that referenced this pull request Sep 17, 2024
jenkinsci/credentials-plugin#558 shows that
there are cases where a longer password is better in the test.
olamy added a commit to olamy/email-ext-plugin that referenced this pull request Sep 18, 2024
slide pushed a commit to jenkinsci/email-ext-plugin that referenced this pull request Sep 24, 2024
MarkEWaite added a commit to jenkinsci/git-client-plugin that referenced this pull request Sep 28, 2024
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
MarkEWaite added a commit to jenkinsci/git-plugin that referenced this pull request Sep 28, 2024
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants