Repository navigation
chore(dev): teach the werf-to-delivery-kit skill the sign directive - #469
Merged
Merged
Conversation
A module that signs a file in a shell stage by logging in to Vault breaks once SBOM takes the network away, and the skill had nothing to replace it with, so an agent following it could only stop. Describe when sign replaces that shell, the signature profile it produces and the cases it does not cover, where its stages fall, how to keep the verification and the imports of the signature, what the user has to wire in CI, and how to check the result. Signed-off-by: Radmir Khurum <radmir.khurum@flant.com>
Collaborator
Author
Code Review ReportBase:
Verdict
DoD Criteria
Issues
Risks
Not verified
|
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.
Summary
The
werf-to-delivery-kitskill now knows thesigndirective, so an agent migrating a module to the SBOM flow can move signing a file with a Vault/KMS key out of a shell stage, which loses its network once SBOM is enabled, instead of stopping on it.What
transit/sign, a Vault client inmount:,openssl smime/systemd-keyutilwith a key) tosign:; the inventory step records what each image signs, with which key and format, and who verifies it.sign:applies (detached PKCS#7, SHA-256, RSA, no signed attributes, leaf certificate only), one key and certificate per run, positions, keeping the old verification in a later stage or a separate image, importing<path>.p7swith the file, and removing Vault secrets, mounts and giterminism entries only once nothing else uses them.signFiles*stages fall;before: installsigns before gitArchive and packages.WERF_SIGN_BUILD_FILE_*, the certificate in every job that runs delivery-kit with the config, andreadon the transit key besidesupdateon signing.sign:does not produce (embedded in the file such as Authenticode/pesign, raw signatures, non-RSA keys, signed attributes, embedded chains).sign.