authzfilter

package
v0.0.0-...-b0d25e1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log *logrus.Entry = logging.GetLogger("authzfilter").WithField("pkg", "auth/authz/authzfilter")

Functions

func NewPrincipalFilter

func NewPrincipalFilter(config PrincipalFilterConfig) (auth.Authorizer, error)

Types

type PrincipalFilter

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

func (*PrincipalFilter) Authorize

func (pf *PrincipalFilter) Authorize(actx *auth.AuthContext) (*auth.AuthContext, bool)

func (*PrincipalFilter) Description

func (pf *PrincipalFilter) Description() string

func (*PrincipalFilter) Name

func (pf *PrincipalFilter) Name() string

type PrincipalFilterConfig

type PrincipalFilterConfig struct {
	Name string
	// 1. Filter out principals that do not match this glob
	FilterIncludePrincipalsGlob string
	// 2. Filter out principals that match this glob
	FilterExcludePrincipalsGlob string
	// 3. Fail if no principal matches this glob
	MustIncludePrincipalGlob string
	// 4. Fail if any principal matches this glob
	MustNotIncludePrincipalGlob string
}

Jump to

Keyboard shortcuts

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