Skip to content

Updates all java files under security/* and test/security/a* -> test/security/m*#2826

Merged
stephen-crawford merged 5 commits intoopensearch-project:mainfrom
stephen-crawford:updateSecAuthToFilter
Jun 5, 2023
Merged

Updates all java files under security/* and test/security/a* -> test/security/m*#2826
stephen-crawford merged 5 commits intoopensearch-project:mainfrom
stephen-crawford:updateSecAuthToFilter

Conversation

@stephen-crawford
Copy link
Contributor

@stephen-crawford stephen-crawford commented May 31, 2023

Follows #2823
Updates all java files under security/auth to security/filter.

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.

) throws KeyManagementException {
sslContext.init(
!keyManagers.isEmpty() ? keyManagers.toArray(new KeyManager[keyManagers.size()]) : null,
new TrustManager[] { new OverlyTrustfulTrustManager() },

Check failure

Code scanning / CodeQL

`TrustManager` that accepts all certificates

This uses [TrustManager](1), which is defined in [SettingsBasedSSLConfigurator$OverlyTrustfulTrustManager](2) and trusts any certificate.
) throws KeyManagementException {
sslContext.init(
!keyManagers.isEmpty() ? keyManagers.toArray(new KeyManager[keyManagers.size()]) : null,
new TrustManager[] { new OverlyTrustfulTrustManager() },

Check failure

Code scanning / CodeQL

`TrustManager` that accepts all certificates

This uses [TrustManager](1), which is defined in [SettingsBasedSSLConfiguratorV4$OverlyTrustfulTrustManager](2) and trusts any certificate.
@codecov
Copy link

codecov bot commented May 31, 2023

Codecov Report

Merging #2826 (f41fb94) into main (76a5d7f) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main    #2826      +/-   ##
============================================
- Coverage     61.60%   61.59%   -0.01%     
+ Complexity     3414     3413       -1     
============================================
  Files           266      266              
  Lines         18917    18917              
  Branches       3303     3303              
============================================
- Hits          11653    11652       -1     
  Misses         5669     5669              
- Partials       1595     1596       +1     

see 1 file with indirect coverage changes

@stephen-crawford stephen-crawford changed the title Updates all java files under security/auth to security/filter Updates all java files under security/action to security/filter May 31, 2023
java {
// Normally this isn't necessary, but we have Java sources in
// non-standard places
target '**/com/amazon/dlic/**/*.java'
Copy link
Collaborator

@reta reta May 31, 2023

Choose a reason for hiding this comment

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

Hm .. same as #2823

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @reta, sorry I am not sure I know what you are referencing here :/. I assume you are looking at the list of targets which I know is not the prettiest way of doing things. Unfortunately, I did not see a ton of options for creating a clearer description of which directories have the new formatting in place.

Do you have a suggestion you would like me to follow?

Copy link
Collaborator

Choose a reason for hiding this comment

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

My sincere apologies, pasted wrong link here (not sure how), I meant this #2823 - seems like doing the same changes ....

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh gotcha. Yeah, for whatever reason, there does not seem to be many changes within the target set here. I will rebase and expand the range to include more. It is hard to tell before rebasing what is actually new. Good catch.

Copy link
Contributor Author

@stephen-crawford stephen-crawford Jun 1, 2023

Choose a reason for hiding this comment

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

Now should have changes under security/* and test/security/a* up to test/security/m*

Signed-off-by: Stephen Crawford <steecraw@amazon.com>
Signed-off-by: Stephen Crawford <steecraw@amazon.com>
Signed-off-by: Stephen Crawford <steecraw@amazon.com>
@stephen-crawford stephen-crawford changed the title Updates all java files under security/action to security/filter Updates all java files under security/* and test/security/* Jun 1, 2023
Signed-off-by: Stephen Crawford <steecraw@amazon.com>
@stephen-crawford stephen-crawford force-pushed the updateSecAuthToFilter branch from 19d1db0 to 825d365 Compare June 1, 2023 14:38
Signed-off-by: Stephen Crawford <steecraw@amazon.com>
@stephen-crawford stephen-crawford changed the title Updates all java files under security/* and test/security/* Updates all java files under security/* and test/security/a* -> test/security/m* Jun 1, 2023
@stephen-crawford
Copy link
Contributor Author

@DarshitChanpura @RyanL1997 either of you have a chance to review this? :) Thank you

@stephen-crawford stephen-crawford merged commit cb8818c into opensearch-project:main Jun 5, 2023
MaciejMierzwa pushed a commit to MaciejMierzwa/security that referenced this pull request Jun 13, 2023
…security/m* (opensearch-project#2826)

* Update Sec/action to Sec/Filter

Signed-off-by: Stephen Crawford <steecraw@amazon.com>

* Update Security/*

Signed-off-by: Stephen Crawford <steecraw@amazon.com>

* Update Security/* and test/opensearch/security/*

Signed-off-by: Stephen Crawford <steecraw@amazon.com>

* Half sec test changes

Signed-off-by: Stephen Crawford <steecraw@amazon.com>

* Half sec test changes

Signed-off-by: Stephen Crawford <steecraw@amazon.com>

---------

Signed-off-by: Stephen Crawford <steecraw@amazon.com>
Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
MaciejMierzwa pushed a commit to MaciejMierzwa/security that referenced this pull request Jun 13, 2023
…security/m* (opensearch-project#2826)

* Update Sec/action to Sec/Filter

Signed-off-by: Stephen Crawford <steecraw@amazon.com>

* Update Security/*

Signed-off-by: Stephen Crawford <steecraw@amazon.com>

* Update Security/* and test/opensearch/security/*

Signed-off-by: Stephen Crawford <steecraw@amazon.com>

* Half sec test changes

Signed-off-by: Stephen Crawford <steecraw@amazon.com>

* Half sec test changes

Signed-off-by: Stephen Crawford <steecraw@amazon.com>

---------

Signed-off-by: Stephen Crawford <steecraw@amazon.com>
Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
samuelcostae pushed a commit to samuelcostae/security that referenced this pull request Jun 19, 2023
…security/m* (opensearch-project#2826)

* Update Sec/action to Sec/Filter

Signed-off-by: Stephen Crawford <steecraw@amazon.com>

* Update Security/*

Signed-off-by: Stephen Crawford <steecraw@amazon.com>

* Update Security/* and test/opensearch/security/*

Signed-off-by: Stephen Crawford <steecraw@amazon.com>

* Half sec test changes

Signed-off-by: Stephen Crawford <steecraw@amazon.com>

* Half sec test changes

Signed-off-by: Stephen Crawford <steecraw@amazon.com>

---------

Signed-off-by: Stephen Crawford <steecraw@amazon.com>
samuelcostae pushed a commit to samuelcostae/security that referenced this pull request Jun 19, 2023
…security/m* (opensearch-project#2826)

* Update Sec/action to Sec/Filter

Signed-off-by: Stephen Crawford <steecraw@amazon.com>

* Update Security/*

Signed-off-by: Stephen Crawford <steecraw@amazon.com>

* Update Security/* and test/opensearch/security/*

Signed-off-by: Stephen Crawford <steecraw@amazon.com>

* Half sec test changes

Signed-off-by: Stephen Crawford <steecraw@amazon.com>

* Half sec test changes

Signed-off-by: Stephen Crawford <steecraw@amazon.com>

---------

Signed-off-by: Stephen Crawford <steecraw@amazon.com>
Signed-off-by: Sam <samuel.costa@eliatra.com>
samuelcostae pushed a commit to samuelcostae/security that referenced this pull request Jun 19, 2023
…security/m* (opensearch-project#2826)

* Update Sec/action to Sec/Filter

Signed-off-by: Stephen Crawford <steecraw@amazon.com>

* Update Security/*

Signed-off-by: Stephen Crawford <steecraw@amazon.com>

* Update Security/* and test/opensearch/security/*

Signed-off-by: Stephen Crawford <steecraw@amazon.com>

* Half sec test changes

Signed-off-by: Stephen Crawford <steecraw@amazon.com>

* Half sec test changes

Signed-off-by: Stephen Crawford <steecraw@amazon.com>

---------

Signed-off-by: Stephen Crawford <steecraw@amazon.com>
Signed-off-by: Sam <samuel.costa@eliatra.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments