First stable release. Notes: docs/release/RELEASE_NOTES_v1.0.0.md Lab record: docs/release/LIVE_RESULTS_v1.0.0.md
Code-signing live test (W29-14)
run.sh proves the CI OIDC exchange and the RFC 3161 TSA end to end against a
real hub in podman, with real openssl and cosign:
- a trust rule is proposed by alice and approved by bob (dual control),
- a token from
fakeidpplus a P-256 CSR yields a 45 s code-signing certificate bound toacme/app@refs/heads/main, - a blob is signed (openssl, cosign) and the signature is timestamped by
POST /api/v1/tsa, - after the certificate has expired the timestamp (
openssl ts -verify), the chain as of the timestamp (openssl verify -attime) andcosign verify-blob --use-signed-timestampsstill pass, and the same checks without the timestamp fail, - refused tokens (replay, other repo, other ref) are 401 with a generic body, and the reasons are in the audit trail,
- the revoked-certificate semantics below are asserted.
Prerequisites
podman (machine running), openssl 3.x, cosign 3.x, curl, python3, Go. The hub
and the fake issuer run as linux containers so the hub can trust the issuer's CA
through SSL_CERT_FILE (Go on macOS ignores it). Run: bash tests/live/codesign-oidc/run.sh
(about 2.5 minutes, most of it waiting for the certificate to expire). Keys are
generated per run under ~/kk-uat-codesign-run and deleted on exit.
Not covered here: jarsigner -tsa (no JDK on the dev host; the script says so)
and signtool /tr (Windows lane only; the command is
signtool timestamp /tr https://HUB/api/v1/tsa /td sha256 file.exe, with the
hub reached anonymously, see KRYPTKEEPER_TSA_ALLOW_ANONYMOUS).
cosign findings (v3.1.3)
cosignaccepts only its own key format in--key: import the PKCS#8 key withcosign import-key-pairfirst.- With
--certificate-chain,sign-blobwrites a legacyx509CertificateChainbundle that cosign's own verifier rejects (Invalid IEEE_P1363 encoded bytes). Sign with--certificateonly and give the chain to the verifier in a--trusted-rootfile. - The certificate has no Fulcio OIDC-issuer extension (Fulcio-style mode is
v1.x), so an exact
--certificate-oidc-issueris refused (got ""); use--certificate-oidc-issuer-regexp '.*'and pin trust with the identity URI and the trusted root.--insecure-ignore-sctand--insecure-ignore-tlogare required (no CT log, no Rekor). sign-blobcannot send the hub's Bearer token to the TSA. Request the reply yourself over the bytes of cosign's signature and put the wholeTimeStampRespin the bundle (timestampVerificationData.rfc3161Timestamps[].signedTimestamp).
Revoked-certificate semantics
A timestamp proves only that a signature existed at genTime; it never
overrides revocation.
- Revoked with reason
keyCompromise: treat every signature from that certificate as untrusted, timestamped or not. CRL/OCSP verifiers do. The script shows the hub CRL listing the serial withKey Compromise, while the timestamp token itself still verifies. - Any other reason: signatures timestamped before the revocation time stay
valid. The cut-off is the hub's
revoked_aton the certificate (GET /api/v1/certificates/{fingerprint}) compared with the token'sgenTime; the script assertsgenTime <= revoked_atfor the revoked cert.