Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Figma 9 min read Case study mediumAdept

Inside Figma: getting out of the (secure) shell

Figma replaced its SSH bastion hosts with a zero-trust shell access system built on AWS SSO (backed by Okta with WebAuthn and device trust) and AWS Systems Manager Session Manager, so instances need no exposed SSH ports and access uses short-lived, minimally privileged IAM role credentials. Practical guidance covers scoping IAM policies for EC2 and ECS targets, restricting SSM documents, using RunCommand instead of SSH in deploy scripts, shipping session logs to a locked-down S3 account, and locking down SSM even when unused, since the preinstalled agent and broad default policies are an attack surface. Rollout went from SSH tunneled over SSM, through a grace period and a block on inbound bastion traffic with break-glass access, to a CLI script wrapping aws-vault and the AWS CLI that replaced SSH entirely and gave full session transcripts.

Assumes: AWS IAM roles and policiesSSH and bastion hostsSSO and MFA basics

Related posts

  • How Figma manages sandboxes at scale

    Figma mediumAdept

    Nimbus is Figma's internal platform for running tens of thousands of sandboxes for AI-generated code across multiple cloud providers. Teams declare a namespace config (image, resources, health checks, warm pool bounds, allowed hosts), and a control plane picks providers, enforces egress policy and manages lifecycle through GetOrCreate, Get and Delete APIs. Security comes from read-only egress to untrusted hosts, enforced by provider controls or a proxy sidecar, plus encrypted credentials that are swapped for real ones only at the intended destination. Demand-sized warm pools with Postgres skip-locked claiming, health-weighted provider routing and Redis-scheduled health checks cut provisioning latency by 90% and raised availability from 99% to 99.95%. A control-loop simulator exposed a feedback bug where slow-but-successful providers kept receiving work.

  • Securing internal web apps

    Figma mediumAdept

    Figma secures internal web apps by putting each behind an AWS Application Load Balancer that authenticates users through Okta via SAML, using a Cognito User Pool as the bridge. Terraform modules provision the setup. Okta sign-in rules enforce WebAuthn and device trust, and the ALB provides managed patching, desync mitigation, WAF and per-app session timeouts. For fine-grained authorization, Okta group memberships flow through the SAML assertion into Cognito's profile attribute and reach the app in the signed x-amzn-oidc-data JWT. The post gives step-by-step verification guidance (kid/region validation, alg checks, manual expiry, issuer checks) and recommends permission-specific groups assigned via Okta Group Rules instead of team-based checks.

  • Our Journey Migrating to AWS IMDSv2

    Slack Engineering mediumAdept

    Slack enforced IMDSv2 across roughly 60,000 EC2 instances in hundreds of AWS accounts. IMDSv2's session tokens, obtained by PUT and sent as a header, blunt SSRF-based credential theft. The team found IMDSv1 callers with the MetadataNoToken CloudWatch metric, a Prometheus dashboard and ImdsPacketAnalyzer, then made shared Terraform modules require tokens via an exclusion-list module and denied IMDSv1 launches with SCPs. Because SCPs don't cover the root account or service-linked roles such as AutoScaling, they added EventBridge/CloudTrail alerts routed to Slack and an EKS-hosted "IMDSv1 Terminator" that continuously forces IMDSv2 on any instance still allowing v1.

  • Designing for security and usability: Figma's modern endpoint strategy

    Figma mediumAdept

    Figma's corporate endpoint security puts usability first, on the premise that friction drives employees to risky workarounds. An Endpoint Security Baseline uses osquery to detect risks such as kernel extensions, quarantines the device from AWS, GitHub and GSuite, auto-remediates where possible, and otherwise sends Slack-based self-service fixes before restoring access. The Santa binary allowlist was rolled out from Monitor Mode data, which showed 90% of devices would see no blocks, with auto-allowlisting for engineer-compiled binaries and a Slack approval flow for the long tail. Opal provides just-in-time, role-based, auto-expiring access defined as config-as-code.

  • How Hugging Face Scaled Secrets Management for AI Infrastructure

    Hugging Face mediumAdept

    Hugging Face moved secrets management to Infisical as its infrastructure grew from AWS-only to multi-cloud (Azure, GCP), choosing it over HashiCorp Vault for developer workflows and multi-cloud abstraction. In Kubernetes, the Infisical Operator syncs secrets via an InfisicalSecret CRD into native Kubernetes secrets and can auto-reload Deployments. Engineers still prefer manual redeploys for control at over 10 million requests per minute. RBAC is mapped from Okta groups, the CLI replaces local .env files, and CI/CD uses GitHub Actions with OIDC, Terraform and self-hosted runners.

The quest for software engineering knowledge.

Look:
Layout: