apiserverk8s.io/apiserver/pkg/authorization/union Index | Files

package union

import "k8s.io/apiserver/pkg/authorization/union"

Package union implements an authorizer that combines multiple subauthorizer. The union authorizer iterates over each subauthorizer and returns the first decision that is either an Allow decision or a Deny decision. If a subauthorizer returns a NoOpinion, then the union authorizer moves onto the next authorizer or, if the subauthorizer was the last authorizer, returns NoOpinion as the aggregate decision. I.e. union authorizer creates an aggregate decision and supports short-circuit allows and denies from subauthorizers.

Index

Functions

func New

func New(authorizationHandlers ...authorizer.Authorizer) authorizer.Authorizer

New returns an authorizer that authorizes against a chain of authorizer.Authorizer objects

func NewRuleResolvers

func NewRuleResolvers(authorizationHandlers ...authorizer.RuleResolver) authorizer.RuleResolver

NewRuleResolvers returns an authorizer that authorizes against a chain of authorizer.Authorizer objects

Source Files

union.go

Version
v0.27.1
Published
Apr 14, 2023
Platform
js/wasm
Imports
5 packages
Last checked
17 seconds ago

Tools for package owners.