cli: Add --rekor-version to sign arguments#1471
Conversation
aa1cb9e to
a86bcf7
Compare
a86bcf7 to
55c8911
Compare
|
I'm filing a separate issue about testing the bundle compatibility -- choosing the rekor version is one thing but there are other related changes in the bundle we produce (like TSA timestamps) that could affect compatibility |
This should not be needed... but it could be handy if * SigningConfig already contains rekor v2 * user for some reason does not want rekor v2 entries in the bundle This option only does anything if there are multiple Rekor versions listed in SigningConfig. The test is changed since the "ANY" selector is now considered to not be an error if there are 0 services: * This is not a problem since for both TSAs and tlogs we have a check that there is at least one service * This improves the error message when --rekor-version is used with a version that is not found in signingconfig Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
Avoid saying "default: None", mention the valid values instead. Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
55c8911 to
dc21376
Compare
|
I'm keeping this a draft until I'm confident I know how #1474 looks like |
25be8c6 to
b36e65b
Compare
|
Marking ready for review: I'm still not sure if this is actually useful but happy to include (and improve) it if others feel like it's useful. sigstore-python 3.6.5 correctly verifies a signature bundle created with sigstore-python from this branch if |
woodruffw
left a comment
There was a problem hiding this comment.
LGTM -- no strong opinion, but one thing we could do here is make --rekor-version a global argument instead, similar to --staging works. I don't have a strong intuition on whether that's a better fit or not.
I will merge as is for two reasons:
|
This adds a CLI option that should not be needed... but it could be handy if
This option only does anything if there are multiple Rekor versions listed in SigningConfig.
The test is changed since the "ANY" selector is now considered to not be
an error if there are 0 services:
that there is at least one service
a version that is not found in signingconfig