SYSTEM Cited by 1 source
smimesign-figma
smimesign-figma is Figma's minimally-modified fork of GitHub's
systems/smimesign utility. The fork adds one new flag —
--get-figmate-key-id — that walks the macOS Keychain and returns
the key id of the engineer's current device-trust X.509
certificate (the cert rotates every 15 days).
The flag is the dynamic-lookup primitive that a
wrapper bash script calls at
commit time to substitute for Git's static user.signingkey argument.
Why the fork exists¶
smimesign upstream accepts a static key id
via -u <key>, which Git populates from user.signingkey. Figma's
device-trust certs rotate every 15 days, so any static value is stale
within two weeks. Two options:
- Continuously rewrite
user.signingkeyin every engineer's Git config every 15 days (fragile, requires tooling to touch each developer machine). - Compute the current key id at commit time (self-healing; no per-developer daemon needed).
Figma chose option 2, which requires the signer itself to expose a key-lookup primitive the wrapper can call.
The new flag¶
smimesign-figma --get-figmate-key-id
# → stdout: <current device-trust cert key id from macOS Keychain>
Wrapper script that uses it¶
One-line smimesign-figma-wrapper registered as Git's
gpg.x509.program:
Ignores all args Git passes; substitutes its own args with the dynamic key lookup.
Git's user.signingkey is left deliberately blank because the
wrapper makes it irrelevant — documented in internal Git config to
prevent future confusion.
Seen in¶
- sources/2026-04-21-figma-enforcing-device-trust-on-code-changes — primary description; used via the wrapper to sign every Figma Git commit with the laptop's rotating device-trust cert.
Related¶
- systems/smimesign — upstream.
- systems/figma-commit-signature-verification — the verifier side uses the same smimesign/ietf-cms library upstream vends.
- patterns/wrapper-script-arg-injection — the pattern the wrapper instantiates.
- patterns/signed-commit-as-device-attestation — the higher-level pattern.
- concepts/device-trust — the PKI the cert comes from.