You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just sketching this out a bit: I think we'll probably want an --offline flag for sigstore verify.
When --offline is passed, sigstore verify will look for {input}.bundle, similar to how it currently looks for {input}.sig and {input}.crt. It'll then verify the contents of that bundle as a Rekor response, rather than hitting the log.
Double-checking myself: do we not do the Merkle inclusion proof for offline bundles? I can't find it in the cosign source code, and it looks like the bundle JSON itself doesn't contain the inclusionProof attribute that Rekor responses normally contain.
In terms of security properties, they're roughly equivalent. The SET is a "promise" that needs to be verified via an online lookup, and is a commitment by the log since it's signed. The inclusion proof could always be forked (split view attack) and needs to be verified online, and is also a commitment by the log since the proof includes a signed checkpoint/root hash.
In terms of security properties, they're roughly equivalent. The SET is a "promise" that needs to be verified via an online lookup, and is a commitment by the log since it's signed. The inclusion proof could always be forked (split view attack) and needs to be verified online, and is also a commitment by the log since the proof includes a signed checkpoint/root hash.
Makes sense, thank you! I couldn't wrap my head around what an offline inclusion proof would establish anyways, so that explains it neatly.
Activity
woodruffw commentedon Oct 7, 2022
Just sketching this out a bit: I think we'll probably want an
--offlineflag forsigstore verify.When
--offlineis passed,sigstore verifywill look for{input}.bundle, similar to how it currently looks for{input}.sigand{input}.crt. It'll then verify the contents of that bundle as a Rekor response, rather than hitting the log.Hayden-IO commentedon Oct 7, 2022
Once the bundle contains the sig and crt, should offline be the default?
woodruffw commentedon Oct 7, 2022
I see no reason why not!
woodruffw commentedon Oct 11, 2022
Double-checking myself: do we not do the Merkle inclusion proof for offline bundles? I can't find it in the
cosignsource code, and it looks like the bundle JSON itself doesn't contain theinclusionProofattribute that Rekor responses normally contain.Hayden-IO commentedon Oct 11, 2022
Correct - The inclusion proof is an alternative to the bundle - https://github.com/sigstore/rekor/blob/main/openapi.yaml#L448-L457
In terms of security properties, they're roughly equivalent. The SET is a "promise" that needs to be verified via an online lookup, and is a commitment by the log since it's signed. The inclusion proof could always be forked (split view attack) and needs to be verified online, and is also a commitment by the log since the proof includes a signed checkpoint/root hash.
woodruffw commentedon Oct 11, 2022
Makes sense, thank you! I couldn't wrap my head around what an offline inclusion proof would establish anyways, so that explains it neatly.
action.py: Specify absolute path in `pytest` invocation (sigstore#52)