Urgent.News

What's breaking now, across hundreds of outlets.

Tech

๐Ÿ” Your Kubernetes Secrets Might Not Be Secret! 7 Security Mistakes DevOps Engineers Should Avoid

You deployed your application successfully. Your Pods are running. Your CI/CD pipeline is green. But there's one problem. Your database password is sitting inside a GitHub repository. Your Kubernetes Secret is stored in plain YAML. And your application credentials might be accessible to people who should never see them. ๐Ÿ’€ Welcome to one of the most overlooked areas of Kubernetes: Secretsโ€ฆ

1. A Kubernetes Secret is an object used to store sensitive data like passwords, API tokens, and TLS certificates. For instance, an application might need database credentials, which could be stored as a Secret.

2. One common mistake is believing that Base64 encoding provides security. While Base64 encoding makes the data look encrypted, it's simply a way to convert binary data into a text format. Anyone can decode Base64-encoded data, so it's not a form of encryption.

3. Committing secrets to a public GitHub repository is another serious mistake. If a repository becomes public, anyone can access the secrets. Even if you delete the file later, it may still be in Git history, forks, or cached copies. Instead, use secure methods like HashiCorp Vault, AWS Secrets Manager, or Sealed Secrets to manage and inject credentials during deployment.

4. Not limiting access to secrets is another issue. With ten developers on a Kubernetes cluster, not everyone should have access to every secret. Kubernetes provides Role-Based Access Control (RBAC), which allows you to restrict permissions using Roles and RoleBindings. For example, a Role can be created to grant a user permission to read Pods in a specific namespace.

5. Ignoring encryption at rest is also a problem. By default, Kubernetes Secret data isn't necessarily encrypted in the cluster's storage. If someone gains unauthorized access to the underlying datastore or backups, they could access the secrets. Kubernetes supports encryption at rest using an EncryptionConfiguration, but this needs to be properly configured with a secure encryption key, appropriate API server settings, key management, backup planning, and migration of existing Secret data.

6. Finally, passing passwords through environment variables can be risky. While convenient, environment variables can be exposed through various means like application debugging output, process inspection, crash reports, logs, or diagnostic tooling. Alternatively, consider mounting Secrets as files, but ensure the storage is properly secured.

Rewritten by urgent.news; may contain errors โ€” check the original.

Source: dev.to

Read the original at dev.to โ†’

Report a problem with this story

More in Tech

Best Coolify alternatives for a few apps on one VPS in 2026

If you run three to fifteen apps on one VPS in 2026 and want an alternative to Coolify, Dokploy is the closest web-panel swap (free self-hosted, GitHub preview deployments, $4.50/month hosted option)โ€ฆ

  • Dokploy is a web-panel alternative with TypeScript stack, PostgreSQL, and Traefik
  • Tugport is a lightweight Rust binary alternative requiring minimal resources
  • Easypanel offers a polished UI but requires proprietary license for extensive use

How to Check Energy and Bandwidth of a TRON Address on TronScan

Disclosure: I work on UsdtPull, a TRON energy rental service. This article was first published on the UsdtPull blog . To check the energy of a TRON address, open tronscan.org, paste the address intoโ€ฆ

  • Open tronscan.org and enter TRON address in search bar
  • "Energy" and "Bandwidth" rows show resource limits and allowances
  • Compare available energy with 64,285 needed for USDT transfer

More from Wednesday 25 November โ†’