import "istio.io/istio/pilot/pkg/security/authz/builder"
builder.go extauthz.go logger.go
type AuthzLogger struct {
// contains filtered or unexported fields
}
func (al *AuthzLogger) AppendDebugf(format string, args ...interface{})
func (al *AuthzLogger) AppendError(err error)
func (al *AuthzLogger) Report(in *plugin.InputParams)
type Builder struct {
// contains filtered or unexported fields
}
Builder builds Istio authorization policy to Envoy filters.
func New(trustDomainBundle trustdomain.Bundle, in *plugin.InputParams, option Option) *Builder
New returns a new builder for the given workload with the authorization policy. Returns nil if none of the authorization policies are enabled for the workload.
func (b Builder) BuildHTTP() []*httppb.HttpFilter
BuildHTTP returns the HTTP filters built from the authorization policy.
BuildTCP returns the TCP filters built from the authorization policy.
type Option struct { IsCustomBuilder bool Logger *AuthzLogger }
General setting to control behavior
Package builder imports 28 packages (graph) and is imported by 2 packages. Updated 2021-01-16. Refresh now. Tools for package owners.