- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for StringMatcher (0.19 sec)
-
pilot/pkg/security/authz/matcher/string.go
func StringMatcherRegex(regex string) *matcher.StringMatcher { return &matcher.StringMatcher{ MatchPattern: &matcher.StringMatcher_SafeRegex{ SafeRegex: &matcher.RegexMatcher{ Regex: regex, }, }, } } // StringMatcherPrefix create a string matcher for prefix matching. func StringMatcherPrefix(prefix string, ignoreCase bool) *matcher.StringMatcher { return &matcher.StringMatcher{ IgnoreCase: ignoreCase,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Mar 25 10:39:25 UTC 2024 - 3.5K bytes - Viewed (0) -
pilot/pkg/security/authz/matcher/string_test.go
v string prefix string want *matcher.StringMatcher } func TestStringMatcherWithPrefix(t *testing.T) { testCases := []testCase{ { name: "wildcardAsRequired", v: "*", prefix: "abc", want: StringMatcherRegex(".+"), }, { name: "prefix", v: "-prefix-*", prefix: "abc", want: &matcher.StringMatcher{ MatchPattern: &matcher.StringMatcher_Prefix{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Aug 17 22:42:11 UTC 2023 - 5.2K bytes - Viewed (0) -
pilot/pkg/security/authz/matcher/metadata_test.go
matcher "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3" "github.com/google/go-cmp/cmp" "google.golang.org/protobuf/testing/protocmp" ) func TestMetadataStringMatcher(t *testing.T) { m := &matcher.StringMatcher{ MatchPattern: &matcher.StringMatcher_Exact{ Exact: "exact", }, } actual := MetadataStringMatcher("istio_authn", "key", m) expect := &matcher.MetadataMatcher{ Filter: "istio_authn",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Nov 20 22:15:12 UTC 2023 - 2.8K bytes - Viewed (0) -
pilot/pkg/security/authz/matcher/metadata.go
) // MetadataStringMatcher creates a metadata string matcher for the given filter, key and the // string matcher. func MetadataStringMatcher(filter, key string, m *matcher.StringMatcher) *matcher.MetadataMatcher { return MetadataValueMatcher(filter, key, &matcher.ValueMatcher{ MatchPattern: &matcher.ValueMatcher_StringMatch{ StringMatch: m, }, }) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Mar 25 10:39:25 UTC 2024 - 2.9K bytes - Viewed (0) -
pilot/pkg/security/authz/model/util.go
} return []string{ret}, nil } claims = append(claims, s[begin+1:end]) begin = end + 1 } return claims, nil } func MetadataStringMatcherForJWTClaim(claim string, m *matcherpb.StringMatcher) *matcherpb.MetadataMatcher { return MetadataValueMatcherForJWTClaim(claim, &matcherpb.ValueMatcher{ MatchPattern: &matcherpb.ValueMatcher_StringMatch{ StringMatch: m, }, }) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Mar 25 10:39:25 UTC 2024 - 3.4K bytes - Viewed (0) -
tests/fuzz/pilot_security_fuzzer.go
if err != nil { return 0 } keys = append(keys, key) } value, err := f.GetString() if err != nil { return 0 } _ = matcher.MetadataListMatcher(filter, keys, matcher.StringMatcher(value), false) return 1 } func getKandV(data []byte) (string, string, error) { if len(data) < 10 { return "", "", fmt.Errorf("not enough bytes") } if len(data)%2 != 0 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Nov 20 22:15:12 UTC 2023 - 2.1K bytes - Viewed (0) -
pilot/pkg/networking/core/cluster_waypoint.go
m := &matcher.StringMatcher{} m.MatchPattern = &matcher.StringMatcher_Prefix{ Prefix: spiffe.URIPrefix + push.Mesh.GetTrustDomain() + "/ns/" + proxy.Metadata.Namespace + "/sa/", } return cb.buildConnectOriginate(proxy, push, m) } func (cb *ClusterBuilder) buildConnectOriginate(proxy *model.Proxy, push *model.PushContext, uriSanMatchers ...*matcher.StringMatcher) *cluster.Cluster {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 9K bytes - Viewed (0) -
pilot/pkg/security/authz/model/principal.go
func principalNot(principal *rbacpb.Principal) *rbacpb.Principal { return &rbacpb.Principal{ Identifier: &rbacpb.Principal_NotId{ NotId: principal, }, } } func principalAuthenticated(name *matcher.StringMatcher, useAuthenticated bool) *rbacpb.Principal { if useAuthenticated { return &rbacpb.Principal{ Identifier: &rbacpb.Principal_Authenticated_{ Authenticated: &rbacpb.Principal_Authenticated{ PrincipalName: name,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Nov 17 18:44:57 UTC 2022 - 2.8K bytes - Viewed (0) -
pilot/pkg/security/authz/matcher/header.go
}, } } // PathMatcher creates a path matcher for a path. func PathMatcher(path string) *matcher.PathMatcher { return &matcher.PathMatcher{ Rule: &matcher.PathMatcher_Path{ Path: StringMatcher(path), }, }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Aug 17 22:42:11 UTC 2023 - 3.7K bytes - Viewed (0) -
pilot/pkg/security/authz/model/permission.go
return &rbacpb.Permission{ Rule: &rbacpb.Permission_DestinationPort{ DestinationPort: port, }, } } func permissionRequestedServerName(name *matcher.StringMatcher) *rbacpb.Permission { return &rbacpb.Permission{ Rule: &rbacpb.Permission_RequestedServerName{ RequestedServerName: name, }, } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Apr 20 01:58:53 UTC 2024 - 3K bytes - Viewed (0)