Complete details regarding CSR garbage collection
Signed-off-by: Monis Khan <mok@vmware.com>
This commit is contained in:
@@ -3,6 +3,7 @@ reviewers:
|
|||||||
- liggitt
|
- liggitt
|
||||||
- mikedanese
|
- mikedanese
|
||||||
- munnerz
|
- munnerz
|
||||||
|
- enj
|
||||||
title: Certificate Signing Requests
|
title: Certificate Signing Requests
|
||||||
content_type: concept
|
content_type: concept
|
||||||
weight: 20
|
weight: 20
|
||||||
@@ -56,7 +57,9 @@ state for some duration:
|
|||||||
|
|
||||||
* Approved requests: automatically deleted after 1 hour
|
* Approved requests: automatically deleted after 1 hour
|
||||||
* Denied requests: automatically deleted after 1 hour
|
* Denied requests: automatically deleted after 1 hour
|
||||||
|
* Failed requests: automatically deleted after 1 hour
|
||||||
* Pending requests: automatically deleted after 24 hours
|
* Pending requests: automatically deleted after 24 hours
|
||||||
|
* All requests: automatically deleted after the issued certificate has expired
|
||||||
|
|
||||||
## Signers
|
## Signers
|
||||||
|
|
||||||
@@ -78,7 +81,7 @@ that case, the documentation for the signer should specify the meaning of
|
|||||||
additional certificates; for example, this might be the certificate plus
|
additional certificates; for example, this might be the certificate plus
|
||||||
intermediates to be presented during TLS handshakes.
|
intermediates to be presented during TLS handshakes.
|
||||||
|
|
||||||
The PKCS#10 signing request format doesn't allow to specify a certificate
|
The PKCS#10 signing request format does not allow to specify a certificate
|
||||||
expiration or lifetime. The expiration or lifetime therefore has to be set
|
expiration or lifetime. The expiration or lifetime therefore has to be set
|
||||||
through e.g. an annotation on the CSR object. While it's theoretically
|
through e.g. an annotation on the CSR object. While it's theoretically
|
||||||
possible for a signer to use that expiration date, there is currently no
|
possible for a signer to use that expiration date, there is currently no
|
||||||
@@ -185,8 +188,7 @@ To allow signing a CertificateSigningRequest:
|
|||||||
|
|
||||||
A few steps are required in order to get a normal user to be able to
|
A few steps are required in order to get a normal user to be able to
|
||||||
authenticate and invoke an API. First, this user must have certificate issued
|
authenticate and invoke an API. First, this user must have certificate issued
|
||||||
by the Kubernetes cluster, and then present that Certificate to the API call
|
by the Kubernetes cluster, and then present that certificate to the Kubernetes API.
|
||||||
as the Certificate Header or through the kubectl.
|
|
||||||
|
|
||||||
### Create private key
|
### Create private key
|
||||||
|
|
||||||
@@ -211,8 +213,6 @@ kind: CertificateSigningRequest
|
|||||||
metadata:
|
metadata:
|
||||||
name: myuser
|
name: myuser
|
||||||
spec:
|
spec:
|
||||||
groups:
|
|
||||||
- system:authenticated
|
|
||||||
request: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURSBSRVFVRVNULS0tLS0KTUlJQ1ZqQ0NBVDRDQVFBd0VURVBNQTBHQTFVRUF3d0dZVzVuWld4aE1JSUJJakFOQmdrcWhraUc5dzBCQVFFRgpBQU9DQVE4QU1JSUJDZ0tDQVFFQTByczhJTHRHdTYxakx2dHhWTTJSVlRWMDNHWlJTWWw0dWluVWo4RElaWjBOCnR2MUZtRVFSd3VoaUZsOFEzcWl0Qm0wMUFSMkNJVXBGd2ZzSjZ4MXF3ckJzVkhZbGlBNVhwRVpZM3ExcGswSDQKM3Z3aGJlK1o2MVNrVHF5SVBYUUwrTWM5T1Nsbm0xb0R2N0NtSkZNMUlMRVI3QTVGZnZKOEdFRjJ6dHBoaUlFMwpub1dtdHNZb3JuT2wzc2lHQ2ZGZzR4Zmd4eW8ybmlneFNVekl1bXNnVm9PM2ttT0x1RVF6cXpkakJ3TFJXbWlECklmMXBMWnoyalVnald4UkhCM1gyWnVVV1d1T09PZnpXM01LaE8ybHEvZi9DdS8wYk83c0x0MCt3U2ZMSU91TFcKcW90blZtRmxMMytqTy82WDNDKzBERHk5aUtwbXJjVDBnWGZLemE1dHJRSURBUUFCb0FBd0RRWUpLb1pJaHZjTgpBUUVMQlFBRGdnRUJBR05WdmVIOGR4ZzNvK21VeVRkbmFjVmQ1N24zSkExdnZEU1JWREkyQTZ1eXN3ZFp1L1BVCkkwZXpZWFV0RVNnSk1IRmQycVVNMjNuNVJsSXJ3R0xuUXFISUh5VStWWHhsdnZsRnp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BR05WdmVIOGR4ZzNvK21VeVRkbmFjVmQ1N24zSkExdnZEU1JWREkyQTZ1eXN3ZFp1L1BVCkkwZXpZWFV0RVNnSk1IRmQycVVNMjNuNVJsSXJ3R0xuUXFISUh5VStWWHhsdnZsRnpNOVpEWllSTmU3QlJvYXgKQVlEdUI5STZXT3FYbkFvczFqRmxNUG5NbFpqdU5kSGxpT1BjTU1oNndLaTZzZFhpVStHYTJ2RUVLY01jSVUyRgpvU2djUWdMYTk0aEpacGk3ZnNMdm1OQUxoT045UHdNMGM1dVJVejV4T0dGMUtCbWRSeEgvbUNOS2JKYjFRQm1HCkkwYitEUEdaTktXTU0xMzhIQXdoV0tkNjVoVHdYOWl4V3ZHMkh4TG1WQzg0L1BHT0tWQW9FNkpsYWFHdTlQVmkKdjlOSjVaZlZrcXdCd0hKbzZXdk9xVlA3SVFjZmg3d0drWm89Ci0tLS0tRU5EIENFUlRJRklDQVRFIFJFUVVFU1QtLS0tLQo=
|
||||||
signerName: kubernetes.io/kube-apiserver-client
|
signerName: kubernetes.io/kube-apiserver-client
|
||||||
usages:
|
usages:
|
||||||
|
|||||||
Reference in New Issue
Block a user