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

Log deprecation message on legacy ldap pool settings #2099

Merged
merged 7 commits into from
Oct 6, 2022

Conversation

peternied
Copy link
Member

@peternied peternied commented Sep 22, 2022

Description

Log deprecation message on legacy ldap pool settings

Following up on comment #2091 (review) from a contribution by @Martin-Kemp

Issues

Testing

Manually tested - adding deprecation check involves migrating these tests to OpenSearchTestCase, far outside the scope of the existing security testing infrastructure, created #2098

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.

@peternied peternied requested a review from a team September 22, 2022 16:32
@codecov-commenter
Copy link

codecov-commenter commented Sep 22, 2022

Codecov Report

Merging #2099 (3e90740) into main (aeb7ab5) will decrease coverage by 0.01%.
The diff coverage is 93.75%.

@@             Coverage Diff              @@
##               main    #2099      +/-   ##
============================================
- Coverage     61.06%   61.04%   -0.02%     
- Complexity     3231     3234       +3     
============================================
  Files           256      257       +1     
  Lines         18077    18110      +33     
  Branches       3224     3229       +5     
============================================
+ Hits          11039    11056      +17     
- Misses         5464     5472       +8     
- Partials       1574     1582       +8     
Impacted Files Coverage Δ
...pensearch/security/setting/DeprecatedSettings.java 80.00% <80.00%> (ø)
.../main/java/com/amazon/dlic/auth/ldap/LdapUser.java 85.71% <100.00%> (ø)
...c/auth/ldap/backend/LDAPAuthenticationBackend.java 81.57% <100.00%> (+0.32%) ⬆️
.../dlic/auth/ldap2/LDAPConnectionFactoryFactory.java 57.46% <100.00%> (+0.64%) ⬆️
...ttp/netty/SecuritySSLNettyHttpServerTransport.java 78.94% <0.00%> (-16.06%) ⬇️
...urity/ssl/transport/SecuritySSLNettyTransport.java 62.36% <0.00%> (-4.31%) ⬇️
...earch/security/ssl/util/SSLConnectionTestUtil.java 93.18% <0.00%> (-2.28%) ⬇️
...ecurity/configuration/ConfigurationRepository.java 72.13% <0.00%> (-2.19%) ⬇️
...opensearch/security/ssl/util/SSLRequestHelper.java 63.80% <0.00%> (-0.90%) ⬇️
...ensearch/security/ssl/DefaultSecurityKeyStore.java 67.83% <0.00%> (+0.20%) ⬆️
... and 2 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

cwperks
cwperks previously approved these changes Sep 29, 2022
Copy link
Member

@cwperks cwperks left a comment

Choose a reason for hiding this comment

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

Thanks @peternied! Can you link to the addition issue resolved by this PR (#2059) in the PR description? 🎸

Copy link
Member

@DarshitChanpura DarshitChanpura left a comment

Choose a reason for hiding this comment

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

Ty Peter. I will approve once the CI passes.

* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
package org.opensearch.security.setting;
Copy link
Member

Choose a reason for hiding this comment

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

👍

Copy link
Member Author

@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.

Sorry for the momentarily disappearing changes, everything has been restored, all is well

cwperks
cwperks previously approved these changes Oct 4, 2022
@cwperks cwperks added the backport 2.x backport to 2.x branch label Oct 4, 2022
@cwperks
Copy link
Member

cwperks commented Oct 4, 2022

@peternied Please resolve the unused import CI failure. This looks good to me. I will approve again once CI is passing.

Signed-off-by: Peter Nied <[email protected]>
Signed-off-by: Peter Nied <[email protected]>
cwperks
cwperks previously approved these changes Oct 4, 2022
@peternied
Copy link
Member Author

@opensearch-project/security Could I get another review?

Copy link
Member

@DarshitChanpura DarshitChanpura left a comment

Choose a reason for hiding this comment

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

Ty @peternied for this! I have added a couple comments requesting small changes. I will approve once those are addressed.

@peternied peternied merged commit e5ab646 into opensearch-project:main Oct 6, 2022
@peternied peternied deleted the log-deprecation branch October 6, 2022 20:52
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 6, 2022
* Log deprecation message on legacy ldap pool settings

Signed-off-by: Peter Nied <[email protected]>
Signed-off-by: Peter Nied <[email protected]>
Co-authored-by: Martin Kemp <[email protected]>
(cherry picked from commit e5ab646)
peternied pushed a commit that referenced this pull request Oct 6, 2022
* Log deprecation message on legacy ldap pool settings

Signed-off-by: Peter Nied <[email protected]>
Signed-off-by: Peter Nied <[email protected]>
Co-authored-by: Martin Kemp <[email protected]>
(cherry picked from commit e5ab646)
stephen-crawford pushed a commit to stephen-crawford/security that referenced this pull request Nov 10, 2022
…ect#2099)

* Log deprecation message on legacy ldap pool settings

Signed-off-by: Peter Nied <[email protected]>
Signed-off-by: Peter Nied <[email protected]>
Co-authored-by: Martin Kemp <[email protected]>
Signed-off-by: Stephen Crawford <[email protected]>
wuychn pushed a commit to ochprince/security that referenced this pull request Mar 16, 2023
…ect#2099) (opensearch-project#2147)

* Log deprecation message on legacy ldap pool settings

Signed-off-by: Peter Nied <[email protected]>
Signed-off-by: Peter Nied <[email protected]>
Co-authored-by: Martin Kemp <[email protected]>
(cherry picked from commit e5ab646)
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace non-inclusive term "whitelist" in LDAP configuration
4 participants