Conversation
Member
|
This looks like too big of a hammer to support the FIPS-specific requirement to me. We depend on the current configuration, and it has been successfully used on many platforms so far. Ripping the RSA signer out is thus quite risky without extensive multi-platform testing. My TODOs that were removed in this PR hint at the proper solution: it needs a separate signer certificate and key. Going to close this with additional remarks in #2800. |
Author
|
Hi @hslatman , Understood, and I agree with your concerns. Let me put together another PR that preserves the current backward-compatible behavior by default, while adding configuration to support separate signing and decryption key pairs. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Name of feature:
Not a new feature — removes redundant signer creation from the SCEP provisioner.
Pain or issue this feature alleviates:
Previously,
SCEP.Init()built both acrypto.Decrypterand a separatecrypto.Signerfrom the configuredDecrypterKeyPEM/DecrypterKeyURI(and setsignerCertificateto the decrypter certificate). This signer/certificate pair was never actually needed in the normal path, since authority.go'sselectSigner()already falls back to the CA's own default signer (a.signerCertificate,a.defaultSigner) whenever a provisioner doesn't supply one viaGetSigner(). Building an extra signer from the decrypter key on everyInit()was wasted work (an unnecessary KMS/key operation) and added confusing surface area suggesting SCEP responses were signed with the decrypter key rather than the CA's intermediate.Why is this important to the project (if not answered above):
Reduces unnecessary key-manager calls during provisioner initialization and simplifies the SCEP provisioner's responsibility to just decryption, making the signing path unambiguous (CA's default signer is always used for signing SCEP responses unless a future distinct-signer option is added).
Is there documentation on how to use this feature? If so, where?
N/A — no user-facing behavior or configuration changes; the signer/signerCertificate/GetSigner() still exist and work as before (returning nil, nil when unset, in which case authority.go falls back to the default signer).
In what environments or workflows is this feature supported?
All environments using the SCEP provisioner with decrypterKeyPEM or decrypterKey (URI) configured — no change in supported platforms/workflows.
In what environments or workflows is this feature explicitly NOT supported (if any)?
Supporting links/other PRs/issues:
💔Thank you!