Briefing · Podcast · source · published · Boston Identity
Netflix is moving each app's IAM role into its own AWS account, with broad rights inside
Netflix is moving workload IAM roles into AWS accounts of their own, granting broad permissions there and leaving the data where it was, which trades per-role least privilege for what it calls right-sized access. On the Cloud Security Podcast, Patrick Sanders and Joseph Kjar, who lead the project at Netflix, explain the credential proxy that makes it work and how they pick which apps move first. They also say what it leaves unsolved.
Cloud Security Podcast · AWS Multi-Account Security: What Netflix Learned · February 13, 2025 · listen
What's happening
Finding4Netflix is moving app IAM roles into their own AWS accounts and granting broad permissions there, an approach Netflix calls right-sized access, Kjar says.
Netflix is moving workload IAM roles out of its large shared AWS accounts into accounts of their own and granting broad permissions inside them, instead of trimming each role toward least privilege. Patrick Sanders, who leads the project with Joseph Kjar, says removing unused permissions role by role in the shared accounts is "really tedious at scale"; he calls the account boundary "the best security boundary that there is in AWS" and the broad grant "very much not least privilege". Kjar says Netflix calls the approach right-sized access: with the role moved, the scope of a compromise of the app is "significantly reduced", and developers no longer have to submit policy requests. The guests accept a new risk: a compromised app could create resources in its own account, "some denial of wallet kind of stuff", while guardrails block public sharing and the content and the personal data of members, talent and employees get the most care.
Netflix's IMDS proxy uses OIDC and STS AssumeRoleWithWebIdentity to get credentials for a role in each app's own AWS account, Sanders says.
Netflix moves the identity and leaves the resources where they are. Kjar's reason: AWS makes an EC2 instance's IAM role live in the instance's account, Netflix has "over a thousand workloads in the same account" with no meaningful boundary between them, and lifting the resources out is "remarkably complex and difficult", while the identity is "only anchored there because AWS says that it has to be." Sanders describes the new IMDS proxy that makes this work for EC2 and Netflix's container platform: it serves on the metadata service's IP address and uses OIDC to call STS AssumeRoleWithWebIdentity for a role in the app's own account, one per environment, so the SDKs fetch credentials as before and the application does not change. The compute may stay shared. In the guests' SSRF example, an attacker holding the stolen credentials would see at most a bucket created for that app, and each moved app hits its own AWS API quotas, out of reach of noisy neighbours.
Only the role moves: the app keeps its shared compute and leaves its buckets and queues in the shared account, while the IMDS proxy fetches credentials for a role kept in the app's own account.
Drawn from the guests' description of Netflix's IMDS proxySource dated February 13, 2025Passage: 10:11
Swipe for the full figure →
Netflix sorts apps for migration by how they use AWS services, and its tooling now runs batches of 100-plus workload migrations, Kjar says.
Because only the role moves, Netflix gauges each migration's complexity mainly by how the app calls AWS rather than by its code. IAM last-accessed data shows which services a role used, and when the team ran the numbers it found three groups: apps with no AWS service use, apps using services that work across accounts, and apps using same-account services that do not support cross-account access, such as Kinesis and Route 53. Moving an app that manages Route 53 hosted zones in the shared account would mean code changes so the app assumes a role back in that account, and the team does not want to be "in the business of code changes". The guests say "the large majority of our applications" are in the first two groups, so the third can stay in the shared accounts longer. Last-accessed data names S3 but not the bucket, and Kjar jokes that a listener probably has not enabled S3 data events across the organisation "unless you've discovered a hidden money tree"; Netflix maps apps to buckets and queues with custom AWS SDK instrumentation and S3 access logs. The tooling now takes a curated batch in which, in Kjar's words, "100 plus real life migrations for workloads happen self-sufficiently". Starting again, he says, the team would have begun real migrations sooner with bare-bones tooling instead of building the full orchestration first.
Kjar says the per-app role pattern holds most value for large brownfield AWS estates, especially ones where a lift-and-shift migration failed.
The guests limit the pattern's reach themselves. Kjar says it "holds the most value for people with a lot of baggage in AWS": large brownfield estates, especially ones that tried a traditional lift-and-shift multi-account migration and failed, as Netflix did. On new estates, one guest says: "can't say I would recommend exactly what we're doing for greenfield", pointing to newer tools such as AWS Resource Access Manager for sharing subnets. A guest also says the pattern does not solve network perimeter problems, lateral movement on the network, or multi-tenancy problems such as container escapes on a shared container platform. Teams that start on containers may not need a custom proxy: a guest thinks EKS can do "a similar cross-account kind of thing" through what we read as IAM roles for service accounts, while saying he is not very familiar with that world.
Chapter by chapter
9showing 9 of 9
[1]Right-sized access instead of least privilege
Ashish Rajan, Cloud Security Podcast · Patrick Sanders, Netflix · Joseph Kjar, Netflix — 03:01–06:00
Non-human identity
Right-sized access instead of least privilege
Ashish Rajan, Cloud Security Podcast · Patrick Sanders, Netflix · Joseph Kjar, Netflix — 03:01–06:00
Sanders and Kjar describe the project they have worked on for more than three years: moving workload IAM roles out of Netflix's large multi-tenant AWS accounts into accounts of their own. Inside that boundary they grant broad permissions, which Sanders says is "very much not least privilege", and Kjar says Netflix calls it right-sized access. Trimming unused permissions role by role in the shared accounts is tedious at scale, Sanders says, and Kjar adds that developers no longer have to file policy requests.
positioning shiftfrom our transcript
[2]Why move the identity, not the resources
Ashish Rajan, Cloud Security Podcast · Patrick Sanders, Netflix · Joseph Kjar, Netflix — 06:24–10:03
Non-human identity
Why move the identity, not the resources
Ashish Rajan, Cloud Security Podcast · Patrick Sanders, Netflix · Joseph Kjar, Netflix — 06:24–10:03
Kjar explains why Netflix moves the identity rather than the resources. AWS makes an EC2 instance's IAM role live in the instance's account, so with over a thousand workloads in one account there were no meaningful boundaries between them. Lifting resources out is complex, while the role sits there only by AWS convention. A moved app hits its own AWS API quotas, and the guests say each identity that leaves cuts paths between applications and the resources left behind.
customer prooffrom our transcript
[3]IMDS proxy with OIDC and an account per app and environment
Ashish Rajan, Cloud Security Podcast · Patrick Sanders, Netflix · Joseph Kjar, Netflix — 10:11–15:04
Non-human identity
IMDS proxy with OIDC and an account per app and environment
Ashish Rajan, Cloud Security Podcast · Patrick Sanders, Netflix · Joseph Kjar, Netflix — 10:11–15:04
Sanders walks through the credential path. A new IMDS proxy for EC2 and Netflix's container platform serves on the metadata service's IP and uses OIDC to call STS AssumeRoleWithWebIdentity for a role in the app's own account, one per environment, so the SDK needs no change. In the guests' SSRF example, stolen credentials would reach little beyond the app's own bucket. They also cite role quotas in crowded accounts and noisy neighbours exhausting shared rate limits.
customer prooffrom our transcript
[4]What security at scale means: friction and risk priorities
Ashish Rajan, Cloud Security Podcast · Patrick Sanders, Netflix · Joseph Kjar, Netflix — 16:00–18:55
What security at scale means: friction and risk priorities
Ashish Rajan, Cloud Security Podcast · Patrick Sanders, Netflix · Joseph Kjar, Netflix — 16:00–18:55
The guests judge security at scale by how much friction it puts on developers and whether controls let the business move, weighed against what most needs protecting. Their small team cannot sit in every conversation about an app's permissions, so the account sandboxes carry that load. The new risk is a compromised app with broad rights in its own account, such as denial of wallet; guardrails block public sharing, and content and the personal data of members, talent and employees come first.
opinionfrom our transcript
[5]Incident response across many accounts
Ashish Rajan, Cloud Security Podcast · Patrick Sanders, Netflix · Joseph Kjar, Netflix — 20:24–22:01
Incident response across many accounts
Ashish Rajan, Cloud Security Podcast · Patrick Sanders, Netflix · Joseph Kjar, Netflix — 20:24–22:01
Asked how to investigate across many accounts, a Netflix guest points to AWS's well-architected framework rather than Netflix specifics: central CloudTrail logging, pre-provisioned incident-response roles, and the same runbook in every account, kept consistent through infrastructure as code. A guest adds that service control policies should protect those controls from being switched off in sandbox accounts.
opinionfrom our transcript
[6]Where to start and what Netflix would change
Ashish Rajan, Cloud Security Podcast · Patrick Sanders, Netflix · Joseph Kjar, Netflix — 22:40–26:48
Where to start and what Netflix would change
Ashish Rajan, Cloud Security Podcast · Patrick Sanders, Netflix · Joseph Kjar, Netflix — 22:40–26:48
Kjar says the approach pays off most for large brownfield AWS estates, especially ones that tried a traditional lift-and-shift multi-account migration and failed, as Netflix did. The guests suggest estimating each app's migration complexity, security risk and operational risk, and Kjar would start real migrations early with bare-bones tooling instead of perfecting the orchestration first. Sanders says time went into integrating with Netflix's migration campaign platform and into splitting focus with other duties.
opinionfrom our transcript
[7]Estimating migration complexity and mapping apps to resources
Ashish Rajan, Cloud Security Podcast · Patrick Sanders, Netflix · Joseph Kjar, Netflix — 28:20–34:38
Non-human identity
Estimating migration complexity and mapping apps to resources
Ashish Rajan, Cloud Security Podcast · Patrick Sanders, Netflix · Joseph Kjar, Netflix — 28:20–34:38
Because only the role moves, migration effort depends on how an app calls AWS, not on its code. IAM last-accessed data lists the services a role used; the guests sort apps into no AWS service use, cross-account-capable use, and same-account use of services that lack cross-account access, such as Kinesis and Route 53, with most apps in the first two; an app managing Route 53 zones would need code changes to move. Custom AWS SDK instrumentation and S3 access logs fill in which bucket or queue. Curated batches now run 100-plus migrations on their own.
customer prooffrom our transcript
[8]What the pattern does not solve; containers and EKS
Ashish Rajan, Cloud Security Podcast · Patrick Sanders, Netflix · Joseph Kjar, Netflix — 34:36–37:23
Non-human identity
What the pattern does not solve; containers and EKS
Ashish Rajan, Cloud Security Podcast · Patrick Sanders, Netflix · Joseph Kjar, Netflix — 34:36–37:23
A Netflix guest says the pattern does not solve network perimeter problems, lateral movement on the network, or container escapes on a shared container platform. For teams that start on containers, a guest thinks EKS makes this easier through what we read as IAM roles for service accounts, while saying he is not very familiar with that world. The host talks through Cilium and service meshes and says the principle should carry over to Kubernetes.
opinionfrom our transcript
[9]Greenfield versus brownfield; subnet sharing; identity segregation trend
Ashish Rajan, Cloud Security Podcast · Patrick Sanders, Netflix · Joseph Kjar, Netflix — 37:37–43:11
Non-human identity
Greenfield versus brownfield; subnet sharing; identity segregation trend
Ashish Rajan, Cloud Security Podcast · Patrick Sanders, Netflix · Joseph Kjar, Netflix — 37:37–43:11
For a new AWS estate, a guest would not recommend Netflix's exact design, because newer tools such as AWS Resource Access Manager subnet sharing have changed how multi-account networks are built. For brownfield estates the guests see little reason to rebuild the network for its own sake, and joke that Netflix is probably not converting its AWS production estate to VPC Lattice anytime soon. A guest sees identity split from compute spreading, citing a fwd:cloudsec talk on Kubernetes workload identities.
opinionfrom our transcript