checker

package
v0.0.0-...-21cfbab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2023 License: Apache-2.0, Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const SPIFFE_ID_PATTERN = "^spiffe://[^/]+/ns/([^/]+)/sa/([^/]+)$"

SPIFFE_ID_PATTERN is a regular expression to match SPIFFE ID URIs, e.g. spiffe://cluster.local/ns/default/sa/foo

Variables

View Source
var INVALID_ARGUMENT = int32(code.Code_INVALID_ARGUMENT)
View Source
var PERMISSION_DENIED = int32(code.Code_PERMISSION_DENIED)
View Source
var UNAVAILABLE = int32(code.Code_UNAVAILABLE)

Functions

func NewRequestCache

func NewRequestCache(store *policystore.PolicyStore, req *authz.CheckRequest) (*requestCache, error)

func NewServer

func NewServer(ctx context.Context, stores <-chan *policystore.PolicyStore) *authServer

NewServer creates a new authServer and returns a pointer to it.

Types

type Action

type Action int

Action is an enumeration of actions a policy rule can take if it is matched.

const (
	ALLOW Action = iota
	DENY
	LOG
	PASS
	NO_MATCH // Indicates policy did not match request. Cannot be assigned to rule.
)

type InvalidDataFromDataPlane

type InvalidDataFromDataPlane struct {
	// contains filtered or unexported fields
}

InvalidDataFromDataPlane is an error is used when we get data from dataplane (Envoy) which is invalid.

func (*InvalidDataFromDataPlane) Error

func (i *InvalidDataFromDataPlane) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL