Skip to content

Releases

sigstore-swift 0.4.0

Choose a tag to compare

@github-actions github-actions released this 29 Nov 17:21
Immutable release. Only release title and notes can be modified.

What's Changed

Full Changelog: 0.3.1...0.4.0

sigstore-swift 0.3.1

Choose a tag to compare

@github-actions github-actions released this 28 Nov 11:25
Immutable release. Only release title and notes can be modified.

What's Changed

New Contributors

Full Changelog: 0.3.0...0.3.1

sigstore-swift 0.3.0

Choose a tag to compare

@tumerorkun tumerorkun released this 27 Nov 20:41

sigstore-swift 0.3.0 adds sigstore-go's SigningConfig and closes the last known verification differences from sigstore-go v1.4.1, except ML-DSA keys inside X.509 certificates.

Early development: verify-only, not yet security-reviewed. Do not rely on it for production decisions yet. The API may change before 1.0.

Install

.package(url: "https://github.com/appibara-ltd/sigstore-swift.git", .upToNextMinor(from: "0.3.0"))

Requires Swift 6.4, and macOS 26 or later, Linux or Windows. CI tests the latest macOS, Linux and Windows.

New since 0.2.0

  • SigningConfig (SigstoreRoot), ported from sigstore-go pkg/root/signing_config.go:
    • Service, ServiceConfiguration, selectService, selectServices (ALL / ANY / EXACT), and builders that return a modified copy (with… / add…).
    • It is fetched over TUF from signing_config.v0.2.json with fetchSigningConfig(), fetchSigningConfigWithOptions(_:) or getSigningConfig(_:).
    • Nothing in sigstore-swift signs yet; this is the groundwork for signing.
  • BER TimeStampTokens are accepted, as sigstore-go's pkcs7 accepts them: ber2der is ported from digitorus/pkcs7, with an added nesting-depth limit. The outer TimeStampResp must still be DER, as in Go.

Behaviour changes

  • TSA signed attributes are verified over the DER SET OF sorted, as pkcs7 does. Tokens whose signed attributes were not sent in sorted order now verify; before, they were rejected.
  • The Fulcio code-signing EKU check now covers the root certificate, as Go's checkChainForKeyUsage does. A trusted root whose EKU extension lists usages but neither codeSigning nor anyExtendedKeyUsage now fails verification. Roots with no EKU extension are unaffected, which includes the public-good Fulcio roots.

Internal

  • Test data is embedded with scripts/embed-test-data.sh instead of SwiftPM resource bundles, which fixes a flaky Windows build. No target has a resource bundle. CI checks that the generated files are up to date.

Conformance

Passes every sigstore-conformance verify test: 135/135 at v0.0.29, the version CI runs. Signing tests are skipped. swift test runs 204 tests.

Known limits

  • Signing is not implemented.
  • ML-DSA keys inside X.509 certificates (Fulcio leaves, TSA chains) are not supported, because swift-certificates cannot parse them yet. The upstream status is recorded in PROGRESS.md.
  • Deviations from sigstore-go, all of which fail closed, are listed in PROGRESS.md under Decisions.

sigstore-swift 0.2.0

Choose a tag to compare

@tumerorkun tumerorkun released this 26 Nov 09:50

sigstore-swift 0.2.0 brings the verification side to parity with sigstore-go v1.4.1, except ML-DSA keys inside X.509 certificates.

Early development: verify-only, not yet security-reviewed. Do not rely on it for production decisions yet. The API may change before 1.0.

Install

.package(url: "https://github.com/appibara-ltd/sigstore-swift.git", .upToNextMinor(from: "0.2.0"))

Requires Swift 6.4. macOS 26 or later (raised from macOS 13 in 0.1.0), Linux or Windows; CI tests the latest macOS, Linux and Windows.

New since 0.1.0

  • ML-DSA (44/65/87), pure-Swift FIPS 204 verification (SigstoreMLDSA), tested against Go crypto/mldsa and NIST ACVP vectors. Used for raw keys, ML-DSA-44 Rekor log keys and their cosignature/v1 checkpoint signatures.
  • Ed25519ph and RSA over a precomputed digest, pure Swift (SigstoreCryptoExtras), tested against Go vectors including RFC 8032 §7.3. Certificate message signatures with Ed25519 keys now verify as Ed25519ph, as in sigstore-go; RSA message signatures verify against a digest alone; TUF RSA-PSS keys auto-detect the salt length.
  • LiveTrustedRoot: background TUF refresh that keeps the last good trusted root.
  • VerificationResult JSON (jsonData() / init(json:)), checked against sigstore-go's own output on real bundles.
  • Strict in-toto statements from the in-toto/attestation v1.2.0 protos, as sigstore-go parses them.
  • BundleV2 and the v2 verifier API (IdentityVerifier, PKIVerifier, KeyVerifier). As in sigstore-go v1.4.1, these verifiers are not implemented yet and throw "not implemented".
  • Fuzzing: libFuzzer harness over ten parsers, run in CI on every push (30 s per target) and weekly (15 min per target). The first full run found nothing.

Breaking changes

  • macOS minimum is now 26.
  • TrustedRoot.embeddedPublicGood() is removed (sigstore-go has no embedded trusted root): use fetchTrustedRoot() (TUF) or TrustedRoot(path:).
  • SignatureVerifier.publicKey, TransparencyLog.publicKey and EntryPublicKey.publicKey are now SigstorePublicKey (a classical key or ML-DSA).

Fixes

  • TUF delegation path matching was exponential on star-heavy patterns; it is now a port of Go's path.Match.
  • Bundle bytes fields follow Go's protojson base64 rules; free-form predicates are no longer treated as bytes.

Conformance

Passes every sigstore-conformance verify test with no expected failures: 135/135 at v0.0.29 (the version CI runs, as sigstore-go does). Also checked locally against the suite's unreleased main (e275ffb): 141/141. Signing tests are skipped.

Known limits

  • Signing is not implemented.
  • ML-DSA keys inside X.509 certificates (Fulcio leaves, TSA chains) are not supported: swift-certificates cannot parse them.
  • Deviations from sigstore-go (all fail-closed) are listed in PROGRESS.md under Decisions.

sigstore-swift 0.1.0

Choose a tag to compare

@tumerorkun tumerorkun released this 25 Nov 19:29

First tagged release of sigstore-swift, a Swift port of the verification side of sigstore-go (reference: v1.4.1).

Early development: verify-only, not yet security-reviewed. Do not rely on it for production decisions yet. The API may change before 1.0.

Install

.package(url: "https://github.com/appibara-ltd/sigstore-swift.git", .upToNextMinor(from: "0.1.0"))

Requires Swift 6.4. Deployment target macOS 13; tested on the latest macOS, Linux and Windows.

What it verifies

  • Bundles v0.1–v0.3 (protojson with Go's parsing rules), message signatures and DSSE envelopes (ECDSA P-256/384/521, Ed25519, RSA PKCS#1 v1.5).
  • Fulcio certificates: RFC 5280 path validation at the observer time, code-signing EKU, Sigstore OID extensions, certificate identity policies (exact or regex SAN and issuer).
  • Embedded SCTs (RFC 6962).
  • Rekor v1 entries (dsse, hashedrekord, intoto): Merkle inclusion proofs, signed checkpoints, SETs.
  • Rekor v2 entries: signed-note checkpoints and inclusion of the entry reconstructed from the bundle.
  • RFC 3161 timestamps: CMS signature, TSA chain and timestamping EKU, message imprint, TSA validity windows.
  • TUF client (port of sigstore-go pkg/tuf over go-tuf v2): fetches trusted_root.json from the public-good repository, or from another instance such as GitHub's (tuf-repo.github.com), with verified root rotation and an on-disk cache shared with sigstore-go.

Conformance

Passes every sigstore-conformance verify test with no expected failures: 135/135 at v0.0.29 (the version CI runs, as sigstore-go does). Also checked locally against the suite's unreleased main (e275ffb, 2026-11-25): 141/141. Signing tests are skipped.

Known limits

  • Signing is not implemented.
  • Not ported yet: LiveTrustedRoot, RSA/Ed25519ph signatures over a precomputed digest, ML-DSA keys, SigningConfig, JSON output of VerificationResult.
  • Deviations from sigstore-go are listed in PROGRESS.md under Decisions.