Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for BuildHTTP (0.17 sec)

  1. pilot/pkg/networking/plugin/authz/authorization.go

    	return b.tcpFilters
    }
    
    func (b *Builder) BuildHTTP(class networking.ListenerClass) []*hcm.HttpFilter {
    	if b == nil || b.builder == nil {
    		return nil
    	}
    	if class == networking.ListenerClassSidecarOutbound {
    		// Only applies to inbound and gateways
    		return nil
    	}
    	if b.httpBuilt {
    		return b.httpFilters
    	}
    	b.httpBuilt = true
    	b.httpFilters = b.builder.BuildHTTP()
    
    	return b.httpFilters
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. pilot/pkg/security/authz/builder/fuzz_test.go

    		option := fuzz.Struct[Option](fg)
    		b := New(bundle, push, policies, option)
    		if b == nil {
    			fg.T().Skip()
    			return // To help linter
    		}
    		b.BuildHTTP()
    	})
    }
    
    func FuzzBuildTCP(f *testing.F) {
    	fuzz.Fuzz(f, func(fg fuzz.Helper) {
    		bundle := fuzz.Struct[trustdomain.Bundle](fg)
    		push := fuzz.Struct[*model.PushContext](fg, validatePush)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. pilot/pkg/security/authz/builder/builder.go

    		allowPolicies:     policies.Allow,
    		auditPolicies:     policies.Audit,
    		trustDomainBundle: trustDomainBundle,
    		option:            option,
    	}
    }
    
    // BuildHTTP returns the HTTP filters built from the authorization policy.
    func (b Builder) BuildHTTP() []*hcm.HttpFilter {
    	b.logger = &AuthzLogger{}
    	defer b.logger.Report()
    	if b.option.IsCustomBuilder {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 20 22:15:12 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  4. pkg/fuzz/README.md

        // In other tests, explicit assertions may be helpful.
        policies := push.AuthzPolicies.ListAuthorizationPolicies(selectionOpts)
        New(bundle, push, policies, option).BuildHTTP()
      })
    }
    ```
    
    ## Running tests
    
    Fuzz tests can be run using standard Go tooling:
    
    ```shell
    go test ./path/to/pkg -v -run=^$ -fuzz=Fuzz
    ```
    
    ## CI testing
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Oct 05 21:25:25 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  5. pilot/pkg/networking/plugin/authn/authentication.go

    		resp = append(resp, b.applier.InboundMTLSSettings(port, b.proxy, b.trustDomains, authn.NoOverride))
    	}
    	return resp
    }
    
    func (b *Builder) BuildHTTP(class networking.ListenerClass) []*hcm.HttpFilter {
    	if b == nil {
    		return nil
    	}
    	if class == networking.ListenerClassSidecarOutbound {
    		// Only applies to inbound and gateways
    		return nil
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/listener_builder.go

    		filters = append(filters, lb.authzCustomBuilder.BuildHTTP(httpOpts.class)...)
    		filters = extension.PopAppendHTTP(filters, wasm, extensions.PluginPhase_AUTHN)
    		filters = append(filters, lb.authnBuilder.BuildHTTP(httpOpts.class)...)
    		filters = extension.PopAppendHTTP(filters, wasm, extensions.PluginPhase_AUTHZ)
    		filters = append(filters, lb.authzBuilder.BuildHTTP(httpOpts.class)...)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 04:44:06 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  7. pilot/pkg/networking/core/listener_waypoint.go

    	pre = append(pre, authzCustomBuilder.BuildHTTP(cls)...)
    	pre = extension.PopAppendHTTP(pre, wasm, extensions.PluginPhase_AUTHN)
    	pre = append(pre, authnBuilder.BuildHTTP(cls)...)
    	pre = extension.PopAppendHTTP(pre, wasm, extensions.PluginPhase_AUTHZ)
    	pre = append(pre, authzBuilder.BuildHTTP(cls)...)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  8. pilot/pkg/security/authz/builder/builder_test.go

    				policies := push.AuthzPolicies.ListAuthorizationPolicies(selectionOpts)
    				g := New(tc.tdBundle, push, policies, option)
    				if g == nil {
    					t.Fatalf("failed to create generator")
    				}
    				got := g.BuildHTTP()
    				wants := tc.want
    				if extended {
    					for i := range wants {
    						wants[i] = "extended-" + wants[i]
    					}
    				}
    				verify(t, convertHTTP(got), baseDir, tc.want, false /* forTCP */)
    			})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 13.8K bytes
    - Viewed (0)
Back to top