Only check validity of certs in the chain of the node certificates#4979
Merged
cwperks merged 9 commits intoApr 14, 2025
Conversation
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4979 +/- ##
==========================================
- Coverage 72.07% 72.01% -0.06%
==========================================
Files 336 336
Lines 22614 22648 +34
Branches 3554 3560 +6
==========================================
+ Hits 16298 16309 +11
- Misses 4543 4567 +24
+ Partials 1773 1772 -1
🚀 New features to boost your workflow:
|
Signed-off-by: Craig Perkins <cwperx@amazon.com>
cwperks
commented
Apr 8, 2025
cwperks
commented
Apr 8, 2025
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Member
Author
|
To generate new certs to add to the truststore I use commands like: To import the new cert to the truststore: The password for the test truststore is |
willyborankin
previously approved these changes
Apr 9, 2025
DarshitChanpura
left a comment
Member
There was a problem hiding this comment.
Thanks @cwperks left couple of comments and couple of nits.
Signed-off-by: Craig Perkins <cwperx@amazon.com>
DarshitChanpura
approved these changes
Apr 14, 2025
RyanL1997
approved these changes
Apr 14, 2025
RyanL1997
approved these changes
Apr 14, 2025
DarshitChanpura
added a commit
to DarshitChanpura/security
that referenced
this pull request
Apr 21, 2025
…pensearch-project#4979) Signed-off-by: Craig Perkins <cwperx@amazon.com> Co-authored-by: Darshit Chanpura <dchanp@amazon.com> Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
Contributor
|
The backport to To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/security/backport-2.19 2.19
# Navigate to the new working tree
pushd ../.worktrees/security/backport-2.19
# Create a new branch
git switch --create backport/backport-4979-to-2.19
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 280d8e5fb80e7c0732a162ea9f682a75040593d3
# Push it to GitHub
git push --set-upstream origin backport/backport-4979-to-2.19
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/security/backport-2.19Then, create a pull request where the |
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR updates the certificate validation checks on bootup to limit validation to only the certificates within the chain of the node certificates. In 2.18.0 there was a change that validated all certificates contained in a bundle even if they were not part of the chain from the node certificates. Since those certs are not pertinent to OpenSearch, the validation does not need to occur.
Opening this in Draft as POC to start soliciting some feedback. Automated tests need to be added for different scenarios.
Bug fix
Issues Resolved
Related issue: #4949
See discussion on forum: https://forum.opensearch.org/t/is-this-an-issue-with-opensearch-or-the-security-plugin-upgrading-from-2-17-1-to-2-18-0/22395
Check List
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.