policy-controller icon indicating copy to clipboard operation
policy-controller copied to clipboard

Allow specifying the verification mode: online, offline, fallback

Open hectorj2f opened this issue 2 years ago • 2 comments

Description

Cosign v2 is planning to add new flags that will allow specifying the expected verification mode, e.g.

--rekor-verification={offline,fallback,online,insecure} (default fallback)
--sct-verification={offline,fallback,online,insecure} (default fallback; replaces --enforce-sct flag)
--tsa-verification={offline,fallback,online} (default fallback)

Our CIP API definition should be able to handle these new verification modes to mimic these cosign changes. At the moment, the proposed changes in https://github.com/sigstore/cosign/issues/2466 are not already done in the upstream. Therefore we should consider waiting until these changes are part of more stable releases before adapting our API.

More info here: https://github.com/sigstore/cosign/issues/2466

hectorj2f avatar Jan 13 '23 12:01 hectorj2f

That issue is a little confusing; it just tracks adding some test cases, which are already in.

As part of that discussion, we discuss improving the APIs/CLI for verification modes in this manner. But that probably won't happen pre-2.0. So no rush on this for compatibility.

znewman01 avatar Jan 23 '23 20:01 znewman01

@znewman01 Yes, that makes sense 👍🏻. I assumed that will happen once v2 is released or even later.

hectorj2f avatar Jan 24 '23 09:01 hectorj2f