-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add section on supporting intermediate certificates #1615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,6 +28,7 @@ status: implementable | |
| - [Sequence of an Issuance](#sequence-of-an-issuance) | ||
| - [Signers](#signers) | ||
| - [Limiting approval and signer powers for certain signers.](#limiting-approval-and-signer-powers-for-certain-signers) | ||
| - [Supporting intermediate certificates.](#supporting-intermediate-certificates) | ||
| - [CertificateSigningRequest API Definition](#certificatesigningrequest-api-definition) | ||
| - [Manual CSR Approval With Kubectl](#manual-csr-approval-with-kubectl) | ||
| - [Automatic CSR Approval Implementations](#automatic-csr-approval-implementations) | ||
|
|
@@ -235,6 +236,20 @@ Cluster admins can either: | |
| 2. grant signer-specific approval permissions using the bootstrap roles starting in 1.18 | ||
| 3. disable the approval-authorizing admission plugin in 1.18 (if they don't care about partitioning approver rights) | ||
|
|
||
| #### Supporting intermediate certificates. | ||
| It's important that the Certificates API fully supports using an intermediate certificate as the signer, | ||
| including the case where the signer is itself signed by an intermediate. As a result, the user must be able | ||
| to specify that the signing certificates are provided to the client, in which case their PEM values would | ||
| be appended to the Certificate in the CertificateSigningRequestStatus. Conforming clients will parse the | ||
| full chain of certificates provided by the apiserver and present them all for new TLS handshakes. | ||
|
|
||
| Firstly, we will add a new bool flag to the controller, `cluster-signing-include-signers`, which requires | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this a boolean field in the CSR
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The latter, I can clarify |
||
| that the signing certificate is always appended in this way. Currently the controller only allows a | ||
| single signing cert in `cluster-signing-cert-file`, so this approach would only work in the case where | ||
| the signing certificate is a child of the root CA, in which case it is the only certificate that needs | ||
| to be provided to the client. To support further nested signing certificates, we additionally need to | ||
| relax the contraint of the cert file parameter to accept multiple signers in a chain. The additional | ||
| certificates would only be used if the include signers option is set; they are not needed in signing. | ||
|
|
||
| ### CertificateSigningRequest API Definition | ||
|
|
||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend unambiguously specify the order in which intermediate certs are added into CertificateSigningRequest's
statusfield or stating that the order is arbitrary / random.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, we could say it's the order given in the file in the controller, but I'm tempted to not make any guarantees here. I can update to say that it's arbitrary