-
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
base: main
Are you sure you want to change the base?
Vault 27392 log ldap warning - remove from warning from response #29134
Conversation
CI Results: failed ❌
|
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>
@@ -0,0 +1,3 @@ | |||
```release-note:change | |||
auth/ldap: No longer return authentication warnings to client. Some debug logs are now logged at the warning log level. |
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.
auth/ldap: No longer return authentication warnings to client. Some debug logs are now logged at the warning log level. | |
auth/ldap: No longer return authentication warnings to client. |
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