Skip to content

Commit

Permalink
Remove --verify-digest flag (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
loosebazooka authored Oct 2, 2024
1 parent 63fbf5b commit 9b29799
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions docs/cli_protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ ${ENTRYPOINT} verify [--staging] --signature FILE --certificate FILE --certifica
#### Bundle flow

```console
${ENTRYPOINT} verify-bundle [--staging] --bundle FILE --certificate-identity IDENTITY --certificate-oidc-issuer URL [--trusted-root FILE] [--verify-digest] FILE_OR_DIGEST
${ENTRYPOINT} verify-bundle [--staging] --bundle FILE --certificate-identity IDENTITY --certificate-oidc-issuer URL [--trusted-root FILE] FILE_OR_DIGEST
```

| Option | Description |
Expand All @@ -87,5 +87,4 @@ ${ENTRYPOINT} verify-bundle [--staging] --bundle FILE --certificate-identity IDE
| `--certificate-identity IDENTITY` | The expected identity in the signing certificate's SAN extension |
| `--certificate-oidc-issuer URL` | The expected OIDC issuer for the signing certificate |
| `--trusted-root` | The path of the custom trusted root to use to verify the bundle |
| `--verify-digest` | Presence indicates client should interpret `FILE_OR_DIGEST` as a digest. |
| `FILE_OR_DIGEST` | The path to the artifact to verify, or its digest. The digest should start with the `sha256:` prefix. |
4 changes: 0 additions & 4 deletions sigstore-python-conformance
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ SUBCMD_REPLACEMENTS = {
ARG_REPLACEMENTS = {
"--certificate-identity": "--cert-identity",
"--certificate-oidc-issuer": "--cert-oidc-issuer",
# sigstore-python detects if the input is a file path or a digest without needing a flag
"--verify-digest": None,
}

# Trim the script name.
Expand Down Expand Up @@ -45,7 +43,5 @@ else:

# Replace incompatible flags.
command.extend(ARG_REPLACEMENTS[arg] if arg in ARG_REPLACEMENTS else arg for arg in fixed_args)
# Remove unneeded flags
command = [arg for arg in command if arg is not None]

os.execvp("sigstore", command)
1 change: 0 additions & 1 deletion test/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,6 @@ def _verify_digest_for_bundle(self, materials: BundleMaterials, digest: str) ->
CERTIFICATE_IDENTITY,
"--certificate-oidc-issuer",
CERTIFICATE_OIDC_ISSUER,
"--verify-digest",
]
)

Expand Down
1 change: 0 additions & 1 deletion test/test_bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,6 @@ def temp_bundle_path(bundle: dict) -> Path:
ident["Release manager"],
"--certificate-oidc-issuer",
ident["OIDC Issuer"],
"--verify-digest",
f"sha256:{sha256}",
)
except ClientFail as e:
Expand Down

0 comments on commit 9b29799

Please sign in to comment.