inspector

package
v0.24.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsSecurityViolationError

func IsSecurityViolationError(err error) bool

IsSecurityViolationError asserts validationError.

Types

type Config

type Config struct {
	Logger micrologger.Logger

	AppBlacklist       []string
	CatalogBlacklist   []string
	GroupWhitelist     []string
	NamespaceBlacklist []string
	UserWhitelist      []string
}

type Inspector

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

func New

func New(config Config) (*Inspector, error)

func (*Inspector) Inspect

func (i *Inspector) Inspect(ctx context.Context, app v1alpha1.App, userInfo authv1.UserInfo) error

Inspect check App CR against two things at the moment: - references to blacklisted namespaces in config or userConfig - blacklisted apps from blacklisted catalogs being requested

Jump to

Keyboard shortcuts

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