---
title: "Securing internal web apps"
description: "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."
url: "https://swe.quest/articles/securing-internal-web-apps-eb5531504daf0f7d"
canonical: "https://www.figma.com/blog/inside-figma-securing-internal-web-apps/"
source: "Figma"
published: "2021-08-12"
difficulty: "medium"
kind: "Case study"
reading_minutes: 13
tags: ["identity-auth","cloud","load-balancing","infrastructure-as-code","security"]
---

# Securing internal web apps

A post on [Figma](https://swe.quest/sources/figma.md), published 2021-08-12, 13 min read, Case study. Original: [https://www.figma.com/blog/inside-figma-securing-internal-web-apps/](https://www.figma.com/blog/inside-figma-securing-internal-web-apps/)

## Summary

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.

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)
- [Load balancing](https://swe.quest/tags/load-balancing.md) (Infrastructure)
- [Infrastructure as code](https://swe.quest/tags/infrastructure-as-code.md) (Infrastructure)
- [Security](https://swe.quest/tags/security.md) (Security)

## Prerequisites

- SAML and SSO basics
- JWT verification ([easy posts on Formal methods](https://swe.quest/tags/formal-methods.md?difficulty=easy))
- AWS load balancers ([easy posts on Cloud platforms](https://swe.quest/tags/cloud.md?difficulty=easy))

## Keywords

Okta, AWS Application Load Balancer, AWS Cognito, SAML, JWT, Terraform, WebAuthn

## Related posts

- [Inside Figma: getting out of the (secure) shell](https://swe.quest/articles/inside-figma-getting-out-of-the-secure-shell-990a1f1d9b7e2fa4.md): Figma · 2021-09-02 · Medium · 9 min read · Identity & auth, Cloud platforms, Security
  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.
- [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.
- [Visibility at scale: How Figma detects sensitive data exposure](https://swe.quest/articles/visibility-at-scale-how-figma-detects-sensitive-data-exposure-a9fbf43af9718cbb.md): Figma · 2025-10-23 · Medium · 11 min read · Application security, Identity & auth, Ruby, Privacy, Observability
  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.
- [Password Protection with OAuth2 Proxy](https://swe.quest/articles/password-protection-with-oauth2-proxy-5f43c2cdc6af05d6.md): Render · 2022-02-10 · Medium · 6 min read · Identity & auth, Load balancing, Cloud platforms
  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.
- [Our approach to security at speed](https://swe.quest/articles/our-approach-to-security-at-speed-2ae96340506b0055.md): Figma · 2022-10-13 · Easy · 5 min read · Security, Application security, Identity & auth, Serverless
  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.

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)
