rules

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserAuthzClusterRolePath = "templates/user-authz-cluster-roles.yaml"
	RootRBACForUsPath        = "templates/rbac-for-us.yaml"
	RootRBACToUsPath         = "templates/rbac-to-us.yaml"
	RBACv2Path               = "templates/rbac"
)
View Source
const (
	BindingSubjectRuleName = "binding-subject"
)
View Source
const (
	PlacementRuleName = "placement"
)
View Source
const (
	UzerAuthZRuleName = "uzer-authz"
)
View Source
const (
	WildcardsRuleName = "wildcards"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BindingSubjectRule

type BindingSubjectRule struct {
	pkg.RuleMeta
}

func NewBindingSubjectRule

func NewBindingSubjectRule() *BindingSubjectRule

func (*BindingSubjectRule) ObjectBindingSubjectServiceAccountCheck

func (r *BindingSubjectRule) ObjectBindingSubjectServiceAccountCheck(m *module.Module, errorList *errors.LintRuleErrorsList)

type PlacementRule

type PlacementRule struct {
	pkg.RuleMeta
	pkg.KindRule
}

func NewPlacementRule

func NewPlacementRule(excludeRules []pkg.KindRuleExclude) *PlacementRule

func (*PlacementRule) ObjectRBACPlacement

func (r *PlacementRule) ObjectRBACPlacement(m *module.Module, errorList *errors.LintRuleErrorsList)

type UzerAuthZRule

type UzerAuthZRule struct {
	pkg.RuleMeta
}

func NewUzerAuthZRule

func NewUzerAuthZRule() *UzerAuthZRule

func (*UzerAuthZRule) ObjectUserAuthzClusterRolePath

func (*UzerAuthZRule) ObjectUserAuthzClusterRolePath(m *module.Module, errorList *errors.LintRuleErrorsList)

objectUserAuthzClusterRolePath validates that files for user-authz contains only cluster roles. Also, it validates that role names equals to d8:user-authz:<ChartName>:<AccessLevel>

type WildcardsRule

type WildcardsRule struct {
	pkg.RuleMeta
	pkg.KindRule
}

func NewWildcardsRule

func NewWildcardsRule(excludeRules []pkg.KindRuleExclude) *WildcardsRule

func (*WildcardsRule) ObjectRolesWildcard

func (r *WildcardsRule) ObjectRolesWildcard(m *module.Module, errorList *errors.LintRuleErrorsList)

objectRolesWildcard is a linter for checking the presence of a wildcard in a Role and ClusterRole

Jump to

Keyboard shortcuts

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