validation

package
v0.33.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 24 Imported by: 5

Documentation

Overview

Package validation validates EncryptionConfiguration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompileAndValidateJWTAuthenticator

func CompileAndValidateJWTAuthenticator(compiler authenticationcel.Compiler, authenticator api.JWTAuthenticator, disallowedIssuers []string) (authenticationcel.CELMapper, field.ErrorList)

CompileAndValidateJWTAuthenticator validates a given JWTAuthenticator and returns a CELMapper with the compiled CEL expressions for claim mappings and validation rules. This is exported for use in oidc package.

func ValidateAndCompileMatchConditions

func ValidateAndCompileMatchConditions(compiler authorizationcel.Compiler, matchConditions []api.WebhookMatchCondition) (*authorizationcel.CELMatcher, field.ErrorList)

ValidateAndCompileMatchConditions validates a given webhook's matchConditions. This is exported for use in authz package.

func ValidateAuthenticationConfiguration

func ValidateAuthenticationConfiguration(compiler authenticationcel.Compiler, c *api.AuthenticationConfiguration, disallowedIssuers []string) field.ErrorList

ValidateAuthenticationConfiguration validates a given AuthenticationConfiguration.

func ValidateAuthorizationConfiguration

func ValidateAuthorizationConfiguration(compiler authorizationcel.Compiler, fldPath *field.Path, c *api.AuthorizationConfiguration, knownTypes sets.Set[string], repeatableTypes sets.Set[string]) field.ErrorList

ValidateAuthorizationConfiguration validates a given AuthorizationConfiguration.

func ValidateEncryptionConfiguration added in v0.30.0

func ValidateEncryptionConfiguration(c *apiserver.EncryptionConfiguration, reload bool) field.ErrorList

ValidateEncryptionConfiguration validates a v1.EncryptionConfiguration.

func ValidateWebhookConfiguration

func ValidateWebhookConfiguration(compiler authorizationcel.Compiler, fldPath *field.Path, c *api.WebhookConfiguration) field.ErrorList

Types

This section is empty.

Jump to

Keyboard shortcuts

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