---
title: "Inside Figma: getting out of the (secure) shell"
description: "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."
url: "https://swe.quest/articles/inside-figma-getting-out-of-the-secure-shell-990a1f1d9b7e2fa4"
canonical: "https://www.figma.com/blog/inside-figma-getting-out-of-the-secure-shell/"
source: "Figma"
published: "2021-09-02"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["identity-auth","cloud","security"]
---

# Inside Figma: getting out of the (secure) shell

A post on [Figma](https://swe.quest/sources/figma.md), published 2021-09-02, 9 min read, Case study. Original: [https://www.figma.com/blog/inside-figma-getting-out-of-the-secure-shell/](https://www.figma.com/blog/inside-figma-getting-out-of-the-secure-shell/)

## Summary

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.

Written by swe.quest, not by the author.

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

## Topics

- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [Cloud platforms](https://swe.quest/tags/cloud.md) (Infrastructure)
- [Security](https://swe.quest/tags/security.md) (Security)

## Prerequisites

- AWS IAM roles and policies ([easy posts on Cloud platforms](https://swe.quest/tags/cloud.md?difficulty=easy))
- SSH and bastion hosts
- SSO and MFA basics

## Keywords

AWS Systems Manager, Session Manager, AWS SSO, Okta, aws-vault, WebAuthn, ECS, EC2

## Related posts

- [How Figma manages sandboxes at scale](https://swe.quest/articles/how-figma-manages-sandboxes-at-scale-2d97e81a21201803.md): Figma · 2026-11-04 · Medium · 11 min read · Sandboxing & isolation, System design, Resilience, Cloud platforms, AI agents
  Nimbus is Figma's internal platform for running tens of thousands of sandboxes for AI-generated code across multiple cloud providers.
- [Securing internal web apps](https://swe.quest/articles/securing-internal-web-apps-eb5531504daf0f7d.md): Figma · 2021-08-12 · Medium · 13 min read · Identity & auth, Cloud platforms, Load balancing, Infrastructure as code, Security
  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.
- [Our Journey Migrating to AWS IMDSv2](https://swe.quest/articles/our-journey-migrating-to-aws-imdsv2-7a3bae8a33284213.md): Slack Engineering · 2023-12-12 · Medium · 10 min read · Cloud platforms, Security, Application security, Infrastructure as code, Identity & auth
  Slack enforced IMDSv2 across roughly 60,000 EC2 instances in hundreds of AWS accounts.
- [Designing for security and usability: Figma's modern endpoint strategy](https://swe.quest/articles/designing-for-security-and-usability-figma-s-modern-endpoint-strategy-6114848291c3bb53.md): Figma · 2025-04-04 · Medium · 6 min read · Security, Identity & auth, Threat detection
  Figma's corporate endpoint security puts usability first, on the premise that friction drives employees to risky workarounds.
- [How Hugging Face Scaled Secrets Management for AI Infrastructure](https://swe.quest/articles/how-hugging-face-scaled-secrets-management-for-ai-infrastructure-9737f7d559f7a125.md): Hugging Face · 2025-03-31 · Medium · 5 min read · Security, Kubernetes, Identity & auth, Infrastructure as code, CI/CD
  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.

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)
