Documentation ¶
Index ¶
Constants ¶
View Source
const ( XExtAuthz = "X-Ext-Authz" XExtAuthzAllow = "allow" XExtAuthzCheckReceived = "X-Ext-Authz-Check-Received" XExtAuthzAdditionalHeaderOverride = "X-Ext-Authz-Additional-Header-Override" GRPCAdditionalHeaderOverrideValue = "grpc-additional-header-override-value" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Provider ¶
type Provider interface { Name() string // API used by this provider. API() API // IsProtocolSupported returns true if the given request protocol is supported by this provider. IsProtocolSupported(protocol.Instance) bool // IsTargetSupported returns true if the given target is supported by this provider. IsTargetSupported(target echo.Target) bool // MatchSupportedTargets returns a Matcher for filtering unsupported targets. MatchSupportedTargets() match.Matcher // Check returns an echo.Checker for validating response based on the request information. Check(opts echo.CallOptions, expectAllowed bool) echo.Checker }
Provider for authz requests.
type Server ¶
type Server interface { Namespace() namespace.Instance // Providers returns the list of Provider instances. Providers() []Provider }
Server for custom authz.
func NewLocal ¶
NewLocal does not deploy a new server, but instead configures Istio to allow calls to a local authz server running as a sidecar to the echo app.
func NewLocalOrFail ¶
func NewLocalOrFail(t framework.TestContext, ns namespace.Instance) Server
NewLocalOrFail calls NewLocal and fails if an error occurs.
Click to show internal directories.
Click to hide internal directories.