VOOZH about

URL: https://thenewstack.io/godaddys-innovative-project-to-secure-and-rotate-kubernetes-secrets/

⇱ GoDaddy’s Project to Secure, Rotate Kubernetes Secrets - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2021-07-16 08:42:52
GoDaddy’s Project to Secure, Rotate Kubernetes Secrets
tutorial,
Kubernetes / Security

GoDaddy’s Project to Secure, Rotate Kubernetes Secrets

One of the key advantages of GoDaddy's Kubernetes External Secrets is that it constantly synchronizes the local secrets with the cloud-based secret store.
Jul 16th, 2021 8:42am by Janakiram MSV
👁 Featued image for: GoDaddy’s Project to Secure, Rotate Kubernetes Secrets
Feature image via Unsplash.

Kubernetes has a simple and flexible mechanism to store and retrieve sensitive data through the concept of secrets. Operators can easily create and store secrets such as database passwords within a Kubernetes namespace. Developers writing applications can retrieve secrets through the environment variables or files stored in a well-known location. Access to secrets can be restricted to authorized users and applications through Kubernetes role-based access control (RBAC).

But while Kubernetes secrets provide simplicity and flexibility, they also have some limitations that may turn into DevOps’ nightmare.

Firstly, Kubernetes secrets are not really secrets. They are just base64 encoded strings that can be easily decoded by any user or a pod with access to secrets. If the Kubernetes control plane is configured to support encrypted secrets, you may be able to secure them. But, the majority of the managed Kubernetes services don’t have encryption enabled for secrets.

Secondly, Kubernetes secrets cannot be populated or rotated from a single source of truth. With the rise of Kubernetes at the edge, customers are creating and deploying tens of thousands of clusters. While GitOps comes to the rescue of deployments at scale for the edge clusters, it doesn’t address the problem of centralizing secret management. It is not a good idea to store secrets in static YAML files in a Git repository.

Finally, Kubernetes secrets don’t take advantage of cloud-based secret stores and key management services offering enterprise-grade protection. Most of the managed secret stores in the public cloud have automated rotation policies and robust lifecycle management of secrets. But it’s extremely challenging to connect the dots between the cloud-based secret management services and Kubernetes secrets.

Overview of Kubernetes External Secrets

GoDaddy, one of the leading web-hosting companies, open-sourced an internal project called Kubernetes External Secrets. It precisely addresses the challenges discussed above.

GoDaddy extensively relies on Amazon Web Services‘ EKS for running their Kubernetes infrastructure. The engineering team at GoDaddy realized that there is no integration between EKS and other managed services like Amazon Secrets Manager and AWS Systems Manager. To bridge the gap between the two, they built a Kubernetes custom controller and a custom resource definition called External Secrets.

The Kubernetes External Secrets project initially focused on enabling EKS clusters to synchronize Kubernetes secrets with AWS Secrets Manager. This was done by taking advantage of the IAM role integration with Kubernetes service accounts. When a Kubernetes service account is associated with an AWS IAM role, the pods using the same service account assume the role. This is similar to how EC2 instances assume the IAM role to gain access to AWS-managed services.

But soon, the scope of the Kubernetes External Secrets project has been expanded to support non-EKS clusters and Kubernetes clusters running outside of AWS. The controller can be configured with the typical approach of passing the AWS access key and secret key to invoke AWS Secrets Manager API.

Currently, the Kubernetes External Secrets project supports various secret manager backends running in mainstream public cloud platforms. You can synchronize Kubernetes secrets with AWS Secrets Manager, AWS Systems Manager Agent, AKeyless Vault, Azure Key Vault, Google Cloud Secret Manager, HashiCorp Vault, and more.

The Architecture of Kubernetes External Secrets

When you install Kubernetes External Secrets in a cluster, it deploys a CRD called externalsecrets.kubernetes-client.io, defining the specification for the external secrets custom resource.

👁 Image

It also creates a pod that runs the custom controller.

👁 Image

The custom controller has the AWS credentials passed as environment variables to access the AWS Secrets Manager.

👁 Image

Below is the high-level architecture of GoDaddy’s Kubernetes External Secrets controller:

👁 Image

The custom controller creates a corresponding Kubernetes secret for every External Secret object that the pods can access.

In the below screenshot, you can see the dbsecret External Secret object translated to the Kubernetes secret.

👁 Image

One of the key advantages of Kubernetes External Secrets is that it constantly synchronizes the local secrets with the cloud-based secret store. The last sync status in the above screenshot shows that the secret was refreshed just a few seconds ago. This makes it possible to enable secret rotation in the cloud and automatically propagate it to the edge. The polling interval is a configurable parameter of the controller which can be easily adjusted to meet your requirements.

GoDaddy’s Kubernetes External Secret is an ideal tool for managing secrets at scale. Its GitOps-friendly architecture enables creating, managing, and rotating secrets at scale in multicluster edge deployments.

In the next article, I will walk you through the steps of configuring and deploying Kubernetes External Secrets backed by AWS Secrets Manager. Check back Monday for the second part of this tutorial!

TRENDING STORIES
Janakiram MSV (Jani) is a practicing architect, research analyst, and advisor to Silicon Valley startups. He focuses on the convergence of modern infrastructure powered by cloud-native technology and machine intelligence driven by generative AI. Before becoming an entrepreneur, he spent...
Read more from Janakiram MSV
SHARE THIS STORY
TRENDING STORIES
Amazon Web Services is a sponsor of The New Stack.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.