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 INTERNAL = rpc.Code_value["INTERNAL"]
View Source
var INVALID_ARGUMENT = rpc.Code_value["INVALID_ARGUMENT"]
View Source
var OK = rpc.Code_value["OK"]
View Source
var PERMISSION_DENIED = rpc.Code_value["PERMISSION_DENIED"]
View Source
var UNAVAILABLE = rpc.Code_value["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.
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
Click to show internal directories.
Click to hide internal directories.