kubernetesk8s.io/kubernetes/plugin/pkg/admission/certificates Index | Files | Directories

package certificates

import "k8s.io/kubernetes/plugin/pkg/admission/certificates"

Index

Functions

func IsAuthorizedForSignerName

func IsAuthorizedForSignerName(ctx context.Context, authz authorizer.Authorizer, info user.Info, verb, signerName string) bool

IsAuthorizedForSignerName returns true if 'info' is authorized to perform the given 'verb' on the synthetic 'signers' resource with the given signerName. If the user does not have permission to perform the 'verb' on the given signerName, it will also perform an authorization check against {domain portion}/*, for example `kubernetes.io/*`. This allows an entity to be granted permission to 'verb' on all signerNames with a given 'domain portion'.

Source Files

util.go

Directories

PathSynopsis
plugin/pkg/admission/certificates/approval
plugin/pkg/admission/certificates/ctbattest
plugin/pkg/admission/certificates/signing
plugin/pkg/admission/certificates/subjectrestriction
Version
v1.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
5 packages
Last checked
3 hours ago

Tools for package owners.