-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Vault 27392 log ldap warning - remove from warning from response #29134
Vault 27392 log ldap warning - remove from warning from response #29134
Conversation
CI Results: |
Build Results: |
75f7930
to
cf80b6d
Compare
Do we also plan to make the changes to the hashicorp/cap library as mentioned in the Jira? |
@fairclothjm it didn't seem necessary to modify the hashicorp/cap library, which provides the ldap client and returns the slice of warnings, which seems helpful to any consumer of the ldap client. For the requirement to modify how the end user receives the warnings, it appeared that the change was only needed in the LDAP plugin |
@hashiblaum Thanks, I see what you mean. Can we also add a changelog of type |
cf80b6d
to
147c7c2
Compare
@fairclothjm thanks, I added the changelog with the type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took another look at the Jira and we should also remove the AddWarning call on Line 124.
Co-authored-by: John-Michael Faircloth <fairclothjm@users.noreply.github.com>
Co-authored-by: John-Michael Faircloth <fairclothjm@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Looks like a failing test?
https://github.com/hashicorp/vault/actions/runs/12657568986/job/35272697843?pr=29134 |
7027537
to
b2b1aab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Description
What does this PR do?
This PR removes LDAP warnings from API response when trying to authenticate with LDAP and instead logs them at the Warning log level
JIRA: https://hashicorp.atlassian.net/browse/VAULT-27392