Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for StringMatcher (0.59 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. pilot/pkg/networking/core/route/route_test.go

    					Regex: "*",
    				},
    			},
    			Headers: []*envoyroute.HeaderMatcher{
    				{
    					Name: "foo",
    					HeaderMatchSpecifier: &envoyroute.HeaderMatcher_StringMatch{
    						StringMatch: &matcher.StringMatcher{MatchPattern: &matcher.StringMatcher_Exact{Exact: "bar"}},
    					},
    					InvertMatch: false,
    				},
    			},
    		}},
    	}
    
    	wantSecond := []*envoyroute.Route{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 88.1K bytes
    - Viewed (0)
Back to top