---
title: "Enforcing device trust on code changes"
description: "Figma requires code merged into GitHub release branches to come from company-managed MacBooks by signing commits with short-lived X.509 Okta Device Trust certificates instead of relying on GitHub's \"Verified\" badge, which trusts personal GPG keys and web-flow signatures that compromised tokens can obtain."
url: "https://swe.quest/articles/enforcing-device-trust-on-code-changes-57bfbdc46c3e8f7c"
canonical: "https://www.figma.com/blog/how-we-enforce-device-trust-on-code-changes/"
source: "Figma"
published: "2023-12-08"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["supply-chain-security","identity-auth","version-control","ci-cd"]
---

# Enforcing device trust on code changes

A post on [Figma](https://swe.quest/sources/figma.md), published 2023-12-08, 9 min read, Case study. Original: [https://www.figma.com/blog/how-we-enforce-device-trust-on-code-changes/](https://www.figma.com/blog/how-we-enforce-device-trust-on-code-changes/)

## Summary

Figma requires code merged into GitHub release branches to come from company-managed MacBooks by signing commits with short-lived X.509 Okta Device Trust certificates instead of relying on GitHub's "Verified" badge, which trusts personal GPG keys and web-flow signatures that compromised tokens can obtain. A forked smimesign plus a wrapper script makes Git look up the current certificate key ID at commit time, since the certificates rotate every 15 days. A GitHub App backed by an AWS Lambda receives push webhooks, checks that the HEAD commit's S/MIME signature chains to the private CA, and posts a required commit-integrity-verification status. Bot commits such as Dependabot's are checked against an allowlist and heuristics on what they change.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Supply chain security](https://swe.quest/tags/supply-chain-security.md) (Security)
- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [Version control](https://swe.quest/tags/version-control.md) (Engineering practices)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)

## Prerequisites

- Git commit signing
- X.509 certificates
- GitHub webhooks and branch protection

## Keywords

smimesign, Okta Device Trust, S/MIME, GitHub Apps, AWS Lambda, Amazon Private CA, JAMF, Dependabot

## Related posts

- [Our response to the Axios developer tool compromise](https://swe.quest/articles/our-response-to-the-axios-developer-tool-compromise-1553cdb638ce1a6b.md): OpenAI · 2026-04-10 · Medium · 5 min read · Supply chain security, CI/CD, Incidents & postmortems, JavaScript
  A GitHub Actions workflow in OpenAI's macOS app-signing pipeline downloaded and executed a malicious Axios 1.14.1 during the March 31, 2026 npm supply chain attack, exposing the code-signing certificate and notarization material for ChatGPT Desktop, Codex, Codex CLI and Atlas.
- [Rolling out Santa without freezing productivity: Tips from securing Figma’s fleet](https://swe.quest/articles/rolling-out-santa-without-freezing-productivity-tips-from-securing-figma-s-fleet-77d67b199183f0bd.md): Figma · 2025-07-02 · Medium · 13 min read · Security, Deployment, Identity & auth
  Figma deployed Google's Santa binary authorization tool in lockdown mode across its entire macOS laptop fleet.
- [Securing the Docker MCP Catalog: Commit Pinning, Agentic Auditing, and Publisher Trust Levels](https://swe.quest/articles/securing-the-docker-mcp-catalog-commit-pinning-agentic-auditing-and-publisher-91efbeaa90e18d9c.md): Docker · 2025-12-03 · Medium · 8 min read · Supply chain security, AI agents, Sandboxing & isolation, Containers, CI/CD
  Docker's MCP Registry now pins every Docker-built MCP server to a specific Git commit, enforced in CI and propagated to the org.opencontainers.image.revision label, so builds are deterministic and verifiable with docker inspect or cosign.
- [Defending Your Software Supply Chain: What Every Engineering Team Should Do Now](https://swe.quest/articles/defending-your-software-supply-chain-what-every-engineering-team-should-do-now-434c4d75b0885a00.md): Docker · 2026-04-02 · Medium · 9 min read · Supply chain security, CI/CD, Containers, AI agents
  Recent supply chain compromises (the axios npm hijack attributed to Lazarus Group, the TeamPCP campaign via Trivy's GitHub Action, Shai-Hulud, GlassWorm) share one root cause: implicit trust in mutable tags, broad long-lived tokens and unsandboxed runners.
- [Our response to the TanStack npm supply chain attack](https://swe.quest/articles/our-response-to-the-tanstack-npm-supply-chain-attack-a4ee1bd194da9989.md): OpenAI · 2026-05-13 · Easy · 6 min read · Supply chain security, Incidents & postmortems, JavaScript, CI/CD
  Two OpenAI employee devices were compromised via the malicious TanStack npm package in the Mini Shai-Hulud supply chain attack, leading to credential-focused exfiltration from a limited set of internal repositories that held code-signing certificates for iOS, macOS and Windows apps.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
