aster.cloud aster.cloud
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
aster.cloud aster.cloud
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
  • Cloud-Native
  • Software Engineering

Secrets Management: Essential When Using Kubernetes

  • aster.cloud
  • January 27, 2022
  • 5 minute read

In Kubernetes secrets contain all kinds of sensitive information. For instance, database credentials or API keys. The term secrets management describes the centralised and secured management of these secrets. Sebastiaan Kok, Innovation Engineer at True, explains the importance of secret management and why this should be a key focus. He also points out how True handles secrets management itself and thus supports its customers with keeping their secrets safe.

“Secrets Management is a process where you manage secrets, like SSH keys, database credentials, certificates and API keys in a secure, centralised way. Access is controlled by role-based access control and policies”, says Sebastiaan.


Partner with aster.cloud
for your next big idea.
Let us know here.



From our partners:

CITI.IO :: Business. Institutions. Society. Global Political Economy.
CYBERPOGO.COM :: For the Arts, Sciences, and Technology.
DADAHACKS.COM :: Parenting For The Rest Of Us.
ZEDISTA.COM :: Entertainment. Sports. Culture. Escape.
TAKUMAKU.COM :: For The Hearth And Home.
ASTER.CLOUD :: From The Cloud And Beyond.
LIWAIWAI.COM :: Intelligence, Inside and Outside.
GLOBALCLOUDPLATFORMS.COM :: For The World's Computing Needs.
FIREGULAMAN.COM :: For The Fire In The Belly Of The Coder.
ASTERCASTER.COM :: Supra Astra. Beyond The Stars.
BARTDAY.COM :: Prosperity For Everyone.

Centralised management

Centralised management of secrets offers important advantages. Sebastiaan: “Especially when a secret is in use in multiple instances, for example at multiple moments in the CI/CD pipeline or an application, the management of it can be very complex. Think of changing or rotating a secret. It can involve a lot of work. Centralised secret management simplifies this.”

Secret management covers more than only guarding passwords. “Secret management concerns the management of all secrets within an organisation and centralised storage of it. Often, multiple teams work in one organisation, and each of them has its own secrets. Most of the time, everyone works in their own way with these secrets. Centralised management of it can be tricky and a challenge”, says Sebastiaan.

Secret management and Kubernetes

On the Kubernetes platform, adequate management of secrets is a key focus. “This is particularly a challenge if you work with GitOps”, Sebastiaan says. With GitOps, you configure Kubernetes deployments based on specifications stored in a Git repository. This repository forms a single source of truth.

“Secrets needed for configuring a Kubernetes deployment are not encrypted by design. It is comparable with storing a password in a plain text document, which is a very bad idea. You’ll need a way for working safely with secrets with GitOps.”

Working with multiple clusters

Secret management should also be a key focus when working with multiple Kubernetes clusters. “By design, Kubernetes saves secrets in a cluster. However, if you work with multiple clusters, secrets are also stored in multiple locations.”

Read More  Solving Configuration Drift Using GitOps With Argo CD

Another use is management of secrets for environmental variables. “Think of CI/CD pipelines, for example when a pipeline needs to access a secured resource like SSH or a database server”, Sebastiaan says. You can also use secrets management for automation. “For instance, if you work with Ansible or Terraform. You’ll need secrets for those as well.”

The most important part: using a solution with strong encryption. This defines to a high level the safety of stored secrets. “A challenge can be configuring policies. Who has access to which specific secret? Configuring should also be a key focus.”

Base64 encoded

Kubernetes are solely base64 encoded. “In this coding process, binary data are converted to ASCII. Base64 can be decoded by everyone. In other words: you save passwords in plain text, which is, again, very unsafe.”

“Git is intended to share source code, for example with colleagues, external companies you work with, or sometimes a community when it’s about open source code. Saving secrets in plain text in code of Git is a big no go. Encoding is not encryption”, explains Sebastiaan.

Safely storing Kubernetes secrets

Among other, open source projects offer a way out for safely storing Kubernetes secrets. Think of Bitnami Sealed Secrets and KSOPS. Sealed Secrets is a way to encrypt and convert secrets to a Sealed Secret. You can safely save these in Git.

“When deploying a Sealed Secret in Kubernetes, it decrypts a so-called controller, who is included in the cluster of the Sealed Secret. This is converted in a regular Kubernetes secret”, says Sebastiaan. This way of working also has it disadvantages. “For the use of Sealed Secret, a developer also needs access to kubectl and need permissions to encrypt secrets. To change a current Sealed Secret a developer needs to dispose of unencrypted secrets locally. Besides preventing secrets stored on a local system, this solution doesn’t scale when working with a large development team.”

Read More  Rethinking Business Resilience With Google Cloud

Vault

But there are more options available. “At True, we choose for a way where storing encrypted keys in Git isn’t necessary: Vault of HashiCorp. In a deployment, you’ll refer to a location in a so-called Vault. Based on these references the right secrets will be injected in a container”, Sebastiaan explains.

This offers a great advantage when it comes to security. Even if malicious users get hold of a reference, they can’t do anything with it. It is solely the reference to a secret, while the secret itself is securely stored in a Vault.

“Another advantage: developers don’t need to have access to kubectl or the Kubernetes API, unlike Sealed Secrets. In this way, you can clearly split responsibilities. Especially for a large development team, this is important. You don’t want to give every developer access to the Kubernetes API and encrypting and decrypting secrets.”

Proven solution

Vault is a proven enterprise solution, used a lot worldwide. It uses, among other, strong encryption, to always store secrets securely. “There are also extensive possibilities for configuring policies. With these policies, you determine who’s got access to which secrets. By using audit logging you can see which uses requested or edited which secrets.”

“Another important advantage are the extensive possibilities for authentication within Vault. We can give our customers access to secrets and fetching secrets from Kubernetes. This solution gives a lot of flexibility.”

Layer of isolation

“We run Vault as Software as a Service on our True infrastructure for customers. On top of this runs also a layer of automation, that looks at the namespaces of the Kubernetes cluster. This layer configures policies and determines which namespace can have access to which secrets. You can view this layer as a layer of isolation, that makes sure namespace can’t access each other’s secrets.”

Read More  What Was Observability Again?

In the Kubernetes clusters of True run a so-called mutating webhook. When a deployment happens with a reference to Vault, this webhook injects the desired secrets in the memory of the container.

Next to that True also provides its customer with Keycloak, an open source identity and access management solution. Keycloak gives customers access to the SaaS services True provides, like ArgoCD for GitOps, kubectl and Vault. “In this way, we provide our customer access in a secure way to their Vault. Developer can add their secrets themself. Customers can also use two-factor authentication (2FA)”, Sebastiaan explains.

Using Vault for several years

True uses Vault for several years. First within the organisation self, and for half a year now for our customers as well. “They can store their secrets themselves in Vault.” The feedback of customers is positive. “Vault lets them work easier with secrets, partly because of the intuitive interface, is their feedback. A larger development team can work directly in Vault and doesn’t need to have access to kubectl. That important, because Vault is easier to work with. Also, separation of responsibilities is an important advantage for our customers.”

Onboarding

True onboards customers in Vault. “In onboarding sessions, we show our customer the way in Kubernetes and GitOps. And, in this case, also in Vault.” In these sessions, there is attention for the challenges that arise in Vault, like debugging errors.

Sebastiaan: “We are also curious ourselves to the development of Vault and Kubernetes for interesting new possibilities. We are currently investigating how to integrate a tool like ArgoCD more specifically in Vault. This would further simplify the configuration of deployments.”

 

Guest post originally published on True‘s blog by Sebastiaan Kok
Source CNCF


For enquiries, product placements, sponsorships, and collaborations, connect with us at [email protected]. We'd love to hear from you!

Our humans need coffee too! Your support is highly appreciated, thank you!

aster.cloud

Related Topics
  • CNCF
  • GitOps
  • Kubernetes
You May Also Like
View Post
  • Software Engineering

Embedded Swift Improvements Coming in Swift 6.3

  • November 22, 2025
Visual Studio Code
View Post
  • Software Engineering

Visual Studio 2026 is here: faster, smarter, and a hit with early adopters

  • November 12, 2025
View Post
  • Software Engineering

Introducing Google Gen AI .NET SDK

  • October 24, 2025
View Post
  • Software Engineering

Julia 1.12 Highlights

  • October 13, 2025
View Post
  • Engineering
  • Software Engineering

Development gets better with Age

  • October 9, 2025
View Post
  • Software Engineering

The Growth of the Swift Server Ecosystem

  • September 27, 2025
men with computer website information and chat bubbles vector illustration
View Post
  • Software
  • Software Engineering

What is an ISV (independent software vendor)?

  • August 27, 2025
aster-cloud-erp-bill_of_materials_2
View Post
  • Software
  • Software Engineering

What is an SBOM (software bill of materials)?

  • July 2, 2025

Stay Connected!
LATEST
  • 1
    Expectations vs. Reality: The AI We Thought We’d Have in 10 Years
    • June 19, 2026
  • digital-nomad-freelancer-worker-2151205464 2
    One paperwork problem – Get your Digital Nomad Visa employment documents fast from UK, EU or Singapore
    • June 16, 2026
  • 3
    Samsung Art Store Brings Art Basel to Homes Worldwide With New Curated Collection
    • June 15, 2026
  • 4
    You Do Not Need to Invest in the IPO of SpaceX, Anthropic, and OpenAI
    • June 10, 2026
  • 5
    The consequences of relying on AI for accurate news
    • June 10, 2026
  • 6
    Connecting AI agents with unstructured data using Google Cloud Storage MCP Servers
    • June 10, 2026
  • 7
    WWDC26: Apple unveils next generation of Apple Intelligence, Siri AI, powerful parental controls, and an expansive set of software improvements
    • June 8, 2026
  • 8
    IBM and Google Cloud Announce Strategic Partnership to Scale AI with Human Expertise and AI‑Powered Delivery
    • June 4, 2026
  • Data center 9
    Data Sovereignty in Spain. It’s Not Just About the Law, It’s About Efficiency
    • June 3, 2026
  • 10
    Ink vs Pixels. What you miss versus what you are actually missing.
    • June 1, 2026
about
Hello World!

We are aster.cloud. We’re created by programmers for programmers.

Our site aims to provide guides, programming tips, reviews, and interesting materials for tech people and those who want to learn in general.

We would like to hear from you.

If you have any feedback, enquiries, or sponsorship request, kindly reach out to us at:

[email protected]
Most Popular
  • 1
    Banks race to patch new cyber vulnerabilities, and other cybersecurity news
    • May 25, 2026
  • pope-leo-xiv-cq5dam-1500.844 2
    Pope Leo XIV to Publish First Encyclical on Artificial Intelligence and Human Dignity on 25 May
    • May 22, 2026
  • 3
    Portfolio to Clients, and is Strengthened by Ongoing Project Glasswing Work
    • May 20, 2026
  • reMarkable Paper Pure 4
    Everything The reMarkable Paper Pure Actually Does
    • May 14, 2026
  • 5
    Scaling cloud and AI: Microsoft Azure’s commitment to Europe’s digital future
    • May 11, 2026
  • /
  • Technology
  • Tools
  • About
  • Contact Us

Input your search keywords and press Enter.