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 }
Click to show internal directories.
Click to hide internal directories.