checker

package
v0.0.0-...-b1d6b4d Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2018 License: Apache-2.0 Imports: 14 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 OK = code.Code_value["OK"]
View Source
var PERMISSION_DENIED = code.Code_value["PERMISSION_DENIED"]

Functions

func NewRequestCache

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

func NewServer

func NewServer(store *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.
)

Jump to

Keyboard shortcuts

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