Skip to content

Cherry-pick #9111 into v1.81.x#9121

Merged
easwars merged 1 commit into
grpc:v1.81.xfrom
easwars:cherrypick_9111
May 12, 2026
Merged

Cherry-pick #9111 into v1.81.x#9121
easwars merged 1 commit into
grpc:v1.81.xfrom
easwars:cherrypick_9111

Conversation

@easwars

@easwars easwars commented May 12, 2026

Copy link
Copy Markdown
Contributor

RELEASE NOTES:

  • xds/rbac: Fix Authenticated matcher to use the first non-empty identity source (URI SAN, DNS SAN, and Subject DN) in the order specified in gRFC A41.

…dMatcher (grpc#9111)

This PR fixes a bug in the xDS RBAC authenticatedMatcher where it
incorrectly falls through URI/DNS SANs to the Subject DN. According to
gRFC A41 and Envoy's specification, only the first non-empty identity
source must be consulted. This bug allows an authorization bypass in
certain scenarios. A regression test is included.

RELEASE NOTES:
- xds/rbac: Fix `Authenticated` matcher to use the first non-empty
identity source (URI SAN, DNS SAN, and Subject DN) in the order
specified in gRFC A41.
@codecov

codecov Bot commented May 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.06%. Comparing base (b33c29e) to head (784a460).

Additional details and impacted files
@@             Coverage Diff             @@
##           v1.81.x    #9121      +/-   ##
===========================================
+ Coverage    82.33%   83.06%   +0.72%     
===========================================
  Files          413      413              
  Lines        33507    33454      -53     
===========================================
+ Hits         27587    27787     +200     
+ Misses        4275     4239      -36     
+ Partials      1645     1428     -217     
Files with missing lines Coverage Δ
internal/xds/rbac/matchers.go 77.57% <100.00%> (+1.85%) ⬆️

... and 33 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@easwars easwars merged commit 6ccbeeb into grpc:v1.81.x May 12, 2026
13 of 14 checks passed
@easwars easwars deleted the cherrypick_9111 branch May 12, 2026 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants