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

Introduce new API _plugins/_security/ssl/certs #1841

Merged

Conversation

cliu123
Copy link
Member

@cliu123 cliu123 commented May 16, 2022

Signed-off-by: cliu123 lc12251109@gmail.com

Description

Introducing _plugins/_security/api/ssl/certs API path to be consistent with OpenSearch API path convention.

  • Category (Enhancement, New feature, Bug fix, Test fix, Refactoring, Maintenance, Documentation) Enhancement
  • Why these changes are required? Apply consistent API path convention.

Issues Resolved

#1827

Testing

UTs

Check List

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

TO-DO

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.

Signed-off-by: cliu123 <lc12251109@gmail.com>
@cliu123 cliu123 requested a review from a team May 16, 2022 21:34
@codecov-commenter
Copy link

codecov-commenter commented May 16, 2022

Codecov Report

Merging #1841 (a9960ad) into main (3d3362a) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               main    #1841      +/-   ##
============================================
- Coverage     60.87%   60.86%   -0.02%     
+ Complexity     3214     3213       -1     
============================================
  Files           256      256              
  Lines         18006    18006              
  Branches       3209     3209              
============================================
- Hits          10961    10959       -2     
- Misses         5466     5467       +1     
- Partials       1579     1580       +1     
Impacted Files Coverage Δ
.../security/ssl/rest/SecuritySSLCertsInfoAction.java 61.11% <100.00%> (ø)
...a/org/opensearch/security/tools/SecurityAdmin.java 37.31% <0.00%> (-0.25%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3d3362a...a9960ad. Read the comment docs.

Copy link
Member

@peternied peternied left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this fix and the updated tests.

While we are doing this, it looks like there are other places where we are not properly supporting both path variants, could build on this or make another PR where we catch all of the missing APIs?

@cliu123 cliu123 merged commit dce5826 into opensearch-project:main May 17, 2022
@cliu123 cliu123 deleted the add_new_api_path_for_ssl_cert branch May 17, 2022 18:38
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.0 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.0 2.0
# Navigate to the new working tree
cd .worktrees/backport-2.0
# Create a new branch
git switch --create backport/backport-1841-to-2.0
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 dce58266b0242286ff118f8d1360f7867006ad8a
# Push it to GitHub
git push --set-upstream origin backport/backport-1841-to-2.0
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.0

Then, create a pull request where the base branch is 2.0 and the compare/head branch is backport/backport-1841-to-2.0.

cliu123 added a commit to cliu123/security that referenced this pull request May 17, 2022
cliu123 added a commit to cliu123/security that referenced this pull request May 17, 2022
Signed-off-by: cliu123 <lc12251109@gmail.com>
(cherry picked from commit dce5826)
cliu123 added a commit that referenced this pull request May 17, 2022
Signed-off-by: cliu123 <lc12251109@gmail.com>
(cherry picked from commit dce5826)
wuychn pushed a commit to ochprince/security that referenced this pull request Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.0 backport to 2.0 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants