allowed

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Allowed

type Allowed struct{}

Allowed is a base approver-policy Approver that is responsible for ensuring incoming requests may only request all or some of the X.509 attributes that are allowed by the policy. Requests which do not request all of the attributes which they are allowed to in the policy are permitted. It is expected that allowed must _always_ be registered for all approver-policy builds.

func (Allowed) EnqueueChan added in v0.2.0

func (a Allowed) EnqueueChan() <-chan string

Allowed never needs to manually enqueue policies.

func (Allowed) Evaluate

Evaluate evaluates whether the given CertificateRequest conforms to the allowed attributes defined in the policy. The request _must_ conform to _all_ allowed attributes in the policy to be permitted by the passed policy. If the request is denied by the allowed attributes an explanation is returned. An error signals that the policy couldn't be evaluated to completion.

func (Allowed) Name

func (a Allowed) Name() string

Name of Approver is "allowed"

func (Allowed) Prepare

func (a Allowed) Prepare(_ context.Context, _ logr.Logger, _ manager.Manager) error

Prepare is a no-op, Allowed doesn't need to prepare anything.

func (Allowed) Ready

Ready always returns ready, Allowed doesn't have any dependencies to block readiness.

func (Allowed) RegisterFlags

func (a Allowed) RegisterFlags(_ *pflag.FlagSet)

RegisterFlags is a no-op, Allowed doesn't need any flags.

func (Allowed) Validate

Validate validates that the processed CertificateRequestPolicy has valid allowed fields defined and there are no parsing errors in the values.

Jump to

Keyboard shortcuts

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