Infrastructure
Netflix Links AWS Identity to Internal Certificates via Workload Attestation
The streaming giant developed a system to exchange AWS managed identities for short-lived internal credentials, bridging its cloud infrastructure with private certificate authority without manual secret injection.
InfoQ
Netflix has created a workload attestation system that lets Apache Spark jobs running on Amazon EMR convert their AWS execution identity into a short-lived credential from Netflix's internal certificate authority. The mechanism solves a core infrastructure challenge: how to authenticate managed cloud workloads to internal services without hardcoding secrets or manually distributing credentials.
The Identity Problem#
Netflix operates two parallel identity systems. Amazon provides managed workloads with IAM execution roles, while Netflix's internal services rely on Metatron, a private PKI infrastructure that issues short-lived X.509 certificates for mutual TLS authentication. The company also organizes data ownership and access control around Data Projects, creating a third identity layer. This means a Spark job needs to prove that its AWS identity corresponds to the internal identity associated with the Data Project that owns it.
Design Architecture#
Rather than concentrating all Data Project identities in a single AWS account, Netflix maps each Data Project to its own IAM role and distributes these roles deterministically across a pool of dedicated accounts—a necessary step since Netflix expects to eventually manage tens of thousands of Data Projects.
When a job launches, the control plane validates the request, locates the Data Project's IAM role, and creates a cryptographically signed payload describing the intended workload. The Spark driver then generates a pre-signed request to AWS Security Token Service's GetCallerIdentity endpoint, proving it possesses the expected IAM credentials. Netflix's Identity service retrieves this proof from AWS to independently verify the driver's AWS identity, then cross-checks it against the signed metadata from the control plane. When both checks align, the service issues a Metatron certificate.
Managing Executor Distribution#
Spark typically scales to thousands of executor processes. Rather than force each one to independently attest to Netflix's systems, the architecture has the driver attest once and share credentials with executors through authenticated, encrypted Spark RPC channels. This eliminates attestation traffic proportional to executor count and creates a clear trust boundary.
Credential Lifecycle#
Certificates issued during bootstrap are short-lived, so Netflix handles renewal as a separate process. The driver periodically re-attests before expiration, while executors rely on renewed credentials from the driver. This pattern matters for long-running workloads that must maintain valid credentials over hours or days.

