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

Service Accounts password is randomly generated #3077

Merged

Conversation

stephen-crawford
Copy link
Contributor

Description

Uses Passay to generate a random password for service accounts where each password is between 8 and 16 characters and has at least 1 of each: lower case letter, upper case letter, digit, special symbol.

Issues Resolved

#3076

Testing

Added password validation test to UserAPITest

Check List

  • New functionality includes testing
  • New functionality has been documented
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@codecov
Copy link

codecov bot commented Jul 31, 2023

Codecov Report

Merging #3077 (a12f2fc) into main (3d78135) will decrease coverage by 0.07%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               main    #3077      +/-   ##
============================================
- Coverage     62.44%   62.37%   -0.07%     
+ Complexity     3352     3350       -2     
============================================
  Files           254      254              
  Lines         19741    19747       +6     
  Branches       3334     3334              
============================================
- Hits          12327    12317      -10     
- Misses         5785     5797      +12     
- Partials       1629     1633       +4     
Files Changed Coverage Δ
...java/org/opensearch/security/user/UserService.java 50.86% <100.00%> (+2.68%) ⬆️

... and 5 files with indirect coverage changes

willyborankin
willyborankin previously approved these changes Aug 2, 2023
cwperks
cwperks previously approved these changes Aug 2, 2023
Signed-off-by: Stephen Crawford <[email protected]>
@peternied peternied added backport 2.x backport to 2.x branch v2.10.0 Issues targeting release v2.10.0 labels Aug 4, 2023
@peternied peternied merged commit 1822e13 into opensearch-project:main Aug 4, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 4, 2023
Uses Passay to generate a random password for service accounts where
each password is between 8 and 16 characters and has at least 1 of each:
lower case letter, upper case letter, digit, special symbol.

Signed-off-by: Stephen Crawford <[email protected]>
(cherry picked from commit 1822e13)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
peternied added a commit that referenced this pull request Aug 9, 2023
Backport 1822e13 from #3077.

Signed-off-by: Stephen Crawford <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Peter Nied <[email protected]>
Co-authored-by: Craig Perkins <[email protected]>
@peternied peternied changed the title Make user service use a random password Service Accounts password is randomly generated Aug 31, 2023
@stephen-crawford stephen-crawford deleted the useRandomPassword branch September 14, 2023 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport to 2.x branch v2.10.0 Issues targeting release v2.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants