From de811190883388f11b1046da9b7209ad83281e14 Mon Sep 17 00:00:00 2001 From: Ronen Slavin Date: Sun, 20 Sep 2026 12:14:52 +0300 Subject: [PATCH 1/3] docs: scope keyless-only inputs and correct KMS backend support The timestamp and transparency-log inputs are forwarded to the CLI only when `keyless: true`, and the CLI applies them only in keyless mode, but the README inputs table and the action.yml descriptions presented them as generally applicable. The air-gapped section recommends `sign-key` immediately above that table, so the combination read as supported. - Mark tlog-upload, include-timestamp, fulcio-server-url, rekor-server-url, timestamp-server-url and allow-submit-data-to-public-sigstore as keyless-only in both the README table and the action.yml input descriptions. - Add the previously undocumented include-timestamp input to the table. - Note in the air-gapped section that signatures produced with sign-key or a KMS provider carry no timestamp. - Correct the KMS bullet: Vault transit is the only implemented backend, so drop the awskms example. Documentation only. action.yml is read directly by the Actions runtime, so no dist rebuild is required. Co-Authored-By: Claude Opus 5 --- attest/README.md | 24 +++++++++++++++++------- attest/action.yml | 10 +++++----- 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/attest/README.md b/attest/README.md index b4e8bed..194c69b 100644 --- a/attest/README.md +++ b/attest/README.md @@ -47,14 +47,23 @@ If your environment cannot submit to the public Sigstore transparency log (e.g. customers in the USA / EU with data-residency requirements), use one of: -- **KMS signing**: `--kms vault://` (HashiCorp Vault transit) or - `--kms awskms://` (AWS KMS) — signature stays in your control. +- **KMS signing**: `--kms vault://` (HashiCorp Vault transit). + The signature stays in your control. Vault transit is the only KMS + backend implemented today. - **Keyed signing with checked-in private key**: `sign-key: private-key.pem`. - **Private Sigstore**: deploy your own Fulcio + Rekor and pass `fulcio-server-url` + `rekor-server-url`. See the inputs section below for the full list. +> **RFC 3161 timestamping is not available with keyed or KMS signing.** +> `include-timestamp` and `timestamp-server-url` are forwarded to the +> CLI only when `keyless: true`, and the CLI itself applies timestamping +> only in keyless mode. A signature produced with `sign-key` or a KMS +> provider carries no timestamp, so it has no time anchor proving it was +> made before the key was rotated or compromised. This is a known gap +> and we intend to close it. + ## Inputs | Name | Description | Default | @@ -64,11 +73,12 @@ See the inputs section below for the full list. | `skip-source-tree-check` | Skip verifying the source tree matches the recorded commit | `false` | | `sign-key` | Path to a private ECDSA/RSA/ED25519 PEM key | — | | `keyless` | Use keyless (Sigstore) signing | `false` | -| `tlog-upload` | Upload signature to Rekor transparency log | `true` | -| `fulcio-server-url` | Fulcio server URL | `https://fulcio.sigstore.dev` | -| `rekor-server-url` | Rekor server URL | `https://rekor.sigstore.dev` | -| `timestamp-server-url` | RFC3161 timestamp server URL | — | -| `allow-submit-data-to-public-sigstore` | Required when using public Sigstore | `false` | +| `tlog-upload` | **Keyless only.** Upload signature to Rekor transparency log | `true` | +| `include-timestamp` | **Keyless only.** Request an RFC 3161 timestamp and embed it in the signature | `false` | +| `fulcio-server-url` | **Keyless only.** Fulcio server URL | `https://fulcio.sigstore.dev` | +| `rekor-server-url` | **Keyless only.** Rekor server URL | `https://rekor.sigstore.dev` | +| `timestamp-server-url` | **Keyless only.** RFC3161 timestamp server URL. Not forwarded to the CLI unless `keyless: true` | — | +| `allow-submit-data-to-public-sigstore` | **Keyless only.** Required when using public Sigstore | `false` | | `provenance-output` | Path for unsigned provenance | `provenance.intoto.jsonl` | | `signed-provenance-output` | Path for signed provenance | `provenance.intoto.jsonl.sig` | | `report-job-summary` | Render provenance in the workflow job summary | `true` | diff --git a/attest/action.yml b/attest/action.yml index 098c4e6..2102c97 100644 --- a/attest/action.yml +++ b/attest/action.yml @@ -48,23 +48,23 @@ inputs: required: false default: 'false' tlog-upload: - description: Allow the creation of a Rekor transparency log (TLog) entry. + description: 'Keyless signing only: allow the creation of a Rekor transparency log (TLog) entry. Ignored unless keyless is true.' required: false default: 'true' include-timestamp: - description: Allow timestamping of the artifact signature against a timestamping authority. + description: 'Keyless signing only: allow RFC 3161 timestamping of the artifact signature against a timestamping authority. Ignored unless keyless is true.' required: false default: 'false' fulcio-server-url: - description: Fulcio server URL + description: 'Keyless signing only: Fulcio server URL' required: false default: 'https://fulcio.sigstore.dev' rekor-server-url: - description: Rekor server URL + description: 'Keyless signing only: Rekor server URL' required: false default: 'https://rekor.sigstore.dev' timestamp-server-url: - description: Timestamp server URL + description: 'Keyless signing only: timestamp server URL. Not forwarded to the CLI unless keyless is true.' required: false allow-submit-data-to-public-sigstore: description: Agree to submit data to an immutable public transparency log (Needed for public Sigstore) From a68720ea0bbdb15b1124018962b54193c4f39518 Mon Sep 17 00:00:00 2001 From: Ronen Slavin Date: Tue, 6 Oct 2026 12:08:21 +0300 Subject: [PATCH 2/3] docs: mark the Sigstore consent input as keyless-only in action.yml The README table already lists allow-submit-data-to-public-sigstore as keyless-only, but its action.yml description, which the Actions UI shows, did not say it is ignored otherwise. index.js forwards it only in the keyless branch. Co-Authored-By: Claude Opus 5.5 --- attest/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attest/action.yml b/attest/action.yml index 2102c97..3c04366 100644 --- a/attest/action.yml +++ b/attest/action.yml @@ -67,7 +67,7 @@ inputs: description: 'Keyless signing only: timestamp server URL. Not forwarded to the CLI unless keyless is true.' required: false allow-submit-data-to-public-sigstore: - description: Agree to submit data to an immutable public transparency log (Needed for public Sigstore) + description: 'Keyless signing only: agree to submit data to an immutable public transparency log (needed for public Sigstore). Ignored unless keyless is true.' required: false default: 'false' provenance-output: From 8e8bbf2b1180586a5dcc0d7a3b8df16eea6fca89 Mon Sep 17 00:00:00 2001 From: Ronen Slavin Date: Tue, 6 Oct 2026 12:01:20 +0300 Subject: [PATCH 3/3] attest: forward timestamp inputs for key-based signing include-timestamp and timestamp-server-url were forwarded to the CLI only with keyless: true, so workflows signing with sign-key could not request an RFC 3161 timestamp. Forward them for sign-key when include-timestamp is true. With include-timestamp false or unset the CLI arguments are unchanged, and keyless forwarding is unchanged. Older cimon releases accept these flags with --key and produce no timestamp, so the action can ship ahead of the CLI release. README and action.yml describe the behavior, with a key-based timestamping example. dist/ rebuilt. Closes #132 Co-Authored-By: Claude Opus 5.5 --- attest/README.md | 35 ++++++++++++++++++++++++++--------- attest/action.yml | 4 ++-- attest/dist/index.js | 11 +++++++++++ attest/index.js | 11 +++++++++++ 4 files changed, 50 insertions(+), 11 deletions(-) diff --git a/attest/README.md b/attest/README.md index 194c69b..cf59fbe 100644 --- a/attest/README.md +++ b/attest/README.md @@ -56,13 +56,30 @@ use one of: See the inputs section below for the full list. -> **RFC 3161 timestamping is not available with keyed or KMS signing.** -> `include-timestamp` and `timestamp-server-url` are forwarded to the -> CLI only when `keyless: true`, and the CLI itself applies timestamping -> only in keyless mode. A signature produced with `sign-key` or a KMS -> provider carries no timestamp, so it has no time anchor proving it was -> made before the key was rotated or compromised. This is a known gap -> and we intend to close it. +### Timestamping key-based signatures + +A signature made with `sign-key` carries no time anchor unless you add an +RFC 3161 timestamp, which lets a verifier show it was made before the +key was rotated or revoked. Request one explicitly; `timestamp-server-url` +accepts a Sigstore timestamp authority or a standard RFC 3161 service: + +```yaml +- uses: cycodelabs/cimon-action/attest@v1 + with: + subjects: dist\my-app.msi + sign-key: private-key.pem + include-timestamp: true + timestamp-server-url: http://timestamp.sectigo.com + fail-on-error: true +``` + +If the timestamp server cannot be reached, attestation fails. With the +default `fail-on-error: false` that is only logged as a warning, so set +it to `true` when the timestamp is required. Verify with +`cimon attest verify --key public-key.pem --timestamp-certificate-chain +`, pinning the timestamp authority's root certificate. +This requires a cimon release with key-based timestamping; older +releases accept these inputs and produce no timestamp. ## Inputs @@ -74,10 +91,10 @@ See the inputs section below for the full list. | `sign-key` | Path to a private ECDSA/RSA/ED25519 PEM key | — | | `keyless` | Use keyless (Sigstore) signing | `false` | | `tlog-upload` | **Keyless only.** Upload signature to Rekor transparency log | `true` | -| `include-timestamp` | **Keyless only.** Request an RFC 3161 timestamp and embed it in the signature | `false` | +| `include-timestamp` | Request an RFC 3161 timestamp and embed it in the signature. Applies to `keyless` and `sign-key` signing | `false` | | `fulcio-server-url` | **Keyless only.** Fulcio server URL | `https://fulcio.sigstore.dev` | | `rekor-server-url` | **Keyless only.** Rekor server URL | `https://rekor.sigstore.dev` | -| `timestamp-server-url` | **Keyless only.** RFC3161 timestamp server URL. Not forwarded to the CLI unless `keyless: true` | — | +| `timestamp-server-url` | RFC 3161 timestamp server URL: a Sigstore timestamp authority or a standard RFC 3161 service. With `sign-key`, forwarded only when `include-timestamp: true` | — | | `allow-submit-data-to-public-sigstore` | **Keyless only.** Required when using public Sigstore | `false` | | `provenance-output` | Path for unsigned provenance | `provenance.intoto.jsonl` | | `signed-provenance-output` | Path for signed provenance | `provenance.intoto.jsonl.sig` | diff --git a/attest/action.yml b/attest/action.yml index 3c04366..387fe0a 100644 --- a/attest/action.yml +++ b/attest/action.yml @@ -52,7 +52,7 @@ inputs: required: false default: 'true' include-timestamp: - description: 'Keyless signing only: allow RFC 3161 timestamping of the artifact signature against a timestamping authority. Ignored unless keyless is true.' + description: 'Request an RFC 3161 timestamp of the artifact signature from a timestamping authority. Applies to keyless and sign-key signing.' required: false default: 'false' fulcio-server-url: @@ -64,7 +64,7 @@ inputs: required: false default: 'https://rekor.sigstore.dev' timestamp-server-url: - description: 'Keyless signing only: timestamp server URL. Not forwarded to the CLI unless keyless is true.' + description: 'RFC 3161 timestamp server URL: a Sigstore timestamp authority or a standard RFC 3161 service. With sign-key, forwarded only when include-timestamp is true.' required: false allow-submit-data-to-public-sigstore: description: 'Keyless signing only: agree to submit data to an immutable public transparency log (needed for public Sigstore). Ignored unless keyless is true.' diff --git a/attest/dist/index.js b/attest/dist/index.js index 261c50d..0769217 100644 --- a/attest/dist/index.js +++ b/attest/dist/index.js @@ -127819,6 +127819,17 @@ async function run(config) { args.push(`--rekor-server-url=${config.attest.rekorServerUrl}`); } + if (config.attest.timestampServerUrl !== '') { + args.push( + `--timestamp-server-url=${config.attest.timestampServerUrl}` + ); + } + } else if (config.attest.signKey !== '' && config.attest.includeTimestamp) { + // Key-based signing only timestamps on an explicit request, so the + // inputs are forwarded only when include-timestamp is true. Older + // cimon releases accept and ignore them. + args.push('--include-timestamp=true'); + if (config.attest.timestampServerUrl !== '') { args.push( `--timestamp-server-url=${config.attest.timestampServerUrl}` diff --git a/attest/index.js b/attest/index.js index 3935ace..a98d0df 100644 --- a/attest/index.js +++ b/attest/index.js @@ -259,6 +259,17 @@ async function run(config) { args.push(`--rekor-server-url=${config.attest.rekorServerUrl}`); } + if (config.attest.timestampServerUrl !== '') { + args.push( + `--timestamp-server-url=${config.attest.timestampServerUrl}` + ); + } + } else if (config.attest.signKey !== '' && config.attest.includeTimestamp) { + // Key-based signing only timestamps on an explicit request, so the + // inputs are forwarded only when include-timestamp is true. Older + // cimon releases accept and ignore them. + args.push('--include-timestamp=true'); + if (config.attest.timestampServerUrl !== '') { args.push( `--timestamp-server-url=${config.attest.timestampServerUrl}`