-
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 27421 update cap/ldap dep #29302
Conversation
CI Results: |
Build Results: |
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.
Thanks! Can we also update cap/ldap in the sdk's go.mod?
Line 18 in e153846
github.com/hashicorp/cap/ldap v0.0.0-20240328153749-fcfe271d0227 |
changelog/29302.txt
Outdated
```release-note:change | ||
cap/ldap: Upgrade cap/ldap to https://github.com/hashicorp/cap/commit/9047b8b3240fd6503b08a05e5a5455793c64100f, which includes a security improvement to ensure that user DN searches with `upndomain` configured will check that exactly one user is returned and error otherwise. | ||
``` |
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.
Would appreciate guidance here:
- Is it alright to link the exact commit, or would it be preferred to mention something along the lines of "latest commit on main"?
- Does this level of detail about the security improvement need to be documented in the changelog in addition to the upgrade guide? Wasn't sure if it was redundant to have it here as well.
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 think for the changelog, we should not reference cap/ldap
but instead auth/ldap
and any anywhere else this may have effect. I think that is the only one though. We want changelogs to describe the effect on the Vault user. So in this case, something like (I believe the effect is on login?):
release-note:change
auth/ldap: An error will now be returned on login if the number of entries returned from the user DN LDAP search is more than one.
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 see, thanks for explaining 🙏
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! Should we add some test coverage to assert this behavior?
Description
This PR updates the
github.com/hashicorp/cap/ldap
dependency to the latest commit, currently hashicorp/cap@9047b8b, to address a low-severity security gap related to LDAP user search withupndomain
. For more details, see the relatedcap
PR: hashicorp/cap#151.Since this introduces a potential breaking change, it should not be backported to earlier Vault versions.
Ticket: VAULT-27421
TODO only if you're a HashiCorp employee
backport/
label that matches the desired release branch. Note that in the CE repo, the latest release branch will look likebackport/x.x.x
, but older release branches will bebackport/ent/x.x.x+ent
.of a public function, even if that change is in a CE file, double check that
applying the patch for this PR to the ENT repo and running tests doesn't
break any tests. Sometimes ENT only tests rely on public functions in CE
files.
in the PR description, commit message, or branch name.
description. Also, make sure the changelog is in this PR, not in your ENT PR.