Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Indeed Engineering 14 min read Case study hardMaster

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

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.

Related posts

  • How to Reduce Overprivileged Kubernetes Service Accounts

    Teleport mediumAdept

    Kubernetes ServiceAccounts end up with cluster-admin as quick workarounds, and the bindings spread through Terraform modules, Helm charts, GitOps repos and bootstrap scripts. A workload's effective permissions are the union of Kubernetes RBAC and any cloud IAM role it reaches via workload identity federation, so auditing each layer separately misses real risk. Remediation comes in steps: audit cluster-admin bindings and legacy pre-1.24 token secrets with kubectl/jq, disable token automount for pods that don't call the API, and replace ClusterRoleBindings with namespace-scoped Roles. Static credentials should give way to OIDC SSO, workload identity federation or SPIFFE/SPIRE short-lived certificates.

  • How Hugging Face Scaled Secrets Management for AI Infrastructure

    Hugging Face mediumAdept

    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. In Kubernetes, the Infisical Operator syncs secrets via an InfisicalSecret CRD into native Kubernetes secrets and can auto-reload Deployments. Engineers still prefer manual redeploys for control at over 10 million requests per minute. RBAC is mapped from Okta groups, the CLI replaces local .env files, and CI/CD uses GitHub Actions with OIDC, Terraform and self-hosted runners.

  • Don’t hardcode IAM credentials in GitHub!

    Scribd Tech mediumAdept

    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. To avoid repeating per-repository setup of the OIDC provider, role trust scoped to a repo and branch, and S3/ECR read or write policies, Scribd open sourced terraform-oidc-module, shown with a sample configuration taking the token URL, client IDs, thumbprints, repo refs and custom policy ARNs.

  • The Story Behind Shopify’s Isospin Tooling

    Shopify Engineering mediumAdept

    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. Template units (foo@bar) let each app get its own copies of dependencies like MySQL and Elasticsearch, while generators build per-app targets and service graphs at boot from runtime configuration. Port collisions are solved by a dependency service that hashes service names into stable port assignments injected as a PORT environment variable. Readiness is handled with systemd's NOTIFY_SOCKET via a notify-port wrapper that polls the assigned port, which caught services bound to the wrong port or failing silently at startup.

  • How we built Render OIDC

    Render mediumAdept

    Render issues per-service OIDC tokens so workloads can authenticate to AWS, GCP, OpenAI and Anthropic without long-lived API keys. Tokens expire after 60 minutes as a tradeoff between leak exposure and tolerance for issuer outages. Per-workspace issuer URLs protect against providers misconfigured to skip subject checks, and per-provider audience claims block token replay across providers. Because SDKs mostly expect a token file, an external OIDC Daemon writes and refreshes tokens into a read-only bind mount backed by /dev/shm, and Render sets provider-specific env vars such as AWS_WEB_IDENTITY_TOKEN_FILE.

The quest for software engineering knowledge.

Look:
Layout: