You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c482c53
Browse filesBrowse the repository at this point in the historyBrowse files
## Motivation
Ref: #2754
For gRFC A74 XdsDependencyManager, to resolve the channel's virtual
host, we'll need to run string matching per Envoy `StringMatcher` spec.
## Solution
To reduce the size of the upcoming A74 PR, I'm sending this
`StringMatcher` PR first. The implementation mostly follows the design
we used in `tonic-xds`, with these highlights:
1. Since the same string matching logic is shared between the virtual
host selection and A29 SAN matching for mTLS, we extracted a common
`StringMatcher` validated resource type and a pure `matcher` module.
2. Used the Rust idiomatic "new type" pattern for `DomainMatchScore` and
`SafeRegex`: the former encapsulate the match ordering semantics, and
the latter to reject empty regex pattern and conform to the "only match
the entire input" Envoy spec.
0 commit comments