consul/agent/xds/testdata/rbac
Derek Menteer 3e8ec8d18e
Fix SAN matching on terminating gateways (#20417)
Fixes issue: hashicorp/consul#20360

A regression was introduced in hashicorp/consul#19954 where the SAN validation
matching was reduced from 4 potential types down to just the URI.

Terminating gateways will need to match on many fields depending on user
configuration, since they make egress calls outside of the cluster. Having more
than one matcher behaves like an OR operation, where any match is sufficient to
pass the certificate validation. To maintain backwards compatibility with the
old untyped `match_subject_alt_names` Envoy behavior, we should match on all 4
enum types.

https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/transport_sockets/tls/v3/common.proto#enum-extensions-transport-sockets-tls-v3-subjectaltnamematcher-santype
2024-01-31 12:17:45 -06:00
..
default-allow-deny-all-and-path-allow--httpfilter.golden
default-allow-deny-all-and-path-allow.golden
default-allow-deny-all-and-path-deny--httpfilter.golden
default-allow-deny-all-and-path-deny.golden
default-allow-kitchen-sink--httpfilter.golden
default-allow-kitchen-sink.golden
default-allow-one-deny--httpfilter.golden
default-allow-one-deny.golden
default-allow-path-allow--httpfilter.golden
default-allow-path-allow.golden
default-allow-path-deny--httpfilter.golden
default-allow-path-deny.golden
default-allow-service-wildcard-deny--httpfilter.golden
default-allow-service-wildcard-deny.golden
default-allow-single-intention-with-kitchen-sink-perms--httpfilter.golden
default-allow-single-intention-with-kitchen-sink-perms.golden
default-allow-two-path-deny-and-path-allow--httpfilter.golden
default-allow-two-path-deny-and-path-allow.golden
default-deny-allow-deny--httpfilter.golden
default-deny-allow-deny.golden
default-deny-deny-all-and-path-allow--httpfilter.golden
default-deny-deny-all-and-path-allow.golden
default-deny-deny-all-and-path-deny--httpfilter.golden
default-deny-deny-all-and-path-deny.golden
default-deny-kitchen-sink--httpfilter.golden
default-deny-kitchen-sink.golden
default-deny-mixed-precedence--httpfilter.golden
default-deny-mixed-precedence.golden
default-deny-one-allow--httpfilter.golden
default-deny-one-allow.golden
default-deny-path-allow--httpfilter.golden
default-deny-path-allow.golden
default-deny-path-deny--httpfilter.golden
default-deny-path-deny.golden
default-deny-peered-kitchen-sink--httpfilter.golden
default-deny-peered-kitchen-sink.golden
default-deny-service-wildcard-allow--httpfilter.golden
default-deny-service-wildcard-allow.golden
default-deny-single-intention-with-kitchen-sink-perms--httpfilter.golden
default-deny-single-intention-with-kitchen-sink-perms.golden
default-deny-two-path-deny-and-path-allow--httpfilter.golden
default-deny-two-path-deny-and-path-allow.golden
empty-top-level-jwt-with-one-permission--httpfilter.golden
empty-top-level-jwt-with-one-permission.golden
top-level-jwt-no-permissions--httpfilter.golden
top-level-jwt-no-permissions.golden
top-level-jwt-with-multiple-permissions--httpfilter.golden
top-level-jwt-with-multiple-permissions.golden
top-level-jwt-with-one-permission--httpfilter.golden
top-level-jwt-with-one-permission.golden
v2-default-allow--httpfilter.golden
v2-default-allow.golden
v2-default-deny--httpfilter.golden
v2-default-deny.golden
v2-ignore-empty-permissions--httpfilter.golden
v2-ignore-empty-permissions.golden
v2-kitchen-sink--httpfilter.golden
v2-kitchen-sink.golden