Documentation ¶
Index ¶
- Variables
- func IsAPINetletClientCert(csr *certificatesv1.CertificateSigningRequest, x509cr *x509.CertificateRequest) bool
- func IsMetalnetletClientCert(csr *certificatesv1.CertificateSigningRequest, x509cr *x509.CertificateRequest) bool
- func ValidateAPINetletClientCSR(req *x509.CertificateRequest, usages sets.Set[certificatesv1.KeyUsage]) error
- func ValidateMetalnetletClientCSR(req *x509.CertificateRequest, usages sets.Set[certificatesv1.KeyUsage]) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( APINetletRecognizer = generic.NewCertificateSigningRequestRecognizer( IsAPINetletClientCert, authv1.ResourceAttributes{ Group: certificatesv1.GroupName, Resource: "certificatesigningrequests", Verb: "create", Subresource: "apinetletclient", }, "Auto approving apinetlet client certificate after SubjectAccessReview.", ) )
View Source
var ( APINetletRequiredUsages = sets.New[certificatesv1.KeyUsage]( certificatesv1.UsageDigitalSignature, certificatesv1.UsageKeyEncipherment, certificatesv1.UsageClientAuth, ) )
View Source
var ( MetalnetletRecognizer = generic.NewCertificateSigningRequestRecognizer( IsMetalnetletClientCert, authv1.ResourceAttributes{ Group: certificatesv1.GroupName, Resource: "certificatesigningrequests", Verb: "create", Subresource: "metalnetletclient", }, "Auto approving metalnetlet client certificate after SubjectAccessReview.", ) )
View Source
var ( MetalnetletRequiredUsages = sets.New[certificatesv1.KeyUsage]( certificatesv1.UsageDigitalSignature, certificatesv1.UsageKeyEncipherment, certificatesv1.UsageClientAuth, ) )
View Source
var Recognizers []generic.CertificateSigningRequestRecognizer
Functions ¶
func IsAPINetletClientCert ¶
func IsAPINetletClientCert(csr *certificatesv1.CertificateSigningRequest, x509cr *x509.CertificateRequest) bool
func IsMetalnetletClientCert ¶
func IsMetalnetletClientCert(csr *certificatesv1.CertificateSigningRequest, x509cr *x509.CertificateRequest) bool
func ValidateAPINetletClientCSR ¶
func ValidateAPINetletClientCSR(req *x509.CertificateRequest, usages sets.Set[certificatesv1.KeyUsage]) error
func ValidateMetalnetletClientCSR ¶
func ValidateMetalnetletClientCSR(req *x509.CertificateRequest, usages sets.Set[certificatesv1.KeyUsage]) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.