Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for NotHosts (0.21 sec)

  1. pilot/pkg/security/authz/builder/testdata/http/allow-full-rule-in.yaml

                paths: ["/exact", "/prefix/*", "*/suffix", "*", "/path/template/{*}", "/{**}/path/template"]
                notMethods: ["not-method", "not-method-prefix-*", "*-not-suffix-method", "*"]
                notHosts: ["not-exact.com", "*.not-suffix.com", "not-prefix.*", "*"]
                notPorts: ["8000", "9000"]
                notPaths: ["/not-exact", "/not-prefix/*", "*/not-suffix", "*", "/not-path/template/{*}", "/{**}/not-path/template"]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 20 01:58:53 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/kube/controller/ambient/authorization.go

    func handleRule(action security.Action, rule *v1beta1.Rule) []*security.Rules {
    	toMatches := []*security.Match{}
    	for _, to := range rule.To {
    		op := to.Operation
    		if action == security.Action_ALLOW && anyNonEmpty(op.Hosts, op.NotHosts, op.Methods, op.NotMethods, op.Paths, op.NotPaths) {
    			// L7 policies never match for ALLOW
    			// For DENY they will always match, so it is more restrictive
    			return nil
    		}
    		match := &security.Match{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 15 16:23:36 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  3. pkg/config/validation/validation.go

    					errs = appendErrors(errs, security.CheckEmptyValues("NotPaths", op.NotPaths))
    					errs = appendErrors(errs, security.CheckEmptyValues("NotHosts", op.NotHosts))
    					errs = appendErrors(errs, security.CheckValidPathTemplate("Paths", op.Paths))
    					errs = appendErrors(errs, security.CheckValidPathTemplate("NotPaths", op.NotPaths))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
  4. pkg/config/validation/validation_test.go

    							},
    						},
    					},
    				},
    			},
    			valid: false,
    		},
    		{
    			name: "NotHosts-empty",
    			in: &security_beta.AuthorizationPolicy{
    				Rules: []*security_beta.Rule{
    					{
    						To: []*security_beta.Rule_To{
    							{
    								Operation: &security_beta.Operation{
    									NotHosts: []string{"host", ""},
    								},
    							},
    						},
    					},
    				},
    			},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 03:11:45 UTC 2024
    - 196K bytes
    - Viewed (0)
  5. manifests/charts/istiod-remote/templates/crd-all.gen.yaml

                                    description: Optional.
                                    items:
                                      type: string
                                    type: array
                                  notHosts:
                                    description: Optional.
                                    items:
                                      type: string
                                    type: array
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:42 UTC 2024
    - 671.7K bytes
    - Viewed (0)
  6. manifests/charts/base/crds/crd-all.gen.yaml

                                    description: Optional.
                                    items:
                                      type: string
                                    type: array
                                  notHosts:
                                    description: Optional.
                                    items:
                                      type: string
                                    type: array
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:42 UTC 2024
    - 671.6K bytes
    - Viewed (0)
  7. pilot/pkg/model/push_context_test.go

    			rules := ps.VirtualServicesForGateway(tt.proxyNs, tt.gateway)
    			gotHosts := make([]string, 0)
    			for _, r := range rules {
    				vs := r.Spec.(*networking.VirtualService)
    				gotHosts = append(gotHosts, vs.Hosts...)
    			}
    			if !reflect.DeepEqual(gotHosts, tt.wantHosts) {
    				t.Errorf("want %+v, got %+v", tt.wantHosts, gotHosts)
    			}
    		})
    	}
    }
    
    func TestInitVirtualService(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 95.3K bytes
    - Viewed (0)
  8. pilot/pkg/networking/core/sidecar_simulation_test.go

    						t.Fatalf("route %q not found, have %v", tt.routeName, xdstest.MapKeys(r))
    					}
    					gotHosts := xdstest.ExtractVirtualHosts(vh)
    					for wk, wv := range exp {
    						got := gotHosts[wk]
    						if !reflect.DeepEqual(wv, got) {
    							t.Errorf("%q: wanted %v, got %v (had %v)", wk, wv, got, xdstest.MapKeys(gotHosts))
    						}
    					}
    				})
    			}
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 84.7K bytes
    - Viewed (0)
Back to top