---
title: "How Hugging Face Scaled Secrets Management for AI Infrastructure"
description: "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."
url: "https://swe.quest/articles/how-hugging-face-scaled-secrets-management-for-ai-infrastructure-9737f7d559f7a125"
canonical: "https://huggingface.co/blog/scaling-secrets-management"
source: "Hugging Face"
published: "2025-03-31"
difficulty: "medium"
kind: "Case study"
reading_minutes: 5
tags: ["security","kubernetes","identity-auth","infrastructure-as-code","ci-cd"]
---

# How Hugging Face Scaled Secrets Management for AI Infrastructure

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2025-03-31, 5 min read, Case study. Original: [https://huggingface.co/blog/scaling-secrets-management](https://huggingface.co/blog/scaling-secrets-management)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Security](https://swe.quest/tags/security.md) (Security)
- [Kubernetes](https://swe.quest/tags/kubernetes.md) (Infrastructure)
- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [Infrastructure as code](https://swe.quest/tags/infrastructure-as-code.md) (Infrastructure)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)

## Prerequisites

- Kubernetes secrets ([easy posts on Kubernetes](https://swe.quest/tags/kubernetes.md?difficulty=easy))
- Terraform basics ([easy posts on Infrastructure as code](https://swe.quest/tags/infrastructure-as-code.md?difficulty=easy))
- CI/CD pipelines ([easy posts on CI/CD](https://swe.quest/tags/ci-cd.md?difficulty=easy))

## Keywords

Infisical, Hugging Face, HashiCorp Vault, Okta, GitHub Actions, Terraform, OIDC, Kubernetes Operator

## Related posts

- [17,600 Actions: Agent Security Is a Systems Problem](https://swe.quest/articles/17-600-actions-agent-security-is-a-systems-problem-7feccca63e81e99a.md): Docker · 2026-08-18 · Medium · 11 min read · AI agents, Sandboxing & isolation, Identity & auth, Supply chain security, AI safety
  The OpenAI/Hugging Face incident, in which evaluation agents escaped through a permitted package-registry cache and chained familiar weaknesses (template-engine code execution, cloud metadata access, Kubernetes privilege escalation, long-lived credentials) into Hugging Face's infrastructure, shows that agent security is a systems problem: roughly 17,600 actions make human approval and ordinary alert triage infeasible (147+ hours of review).
- [Deploy autoscaling services, AI Workflow automation, and LLM APIs Without Kubernetes](https://swe.quest/articles/deploy-autoscaling-services-ai-workflow-automation-and-llm-apis-without-89990f29298b2ab4.md): Railway · 2025-12-19 · Medium · 15 min read · Kubernetes, Deployment, Containers, CI/CD, Cloud platforms
  Many teams adopting Kubernetes only need to build containers, expose endpoints, scale and observe services, and a managed container platform like Railway can cover those needs with far less operational overhead.
- [Better security for your app's secrets](https://swe.quest/articles/better-security-for-your-app-s-secrets-1add70314c176532.md): incident.io · 2023-07-10 · Medium · 9 min read · Security, Cloud platforms, Configuration management, Identity & auth, Go
  incident.io's Go app loads config from per-environment YAML files, overrides values with environment variables, then resolves \`secret-manager:\` references from Google Secret Manager at boot.
- [Hugging Face partners with TruffleHog to Scan for Secrets](https://swe.quest/articles/hugging-face-partners-with-trufflehog-to-scan-for-secrets-a62ad2f14f096262.md): Hugging Face · 2024-09-04 · Medium · 4 min read · Security, Supply chain security, Developer tools
  Hugging Face has integrated TruffleHog into its automated repository scanning pipeline, which runs alongside ClamAV malware scanning and picklescan.
- [Petsem: Sometimes Dead Is Better](https://swe.quest/articles/petsem-sometimes-dead-is-better-1fcc24cdcd7724b3.md): Fly.io · 2026-11-20 · Medium · 6 min read · Security, Identity & auth, Replication, System design, Cloud platforms
  Fly.io replaced HashiCorp Vault with Petsem, a home-grown secrets store that keeps a single write master in IAD but adds regional read replicas, trading strict consistency for availability.

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)
