Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for StringMatcher (0.21 sec)

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

    // (see grpc/xds/internal/client/xds.go securityConfigFromCluster).
    func buildCommonTLSContext(sans []string) *tls.CommonTlsContext {
    	var sanMatch []*matcher.StringMatcher
    	if len(sans) > 0 {
    		sanMatch = util.StringToExactMatch(sans)
    	}
    	return &tls.CommonTlsContext{
    		TlsCertificateCertificateProviderInstance: &tls.CommonTlsContext_CertificateProviderInstance{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 3.7K 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/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)
  9. 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)
  10. guava-tests/test/com/google/common/eventbus/AsyncEventBusTest.java

      protected void setUp() throws Exception {
        super.setUp();
        executor = new FakeExecutor();
        bus = new AsyncEventBus(executor);
      }
    
      public void testBasicDistribution() {
        StringCatcher catcher = new StringCatcher();
        bus.register(catcher);
    
        // We post the event, but our Executor will not deliver it until instructed.
        bus.post(EVENT);
    
        List<String> events = catcher.getEvents();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.3K bytes
    - Viewed (0)
Back to top