mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-06 17:27:08 +00:00
This commit fixes a security vulnerability where the ManifestWork validating webhook was not passing the UserInfo.Extra field when constructing SubjectAccessReview (SAR) requests. This omission could lead to authorization bypass when external authorization policies rely on Extra fields (e.g., OIDC claims, department attributes). The fix adds Extra field conversion logic consistent with the ManagedCluster webhook implementation and includes comprehensive test coverage to verify the Extra field is properly propagated. Fixes #1425 🤖 Assisted by Claude Code Signed-off-by: zhujian <jiazhu@redhat.com> Co-authored-by: zhujian <jiazhu@redhat.com>