Securing internal web apps
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.
Related posts
- Inside Figma: getting out of the (secure) shell
Figma mediumAdept
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.
- 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.
- Visibility at scale: How Figma detects sensitive data exposure
Figma mediumAdept
Figma built Response Sampling, a detection layer that randomly samples outbound API responses and checks them for sensitive data the requesting user shouldn't see. The first version ran as an `after` filter in Figma's Ruby application server. It extracted high-entropy file identifiers from JSON bodies and verified access asynchronously against PermissionsV2, and LiveGraph fed in its own samples through an internal endpoint. The expanded version uses FigTag column annotations (`banned_from_clients`) and ActiveRecord callbacks to record the sensitive values loaded during a request, then flags any of them that appear in the serialized response. Sampling, async checks, rate limiting, dynamic allowlists and running in both staging and production kept latency and false positives under control while surfacing real authorization gaps.
- Password Protection with OAuth2 Proxy
Render mediumAdept
Putting oauth2-proxy in front of a Render Private Service adds OAuth-based login (Google, GitHub and a dozen other providers) to an existing web app without touching its code. The proxy runs the OAuth 2.0 flow, verifies the returned token out-of-band with the provider using a client ID and secret, then forwards authenticated requests to the backend service, which must not be publicly reachable. Authorization can be limited to members of a Google Group, GitHub org or GitLab project, or the username can be passed to the backend for its own checks. The tradeoff is running and paying for an extra service and dealing with OAuth configuration. Pomerium and BuzzFeed's sso are alternatives.
- Our approach to security at speed
Figma easyNovice
Figma's small security team scales by favoring transparency, reusable patterns and trust over mandated process: thrice-weekly office hours backed by a three-question "ThreatJam" survey surface risks early. For FigJam rich link previews, it identified SSRF, DoS and malicious-HTML risks and recommended isolating scraping in a cloud function on a separate network, with rate limiting, HTTP/HTTPS-only ports, short-lived caching and restricted tag parsing; other teams later reused the pattern. Internally, phishing is countered with passwordless FIDO2/WebAuthn hardware and biometric authenticators, and a Slack bot automatically flags documents made public.