-
Notifications
You must be signed in to change notification settings - Fork 546
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
FR: offline mode #2255
Comments
+1 to an offline flag! Here's a copy paste of a comment I left on a doc when we were looking into the Cosign CVE: With no flag, I'd propose the behavior be:
|
+1 to that as the default behavior. Then, the additional changes for an offline mode:
I think that covers it? |
Additional note: we need to give more guidance about offline settings, especially w/r/t TUF (do you mirror it? do you risk stale root certs?). I think this documentation would be really valuable. |
@asraa's design doc for the Sigstore TUF client also mentioned supporting offline TUF. IIRC it was configurable how to handle expired metadata. |
this may be relevant for the discussion here too: |
cc @priyawadhwa |
For reference, I''ve been trying to figure out a good options for sigstore-python (mostly in context of TUF): My conclusions so far:
I plan to finish an existing attempt at making that "offline, non-expiring" mode available in python-tuf. |
COSIGN_EXPERIMENTAL
was introduced AFAICT for two reasons:So to start, anything that touched Sigstore infrastructure (TUF roots, Fulcio, Rekor) was gated: users needed to set
COSIGN_EXPERIMENTAL=1
to use them.Over time, we've blurred the line a little; without turning on experimental mode:
There's a question about "what is the point of
cosign verify-blob
withoutCOSIGN_EXPERIMENTAL
but with a provided certificate?"I don't want to answer that, at least not here. It's hopefully going to be an obsolete question soon: we're relatively comfortable with the idea of Sigstore, and we're targeting general availability (GA) for the infrastrcucture soon: sigstore/fulcio#766 and sigstore/rekor#1005 . But, at least some folks have been deliberately not providing this flag to indicate "don't try to hit the network." That's sort-of what it does right now: "I don't try to query Rekor/Fulcio, but I know about them, and also I'll get their keys via TUF."
That suggests to me that, post-dropping-
COSIGN_EXPERIMENTAL
, there should be some mechanism to verify offline. Maybe a--offline
flag, or even averify-offline
command (which is nice because now we can only show users the relevant flags). If we do that, we probably want to have some requirement on how out-of-date your TUF roots can be (maybe user-configurable?) and instructions on how to grab them fromcosign initialize
.The text was updated successfully, but these errors were encountered: