---
title: "Secure Workload Identity with SPIRE and OIDC: A Guide for Kubernetes and Istio Users"
description: "Indeed built its workload identity platform on SPIRE, issuing x509 SVIDs for Istio mTLS and JWT SVIDs for OIDC federation with AWS and Confluent Cloud, to replace widely shared long-lived API keys."
url: "https://swe.quest/articles/secure-workload-identity-with-spire-and-oidc-a-guide-for-kubernetes-and-istio-c4a9e9e39640cc31"
canonical: "https://engineering.indeedblog.com/blog/2024/07/workload-identity-with-spire-oidc-for-k8s-istio/"
source: "Indeed Engineering"
published: "2024-07-03"
difficulty: "hard"
kind: "Case study"
reading_minutes: 14
tags: ["identity-auth","kubernetes","security","cloud"]
---

# Secure Workload Identity with SPIRE and OIDC: A Guide for Kubernetes and Istio Users

A post on [Indeed Engineering](https://swe.quest/sources/indeed.md), published 2024-07-03, 14 min read, Case study. Original: [https://engineering.indeedblog.com/blog/2024/07/workload-identity-with-spire-oidc-for-k8s-istio/](https://engineering.indeedblog.com/blog/2024/07/workload-identity-with-spire-oidc-for-k8s-istio/)

## Summary

Indeed built its workload identity platform on SPIRE, issuing x509 SVIDs for Istio mTLS and JWT SVIDs for OIDC federation with AWS and Confluent Cloud, to replace widely shared long-lived API keys. The setup uses a single trust domain in a nested topology with a root CA and per-cluster intermediate CAs. Istio's fixed SPIFFE ID format and socket path forced migration work. The team shares production tuning for about 3000 pods: priority classes, ephemeral-storage limits, VPA with Initial mode for agents, and DaemonSet rollout limits. Other lessons include using the AWS KMS KeyManager for stable signing keys, serving OIDC discovery only from root CAs, injecting AWS session tags via a CredentialComposer plugin, and coping with undocumented JWKS key-count limits in AWS and Confluent and AWS thumbprint rotation.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

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

## Prerequisites

- Kubernetes basics ([easy posts on Kubernetes](https://swe.quest/tags/kubernetes.md?difficulty=easy))
- PKI and x509 certificates
- OAuth 2.0 and OIDC ([easy posts on Identity & auth](https://swe.quest/tags/identity-auth.md?difficulty=easy))
- Istio service mesh ([easy posts on Microservices](https://swe.quest/tags/microservices.md?difficulty=easy))

## Keywords

SPIRE, SPIFFE, Istio, OIDC, AWS IAM, Confluent Cloud, JWKS, AWS KMS

## Related posts

- [How to Reduce Overprivileged Kubernetes Service Accounts](https://swe.quest/articles/how-to-reduce-overprivileged-kubernetes-service-accounts-c0e72eb0f4b81563.md): Teleport · 2026-10-06 · Medium · 13 min read · Kubernetes, Identity & auth, Security, Cloud platforms
  Kubernetes ServiceAccounts end up with cluster-admin as quick workarounds, and the bindings spread through Terraform modules, Helm charts, GitOps repos and bootstrap scripts.
- [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.
- [Don’t hardcode IAM credentials in GitHub!](https://swe.quest/articles/don-t-hardcode-iam-credentials-in-github-efc515eb186f4e22.md): Scribd Tech · 2026-01-06 · Medium · 2 min read · Identity & auth, CI/CD, Infrastructure as code, Cloud platforms
  Instead of distributing long-lived IAM access keys to GitHub Actions, Scribd uses an AWS IAM OIDC identity provider so workflows assume IAM roles via aws-actions/configure-aws-credentials, avoiding key rotation and tracking problems.
- [The Story Behind Shopify’s Isospin Tooling](https://swe.quest/articles/the-story-behind-shopify-s-isospin-tooling-6da51b4e1078fe6a.md): Shopify Engineering · 2022-07-05 · Medium · 8 min read · Linux, Developer productivity, Developer tools, Multi-tenancy
  Shopify replaced the shell-script tooling behind its Spin cloud dev environments with Isospin, which runs multiple applications inside a single Linux VM by modeling them as systemd services.
- [How we built Render OIDC](https://swe.quest/articles/how-we-built-render-oidc-6877047536231241.md): Render · 2026-11-06 · Medium · 9 min read · Identity & auth, Containers, Cloud platforms, Security
  Render issues per-service OIDC tokens so workloads can authenticate to AWS, GCP, OpenAI and Anthropic without long-lived API keys.

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)
