Skip to content

Update *.java style for security/action/*#2824

Closed
stephen-crawford wants to merge 4 commits intoopensearch-project:mainfrom
stephen-crawford:updateSecurityAction
Closed

Update *.java style for security/action/*#2824
stephen-crawford wants to merge 4 commits intoopensearch-project:mainfrom
stephen-crawford:updateSecurityAction

Conversation

@stephen-crawford
Copy link
Contributor

Description

Follows #2823.
Updates the style for java files under the **/security/action/ dir.

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.

Signed-off-by: Stephen Crawford <steecraw@amazon.com>
Signed-off-by: Stephen Crawford <steecraw@amazon.com>
Signed-off-by: Stephen Crawford <steecraw@amazon.com>
Signed-off-by: Stephen Crawford <steecraw@amazon.com>
) 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 #2824 (d72bd11) into main (5f9c90b) will increase coverage by 0.00%.
The diff coverage is 57.73%.

@@            Coverage Diff            @@
##               main    #2824   +/-   ##
=========================================
  Coverage     61.61%   61.61%           
- Complexity     3413     3414    +1     
=========================================
  Files           266      266           
  Lines         18893    18917   +24     
  Branches       3305     3303    -2     
=========================================
+ Hits          11640    11655   +15     
- Misses         5656     5667   +11     
+ Partials       1597     1595    -2     
Impacted Files Coverage Δ
...ic/auth/http/jwt/AbstractHTTPJwtAuthenticator.java 58.42% <0.00%> (ø)
...ic/auth/http/kerberos/HTTPSpnegoAuthenticator.java 0.00% <0.00%> (ø)
...azon/dlic/auth/http/kerberos/util/JaasKrbUtil.java 0.00% <0.00%> (ø)
...zon/dlic/auth/http/kerberos/util/KrbConstants.java 0.00% <0.00%> (ø)
.../dlic/auth/http/saml/SamlHTTPMetadataResolver.java 62.96% <ø> (ø)
.../main/java/com/amazon/dlic/auth/ldap/LdapUser.java 85.71% <ø> (ø)
...a/org/opensearch/security/DefaultObjectMapper.java 64.55% <ø> (ø)
.../action/configupdate/ConfigUpdateNodeResponse.java 77.27% <ø> (ø)
...tion/configupdate/TransportConfigUpdateAction.java 100.00% <ø> (ø)
.../security/action/whoami/TransportWhoAmIAction.java 33.33% <0.00%> (ø)
... and 124 more

... and 1 file with indirect coverage changes

@stephen-crawford
Copy link
Contributor Author

Closing this because so few changes are present here. Going to condense with other packages.

@stephen-crawford stephen-crawford deleted the updateSecurityAction branch December 11, 2023 19:26
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.

2 participants

Comments