Documentation
¶
Overview ¶
Package podidentity requests certificates from substrate's podidentity signer for processes that do not run in a pod.
Index ¶
Constants ¶
const SignerName = "podidentity.podcert.ate.dev/identity"
SignerName is the podidentity signer, which issues the SPIFFE certificates the ingress router verifies.
Variables ¶
This section is empty.
Functions ¶
func RequestCertificate ¶
func RequestCertificate(ctx context.Context, clientset kubernetes.Interface, requester, namespace, serviceAccount string, timeout time.Duration) (tls.Certificate, error)
RequestCertificate creates a PodCertificateRequest for serviceAccount in namespace, waits for the podidentity signer to issue it, and deletes it again. The key never leaves this process.
The pod, ServiceAccount and node the request names do not exist: kube-apiserver only checks them for requests a kubelet creates, and the signer takes the identity from the request. requester names the node and prefixes the request's name, so the request shows who made it.
Types ¶
This section is empty.