Repository navigation
Releases
sigstore-swift 0.4.0
What's Changed
- Record the 0.3.1 release by @tumerorkun in #3
- sign: port keys, content and bundle building by @tumerorkun in #4
- sign: port the timestamp authority client by @tumerorkun in #5
- sign: port the Fulcio certificate provider by @tumerorkun in #6
- sign: port the Rekor transparency client by @tumerorkun in #7
- conformance: add sign-bundle to the client by @tumerorkun in #8
- Document signing and prepare 0.4.0 by @tumerorkun in #9
- CI: drop suppressed Semgrep findings before upload by @tumerorkun in #10
Full Changelog: 0.3.1...0.4.0
sigstore-swift 0.3.1
What's Changed
- CI: create and sign releases from version tags by @tumerorkun in #1
- Add a FUNDING.yml by @tumerorkun in #2
New Contributors
- @tumerorkun made their first contribution in #1
Full Changelog: 0.3.0...0.3.1
sigstore-swift 0.3.0
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-gopkg/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.jsonwithfetchSigningConfig(),fetchSigningConfigWithOptions(_:)orgetSigningConfig(_:). - Nothing in sigstore-swift signs yet; this is the groundwork for signing.
- BER TimeStampTokens are accepted, as sigstore-go's pkcs7 accepts them:
ber2deris ported from digitorus/pkcs7, with an added nesting-depth limit. The outerTimeStampRespmust 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
checkChainForKeyUsagedoes. 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.shinstead 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
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 Gocrypto/mldsaand 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.VerificationResultJSON (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.
BundleV2and 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): usefetchTrustedRoot()(TUF) orTrustedRoot(path:).SignatureVerifier.publicKey,TransparencyLog.publicKeyandEntryPublicKey.publicKeyare nowSigstorePublicKey(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
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/tufover go-tuf v2): fetchestrusted_root.jsonfrom 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 ofVerificationResult. - Deviations from sigstore-go are listed in PROGRESS.md under Decisions.