Repository navigation
gitsign v0.18.0
Highlights
π System keyring credential caching (#865)
gitsign can now cache signing credentials (the ephemeral private key and Fulcio cert/chain) in your OS keyring, so they're reused for the lifetime of the certificate without running the gitsign-credential-cache daemon.
- Enable with
gitsign.credentialCacheMode=system(orGITSIGN_CREDENTIAL_CACHE_MODE=system).socket(the existing daemon) and the default remain available. - Backed by the native credential store on each platform: macOS Keychain (via Security.framework, cgo), Windows Credential Manager, and Linux Secret Service / KWallet.
- Credentials are cached per identity, keyed by a hash of the config used to obtain them (Fulcio URL, OIDC issuer, client ID, connector ID, committer email), so multiple identities coexist. Expired/invalid entries fall through
to the normal OIDC flow. - New
gitsign credentials listandgitsign credentials clear [--all]subcommands inspect and remove cached credentials for whichever backend is configured. - The existing daemon cache was consolidated onto the same building blocks and gains per-identity, multi-identity caching and a TTL that matches the certificate lifetime.
- Credential cache setup errors (unknown mode, unreachable daemon, etc.) now soft-fail β gitsign prints a warning and signs without the cache rather than failing the signature.
β οΈ Packagers/builders: the macOS Keychain backend requires cgo, so darwin binaries are now built withCGO_ENABLED=1on a macOS runner. Builds without cgo report the keyring as unavailable and fall back to the normal OIDC
flow.
Bug fixes
- verify:
gitsign verifyno longer requires--certificate-identity/--certificate-identity-regexpβ it defaults the identity to the commit's committer email when neither flag is given, keeping verification of
others' commits meaningful. Fixes #293. (#881) - timestamps: RFC3161 timestamp tokens are now wrapped as a DER
TimeStampRespin sigstore bundles, so bundles carrying a timestamp verify correctly with sigstore-go and other downstream verifiers instead of failing on an
ASN.1 tag mismatch. Fixes #866. (#867) - git objects: Preserve a trailing
\rwhen splitting raw commit/tag objects, so what gitsign splits matches the bytes git hashed. This closes a signature-reuse gap between a commit and its trailing-\rtwin, and a
duplicate-header evasion inValidateCommit/ValidateTag. (#871) - Don't hard-fail signing on slow systems. Fixes #624. (#664)
New features / tooling
- Added a hidden
gitsign debug tokencommand that runs the same keyless OIDC auth flow and prints the raw OIDC token (JWT) that would be exchanged for a Fulcio certificate β no certificate is requested and nothing is signed.
Useful for troubleshooting auth. (#864)
Documentation
- Fixed the path to the systemd units in the
gitsign-credential-cacheREADME (./contrib/systemd/gitsign-credential-cache.*). (#863)
CI / maintenance
- Lock GitHub Actions dependencies with
gh actions-lock. (#885) - Release pipeline split into per-OS GoReleaser configs publishing into a shared draft, with the container image published from its own job.
- Various dependency bumps: sigstore/fulcio 1.8.8β1.9.0, sigstore/sigstore 1.10.9β1.11.1, golang.org/x/crypto 0.57.0β0.58.0, jose2go 1.5.0β1.7.0, grpc 1.82.0β1.83.2, go-openapi/runtime, godbus/dbus, plus grouped gomod and GitHub
Actions updates.
Full changelog: v0.17.1...v0.18.0
Changelog
- 93dbc8d build(deps): bump goreleaser/goreleaser-action (#887)
- 5a5da18 build(deps): bump github.com/godbus/dbus (#889)
- f2b5b75 build(deps): bump github.com/dvsekhvalnov/jose2go from 1.5.0 to 1.7.0 (#886)
- a1de55d build(deps): bump golang.org/x/crypto from 0.57.0 to 0.58.0 (#888)
- a236c01 build(deps): bump github.com/sigstore/fulcio from 1.8.8 to 1.9.0 (#894)
- 7b9f26c build(deps): bump actions/setup-go from 6.4.0 to 7.0.0 (#890)
- 8b5e93b build(deps): bump the gomod group with 2 updates (#891)
- 9e2986a build(deps): bump actions/checkout from 6.0.2 to 7.0.1 (#893)
- a761a35 build(deps): bump github.com/sigstore/sigstore from 1.10.9 to 1.11.1 (#896)
- af7461e Bump the gomod group across 1 directory with 10 updates (#884)
- 6d20288 ci: lock GitHub Actions dependencies with gh actions-lock (#885)
- caee251 Add system keyring credential caching (#865)
- e7452e1 fix(verify): default the certificate identity to the commit committer (#881)
- 34bbeb8 Bump github.com/go-openapi/runtime from 0.32.6 to 0.33.0 (#856)
- af801a0 Bump actions/setup-go from 6.4.0 to 7.0.0 (#857)
- 7bd58bf Bump actions/cache from 5.0.5 to 6.1.0 (#859)
- 199a7a0 Bump actions/checkout from 6.0.2 to 7.0.1 (#860)
- 1870f14 Bump the actions group across 1 directory with 3 updates (#873)
- 08386a0 fix: wrap RFC3161 timestamp tokens as TimeStampResp in sigstore bundles (#867)
- 9b9b955 Bump google.golang.org/grpc from 1.82.0 to 1.83.2 (#879)
- 6f3d985 lint: match unquoted SA1019 message for deprecated sigstore tuf package (#877)
- cf8739a fix(git): preserve trailing CR when splitting raw commit/tag objects (#871)
- 034927d Add hidden "gitsign debug token" command (#864)
- 38a6801 doc(gitsign-credential-cache): fix path to systemd units (#863)
- 0bc03fb Don't hard fail on slow systems. #624. (#664)