-
Notifications
You must be signed in to change notification settings - Fork 566
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
Add TSA certificate related flags and fields for cosign attest #4079
Conversation
Add the following command-line flags for `cosign attest`: * timestamp-client-cacert * timestamp-client-cert * timestamp-client-key * timestamp-server-name to enable the mTLS connections to the custom TSA server using non-public CA roots. Also add the supporting fields in the AttestOptions struct. All the added fields are optional with empty defaults - not providing them should not make any difference for those who do not need them. The patch is authored by Aditya Mahendrakar (@maditya). Signed-off-by: Dmitry Savintsev <dsavints@gmail.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4079 +/- ##
==========================================
- Coverage 40.10% 36.62% -3.48%
==========================================
Files 155 210 +55
Lines 10044 13436 +3392
==========================================
+ Hits 4028 4921 +893
- Misses 5530 7897 +2367
- Partials 486 618 +132 ☔ View full report in Codecov by Sentry. |
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.
Can we do the same for attest-blob? Otherwise, LGTM.
Signed-off-by: Dmitry Savintsev <dsavints@gmail.com>
Expand the list of commands that support the mTLS and custom CA TSA parameters to include `cosign attest` and `cosign blob-attest`. Related to sigstore/cosign#4079 and its issue sigstore/cosign#4078. Signed-off-by: Dmitry Savintsev <dsavints@gmail.com>
Thanks! |
Expand the list of commands that support the mTLS and custom CA TSA parameters to include `cosign attest` and `cosign blob-attest`. Related to sigstore/cosign#4079 and its issue sigstore/cosign#4078. Signed-off-by: Dmitry Savintsev <dsavints@gmail.com>
Summary
Add the following command-line flags for
cosign attest
andcosign blob-attest
:All the added fields are optional with empty defaults - not providing them should not make any difference for those who do not need them.
The initial patch (442e0e8) is authored by my teammate Aditya Mahendrakar (@maditya) and used with the author's permission.
Release Note
cosign attest
andcosign blob-attest
- add optionaltimestamp-client-cacert
,timestamp-client-cert
,timestamp-client-key
, andtimestamp-server-name
flags to enable an mTLS connection to the custom TSA server (with the non-public CA roots),analogue to the existing flags for
cosign sign[-blob]
.Documentation
sigstore/docs#368