- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for StringMatcher (0.22 sec)
-
pilot/pkg/networking/core/route/route_internal_test.go
want: authz.MetadataMatcherForJWTClaims([]string{"key1"}, authzmatcher.StringMatcher("exact"), false), }, { name: "@request.auth.claims.key1.KEY2", in: &networking.StringMatch{MatchType: &networking.StringMatch_Exact{Exact: "exact"}}, want: authz.MetadataMatcherForJWTClaims([]string{"key1", "KEY2"}, authzmatcher.StringMatcher("exact"), false), }, { name: "@request.auth.claims.key1-key2",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat May 11 02:47:57 UTC 2024 - 18.2K bytes - Viewed (0) -
pilot/pkg/security/authz/model/generator.go
if strings.HasPrefix(value, "[") && strings.HasSuffix(value, "]") { m := matcher.MetadataListMatcher(parts[0], parts[1:], matcher.StringMatcher(strings.Trim(value, "[]")), false) return permissionMetadata(m), nil } m := matcher.MetadataStringMatcher(parts[0], parts[1], matcher.StringMatcher(value)) return permissionMetadata(m), nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 03 18:02:42 UTC 2024 - 14.1K bytes - Viewed (0) -
pilot/pkg/security/authz/model/model_test.go
Ids: []*rbacpb.Principal{ { Identifier: &rbacpb.Principal_Authenticated_{ Authenticated: &rbacpb.Principal_Authenticated{ PrincipalName: &matcherv3.StringMatcher{ MatchPattern: &matcherv3.StringMatcher_Exact{ Exact: "spiffe://value", }, }, }, }, }, }, }, },
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Nov 20 22:15:12 UTC 2023 - 10K bytes - Viewed (0) -
pilot/pkg/networking/util/util.go
} func StringToExactMatch(in []string) []*matcher.StringMatcher { return pm.StringToExactMatch(in) } func StringToPrefixMatch(in []string) []*matcher.StringMatcher { if len(in) == 0 { return nil } res := make([]*matcher.StringMatcher, 0, len(in)) for _, s := range in { res = append(res, &matcher.StringMatcher{ MatchPattern: &matcher.StringMatcher_Prefix{Prefix: s}, }) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 01:56:28 UTC 2024 - 28.5K bytes - Viewed (0) -
pilot/pkg/security/authz/builder/extauthz.go
} func generateHeaders(headers []string) *envoy_type_matcher_v3.ListStringMatcher { if len(headers) == 0 { return nil } var patterns []*envoy_type_matcher_v3.StringMatcher for _, header := range headers { pattern := &envoy_type_matcher_v3.StringMatcher{ IgnoreCase: true, } if strings.HasPrefix(header, "*") { pattern.MatchPattern = &envoy_type_matcher_v3.StringMatcher_Suffix{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 12.7K bytes - Viewed (0) -
pkg/model/proxy.go
var ALPNInMeshH2 = []string{"istio", "h2"} func StringToExactMatch(in []string) []*matcher.StringMatcher { if len(in) == 0 { return nil } res := make([]*matcher.StringMatcher, 0, len(in)) for _, s := range in { res = append(res, &matcher.StringMatcher{ MatchPattern: &matcher.StringMatcher_Exact{Exact: s}, }) } return res } const (
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 25 17:18:17 UTC 2024 - 18.7K bytes - Viewed (0) -
pilot/pkg/security/model/authentication_test.go
CombinedValidationContext: &auth.CommonTlsContext_CombinedCertificateValidationContext{ DefaultValidationContext: &auth.CertificateValidationContext{MatchSubjectAltNames: []*matcher.StringMatcher{ {MatchPattern: &matcher.StringMatcher_Prefix{Prefix: spiffe.URIPrefix + "alias-1.domain" + "/"}}, {MatchPattern: &matcher.StringMatcher_Prefix{Prefix: spiffe.URIPrefix + "some-other-alias-1.domain" + "/"}},
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Feb 20 22:39:21 UTC 2024 - 18.9K bytes - Viewed (0)