Repository navigation
Improve approval deduplication SEC-11851 - #521
Merged
Merged
Conversation
…e name of the user, and the other types of k8s resources are failing, and the namespace is disregarded.
asilde
approved these changes
Sep 10, 2026
goelozev
approved these changes
Sep 16, 2026
goelozev
left a comment
Member
There was a problem hiding this comment.
Looks good, just a little suggestion on the length of code comments!
| // attach DirectoryRoleBinding, where the kind decides how the name is | ||
| // interpreted - a GoogleGroup subject, for example, is expanded into that | ||
| // group's members - so a non-User kind would grant attach access to | ||
| // identities that never authenticated. |
| // namespace - so it must not be usable to make the same approver count as | ||
| // more than one authoriser. Reject the update outright if this user | ||
| // already appears in the existing authorisations, whatever the other | ||
| // fields of those entries say. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improve approval so that comparisons are done based only on the user's name; other types of k8s resources are failing, and the namespace is being ignored.
Follow-up from PR #520