A Platform Engineering Project | Kubernetes | HashiCorp Vault | Vault Agent Injector
Table of Contents
- Project Overview
- Assignment Objectives
- The Problem: Managing Application Secrets
- Technology Stack
- Architecture
- How the Solution Works
- Project Structure
- Environment and Prerequisites
- Implementation
- Kubernetes Authentication and JWT
- Secret Injection into the Application
- Secret Rotation Validation
- Vault Outage and Recovery Testing
- Vault Audit Logging
- Secrets Management Strategy
- Security Considerations
- Testing and Validation Results
- Limitations and Production Improvements
- Key Lessons Learned
- Conclusion
- Dev.to Article and Sharing
- Author
- License
1. Project Overview
Managing application secrets securely is an important responsibility in modern cloud-native infrastructure.
Applications running in Kubernetes frequently require sensitive information such as:
- Database usernames and passwords.
- API keys.
- Application tokens.
- Service credentials.
- Third-party integration credentials.
A common but risky approach is to place these values directly inside application configuration files, container images, source code, or Kubernetes manifests.
This project demonstrates an alternative approach using HashiCorp Vault and the Vault Agent Injector to manage and deliver secrets to a Kubernetes application.
The implementation uses a local Minikube cluster. Vault stores the application credentials, Kubernetes authentication establishes the application's identity, and the Vault Agent Injector makes the requested secret available inside the application pod as a file.
The project also validates secret updates, behavior during a Vault outage, recovery, and audit logging.
The goal is to demonstrate how a Platform Engineer can introduce a centralized secrets-management workflow into a Kubernetes environment.
2. Assignment Objectives
This practical Platform Engineering assignment focuses on implementing and validating a Vault-based secrets-management solution for Kubernetes.
The objectives are to:
- Deploy HashiCorp Vault into a Kubernetes environment using Helm.
- Configure Vault for a local development environment.
- Enable KV v2 secret storage.
- Configure Kubernetes authentication.
- Create a least-privilege Vault policy.
- Bind a Vault role to a specific Kubernetes ServiceAccount and namespace.
- Deploy an application using the Vault Agent Injector.
- Inject secrets into the application pod without placing credentials in its Deployment manifest.
- Test secret rotation and file refresh.
- Test application behavior during a Vault outage and subsequent recovery.
- Enable and inspect Vault audit logging.
- Evaluate Vault against other Kubernetes secrets-management approaches.
Scope: This is a local Kubernetes lab. It is not a production Vault deployment.
3. The Problem: Managing Application Secrets
Kubernetes provides native Secret objects, but teams still need to consider how secrets are created, stored, accessed, rotated, and audited.
For example, consider an application that connects to a database.
It needs a username and password to establish a connection. If these credentials are embedded in a Deployment manifest or committed to Git, anyone with access to the repository may potentially obtain them.
Even when Kubernetes Secrets are used, additional security controls are necessary. Kubernetes Secret values are base64-encoded, not automatically encrypted simply because they are stored as Secret objects.
A centralized secrets manager can provide additional capabilities, including access policies, authentication, secret versioning, audit records, and rotation workflows.
This project uses HashiCorp Vault to demonstrate that approach.
4. Technology Stack
| Technology | Purpose |
|---|---|
| Ubuntu 24.04 / WSL | Local development environment |
| Docker | Container runtime |
| Minikube | Local Kubernetes cluster |
| Kubernetes | Container orchestration |
| Helm | Vault installation and configuration |
| HashiCorp Vault | Centralized secrets management |
| Vault KV v2 | Versioned key-value secret storage |
| Vault Kubernetes Auth | Kubernetes workload authentication |
| Vault Agent Injector | Automatic secret injection into pods |
| BusyBox | Lightweight demonstration application |
| Bash | Configuration automation |
| kubectl | Kubernetes administration |
| jq | JSON processing |
5. Architecture
The architecture uses Kubernetes ServiceAccount authentication to establish workload identity. Vault then authorizes access through a role and policy.
flowchart TD A[Platform Engineer] --> B[Minikube Cluster] B --> C[Vault Server] B --> D[Vault Agent Injector] B --> E[Application Pod] C --> F[KV v2 Secret Storage] C --> G[Kubernetes Auth Method] C --> H[Vault Policies and Roles] C --> I[Audit Device] E --> J[app-sa ServiceAccount] J --> K[JWT ServiceAccount Token] K --> G G --> H H --> F D --> E E --> L[Vault Agent Sidecar] L --> M[/vault/secrets/database.txt] M --> N[Application Container] Architecture components
Vault Server
Stores application secrets, manages authentication, evaluates policies, and records audit events.
Vault Agent Injector
A Kubernetes admission webhook that modifies eligible pods to include Vault Agent containers and the required secret volume configuration.
Kubernetes ServiceAccount
Provides the workload identity used by the application pod.
Kubernetes Authentication
Allows Vault to verify the Kubernetes ServiceAccount identity and issue a Vault token with the permissions associated with the configured role.
Vault Policy
Restricts the application's access to the intended secret path.
Vault Agent Sidecar
Authenticates to Vault, retrieves the secret, and renders it into a file accessible to the application container.
6. How the Solution Works
The workflow is:
- Vault is deployed inside the Kubernetes cluster.
- KV v2 is used to store the application's database credentials.
- Kubernetes authentication is enabled in Vault.
- A Vault policy grants read access to the application's secret path.
- A Vault role binds that policy to
app-sain thedefaultnamespace. - The application pod is created with the
app-saServiceAccount. - The Vault Agent Injector detects the pod annotations and injects the Vault Agent containers.
- The Vault Agent uses the pod's Kubernetes identity to authenticate with Vault.
- Vault evaluates the role and policy.
- The agent retrieves the authorized secret and renders it into
/vault/secrets/database.txt. - The application container can read the rendered file.
The application does not need the Vault root token, and its Deployment manifest does not contain the database password.
7. Project Structure
vault-kubernetes-secrets-management/ │ ├── README.md ├── LICENSE ├── .gitignore │ ├── app-deployment.yaml │ └── vault-setup/ ├── vault-values.yaml └── vault-config.sh The project documentation is consolidated in this README so that the implementation, security strategy, testing evidence, and learning outcomes are maintained in one place.
8. Environment and Prerequisites
The implementation was performed using:
| Component | Environment |
|---|---|
| Operating system | Ubuntu 24.04.5 LTS on WSL |
| Kubernetes | Minikube |
| Kubernetes version | v1.35.1 |
| Minikube | v1.38.1 |
| Docker CLI | v29.1.3 |
| Helm | v4.3.2 |
| kubectl | v1.36.3 |
| Vault Helm chart | v0.35.0 |
| Vault application | v2.2.2 |
Required command-line tools:
- Docker
- Minikube
- kubectl
- Helm
- Vault CLI
- curl
- jq
Check that the cluster is available:
minikube status kubectl get nodes kubectl get pods -A Important: This Minikube cluster already contained other workloads. The project was deployed into a dedicated vault namespace to avoid unnecessarily changing unrelated workloads.
9. Implementation
9.1 Create the Vault namespace
kubectl create namespace vault 9.2 Configure Vault with Helm
The configuration is maintained in:
vault-setup/vault-values.yaml The configuration enables:
- Vault server.
- Vault Agent Injector.
- Vault UI.
- Development mode.
- Resource requests and limits for the Vault server and injector.
Install Vault using the HashiCorp Helm repository:
helm repo add hashicorp https://helm.releases.hashicorp.com helm repo update Validate the chart configuration:
helm lint hashicorp/vault -f vault-setup/vault-values.yaml Install Vault:
helm install vault hashicorp/vault \ --namespace vault \ --version 0.35.0 \ -f vault-setup/vault-values.yaml Check the deployment:
kubectl get pods -n vault kubectl get services -n vault The Vault server and injector should become ready.
9.3 Create the application ServiceAccount
kubectl create serviceaccount app-sa \ --namespace default \ --dry-run=client -o yaml | kubectl apply -f - This ServiceAccount is the identity assigned to the demonstration application.
9.4 Configure Vault
The automation script is:
vault-setup/vault-config.sh It performs the following operations:
- Waits for the Vault pod to become ready.
- Opens a local port-forward to the Vault API.
- Verifies that KV v2 is mounted at
secret/. - Stores demonstration database credentials.
- Creates the application read policy.
- Enables Kubernetes authentication if it is not already enabled.
- Configures Kubernetes authentication using the Vault pod's ServiceAccount token and Kubernetes CA certificate.
- Creates the
approle. - Binds the role to
app-sain thedefaultnamespace.
Run the script:
chmod +x vault-setup/vault-config.sh ./vault-setup/vault-config.sh The demonstration credentials in this lab are dummy values. They must not be reused in a real environment.
9.5 Verify Vault configuration
Check the secret engine:
kubectl exec -n vault vault-0 -- \ sh -c 'VAULT_ADDR=http://127.0.0.1:8200 VAULT_TOKEN=root vault secrets list' Check the policy:
kubectl exec -n vault vault-0 -- \ sh -c 'VAULT_ADDR=http://127.0.0.1:8200 VAULT_TOKEN=root vault policy read app-read-policy' The application policy is:
path "secret/data/app/*" { capabilities = ["read"] } This grants read access to the specified KV v2 data path. It does not grant the application permission to write or delete secrets.
10. Kubernetes Authentication and JWT
Kubernetes authentication is an important part of this implementation.
The application does not authenticate using a hardcoded Vault token.
Instead, the application pod runs with the app-sa ServiceAccount. Kubernetes provides a ServiceAccount JWT to the workload, and the Vault Agent uses that identity to authenticate against Vault.
The authentication flow is:
- Kubernetes assigns the application pod its ServiceAccount identity.
- The pod receives a ServiceAccount JWT.
- Vault Agent submits the JWT to Vault's Kubernetes authentication endpoint.
- Vault validates the identity through the Kubernetes authentication configuration.
- Vault checks whether the ServiceAccount and namespace match the configured role.
- Vault issues a token associated with the role's policy.
- The agent uses that token to read the permitted secret.
The configured role is:
Role: app ServiceAccount: app-sa Namespace: default Policy: app-read-policy Token TTL: 1 hour Why JWT authentication?
JWT-based workload identity avoids distributing a permanent Vault token inside the application manifest.
It also allows Vault to authorize workloads based on their Kubernetes identity.
Security note: The lab role does not explicitly configure a JWT audience. Audience restriction is a production-hardening improvement that should be implemented using the actual audience configured on the workload's projected ServiceAccount token.
11. Secret Injection into the Application
The application Deployment is maintained in:
app-deployment.yaml The Vault Agent Injector is enabled using pod annotations.
The important annotations are:
vault.hashicorp.com/agent-inject: "true" vault.hashicorp.com/role: "app" vault.hashicorp.com/agent-inject-secret-database.txt: "secret/data/app/database" The template annotation specifies how the retrieved values are written:
vault.hashicorp.com/agent-inject-template-database.txt: | {{- with secret "secret/data/app/database" -}} USERNAME={{ .Data.data.username }} PASSWORD={{ .Data.data.password }} {{- end }} The application uses:
serviceAccountName: app-sa The injected file is:
/vault/secrets/database.txt Apply the Deployment:
kubectl apply --dry-run=server -f app-deployment.yaml kubectl apply -f app-deployment.yaml Wait for the rollout:
kubectl rollout status deployment/vault-demo-app Check the pod:
kubectl get pods -l app=vault-demo-app The pod should contain:
- The application container.
- The Vault Agent sidecar.
- The Vault Agent init container, which completes initialization.
Check the injected file without printing its contents:
kubectl exec deployment/vault-demo-app -c app -- \ sh -c 'test -s /vault/secrets/database.txt && echo "Secret file exists"' Check that both expected keys are present without revealing their values:
kubectl exec deployment/vault-demo-app -c app -- sh -c ' grep -q "^USERNAME=" /vault/secrets/database.txt && grep -q "^PASSWORD=" /vault/secrets/database.txt && echo "Both expected keys are present" ' This validates that the application container can access the rendered secret file.
12. Secret Rotation Validation
Secret rotation is important because credentials should not remain unchanged indefinitely.
For this test, the password stored in Vault was updated while the application pod remained running.
The test used a new dummy password:
kubectl exec -n vault vault-0 -- sh -c ' export VAULT_ADDR=http://127.0.0.1:8200 export VAULT_TOKEN=root vault kv put secret/app/database \ username="appuser" \ password="RotatedDatabasePassword456!" ' The test then allowed time for the Vault Agent to refresh the rendered file.
The result was verified by checking the file's password value without displaying it:
kubectl exec deployment/vault-demo-app -c app -- sh -c ' grep -q "^PASSWORD=RotatedDatabasePassword456!" \ /vault/secrets/database.txt && echo "PASS: rotated password is present" ' The pod UID was checked before and after the rotation.
Observed result:
- The password in the rendered file changed.
- The application pod UID remained unchanged.
- The application pod remained running.
- No application-container restart was required for the file update.
Important distinction: file refresh versus application reload
This test demonstrated that Vault Agent refreshed the secret file.
It did not demonstrate that a real application automatically reloaded a database connection or replaced an existing connection pool.
The demonstration application checks that the file exists. A production application must be designed to detect and consume updated credentials. Depending on the application, this could involve:
- Periodically rereading the secret file.
- Watching the file for changes.
- Reinitializing the database connection pool.
- Gracefully reloading application configuration.
Secret rotation is only fully useful when the consuming application can safely adopt the new credentials.
13. Vault Outage and Recovery Testing
A secrets-management solution should also be evaluated during service interruptions.
For this test, the Vault StatefulSet was scaled down temporarily.
Before the test, the application and Vault were running.
Scale Vault down:
kubectl scale statefulset vault \ --namespace vault \ --replicas=0 Check the application:
kubectl get pods -l app=vault-demo-app Check that the already-rendered file remains available:
kubectl exec deployment/vault-demo-app -c app -- \ sh -c 'test -s /vault/secrets/database.txt && echo "Existing secret file remains available"' Observed behavior
During the outage:
- The existing application pod remained running.
- The already-rendered secret file remained present in the pod's memory-backed shared volume.
- The Vault Agent could not authenticate or retrieve updated secrets while Vault was unavailable.
Recovery
Scale Vault back up:
kubectl scale statefulset vault \ --namespace vault \ --replicas=1 Wait for Vault:
kubectl rollout status statefulset/vault -n vault kubectl get pods -n vault Important development-mode limitation: This Vault installation uses development mode and in-memory storage. When the Vault server pod was recreated, its configuration and stored secrets were lost.
The configuration script therefore had to be run again:
./vault-setup/vault-config.sh After Vault configuration was restored, the Vault Agent successfully authenticated again and rendered the secret.
The agent logged a temporary authentication failure while Vault's configuration was unavailable, followed by successful authentication and rendering after recovery.
The application container did not restart during this recovery test. The Vault Agent sidecar had one restart.
What this test demonstrates
An application may continue using a previously rendered secret during a temporary Vault outage, provided that the application pod and rendered file remain available.
However, the agent cannot refresh credentials or authenticate again while Vault is unavailable.
A newly created pod may also encounter initialization or authentication problems if Vault is unavailable. That scenario was not separately validated in this lab.
A production deployment needs persistent Vault storage, appropriate availability, backup and recovery procedures, and a tested disaster-recovery plan.
14. Vault Audit Logging
Audit logging provides visibility into requests made to Vault.
For this lab, a file audit device was enabled:
kubectl exec -n vault vault-0 -- sh -c ' export VAULT_ADDR=http://127.0.0.1:8200 export VAULT_TOKEN=root vault audit enable file file_path=/tmp/vault-audit.log ' Verify the audit device:
kubectl exec -n vault vault-0 -- sh -c ' export VAULT_ADDR=http://127.0.0.1:8200 export VAULT_TOKEN=root vault audit list ' Inspect audit events:
kubectl exec -n vault vault-0 -- \ sh -c 'tail -n 10 /tmp/vault-audit.log' What was observed?
The audit events included information associated with the application workload:
- Authentication identity associated with
app-sa. - Kubernetes namespace.
- Vault role.
- Policy context.
- Read operation.
- Secret API path.
- Client address.
- Vault Agent templating user-agent.
The audit response contained HMAC-protected representations of secret values rather than simply recording the plaintext password.
This is useful because audit records can provide accountability without routinely exposing secret values.
Audit logging limitation
The audit file was stored at:
/tmp/vault-audit.log inside the Vault container.
This is a temporary lab location, not durable production storage. A Vault pod restart can remove the file and the audit configuration in this development-mode setup.
For production, audit records should be sent to protected, persistent log storage or a centralized logging platform. Access, retention, integrity, and monitoring of audit logs should also be managed.
Do not commit raw audit logs, tokens, or secret values to Git.
15. Secrets Management Strategy
This section explains why Vault was selected and how it compares with other Kubernetes secrets-management options.
15.1 Kubernetes Secrets
Kubernetes Secrets are native Kubernetes resources used to store sensitive configuration data.
Advantages:
- Built into Kubernetes.
- Easy to integrate with workloads.
- Supported by Kubernetes RBAC.
- Suitable for many straightforward application configuration needs.
Considerations:
- Secret values are base64-encoded; base64 is not encryption.
- Encryption at rest must be configured and managed separately.
- Access must be carefully controlled through RBAC.
- Rotation and external secret synchronization need additional implementation.
- Audit and lifecycle management depend on the broader Kubernetes setup.
Kubernetes Secrets are useful, but they should not be treated as automatically secure simply because the resource is named Secret.
15.2 Sealed Secrets
Sealed Secrets provides a way to encrypt Kubernetes Secret manifests so they can be stored in a Git repository.
A controller inside the cluster decrypts the sealed resource and creates the corresponding Kubernetes Secret.
Advantages:
- Supports GitOps workflows.
- Encrypted secret manifests can be committed to Git.
- Integrates with Kubernetes Secret resources.
- Useful when teams want to manage encrypted configuration alongside application manifests.
Considerations:
- Depends on the controller and its encryption keys.
- Key backup and recovery are important.
- Decrypted values ultimately become Kubernetes Secrets.
- It does not provide the same centralized secret lifecycle and dynamic credential capabilities as Vault.
15.3 External Secrets Operator
External Secrets Operator integrates Kubernetes with external secret providers.
It retrieves secrets from an external backend and synchronizes them into Kubernetes Secret resources.
Advantages:
- Integrates external secret stores with Kubernetes.
- Supports automated synchronization.
- Fits well into declarative Kubernetes workflows.
- Reduces the need to manually copy secret values into manifests.
Considerations:
- Requires an external provider and appropriate authentication.
- Provider access and synchronization permissions must be managed.
- The synchronized result is generally a Kubernetes Secret.
- Secret refresh behavior depends on the operator and its configuration.
15.4 HashiCorp Vault
Vault is a centralized secrets-management platform.
Advantages:
- Centralized secret storage.
- Fine-grained access policies.
- Kubernetes workload authentication.
- Secret versioning with KV v2.
- Audit logging.
- Support for dynamic secrets and lease-based credentials with suitable secret engines.
- Integration with Vault Agent and Kubernetes.
Considerations:
- Requires additional operational effort.
- Needs secure authentication and policy design.
- Availability and storage must be planned.
- Backup, recovery, upgrades, and monitoring must be maintained.
- A production deployment should not rely on development mode or an in-memory backend.
15.5 Comparison
| Capability | Kubernetes Secrets | Sealed Secrets | External Secrets Operator | HashiCorp Vault |
|---|---|---|---|---|
| Native Kubernetes integration | Yes | Yes | Yes | Through integration |
| Git-friendly secret workflow | Requires care | Yes, encrypted manifests | Yes, declarative references | Policies and configuration can be managed separately |
| Centralized secret store | No, Kubernetes API | No, encrypted manifests and controller | Uses external provider | Yes |
| Secret versioning | Not a full secret versioning system | Depends on workflow | Depends on provider | KV v2 supports versions |
| Workload authentication | Kubernetes RBAC and workload access | Controller-based decryption | Provider-specific authentication | Kubernetes authentication |
| Audit capabilities | Kubernetes audit configuration | Controller and Kubernetes audit | Operator/provider dependent | Vault audit devices |
| Dynamic credentials | Not built in | Not built in | Depends on provider | Supported by suitable secret engines |
| Operational complexity | Lower | Moderate | Moderate | Higher |
15.6 Why Vault for this project?
Vault was selected because the assignment focuses on centralized secrets management, Kubernetes workload authentication, policy-based access, secret injection, rotation, and audit logging.
The project demonstrates these capabilities in a local Kubernetes environment.
The best solution for a real organization depends on its infrastructure, security requirements, team capacity, existing secret providers, and operational maturity.
There is no single secrets-management approach that is automatically best for every Kubernetes environment.
16. Security Considerations
The following security practices are important when extending this lab into a production environment.
Do not use development mode in production
The current configuration uses:
dev: enabled: true devRootToken: "root" This is deliberately for local testing.
A production deployment needs a suitable storage backend, secure initialization and unsealing procedures, protected credentials, and an availability design.
Protect Vault credentials
Do not commit:
- Vault root tokens.
- Application passwords.
- Kubernetes JWTs.
- Unredacted audit logs.
- Private keys.
- Production environment files.
Apply least privilege
The application policy should only permit the operations and secret paths required by the workload.
Avoid granting application workloads Vault administrative privileges.
Secure authentication
Production authentication should use appropriately scoped ServiceAccount tokens and an explicitly configured audience where applicable.
Enable TLS
The local configuration disables Vault TLS:
tlsDisable: true Production deployments should use TLS for Vault API communication and validate certificates.
Protect audit logs
Audit logs can contain sensitive request metadata. Store them securely, control access, and define retention requirements.
Plan for availability
Vault availability affects authentication and secret refresh. Plan for persistent storage, backups, monitoring, and recovery.
17. Testing and Validation Results
The following results were observed during the local implementation.
| Test | Expected behavior | Observed result |
|---|---|---|
| Vault Helm deployment | Vault and injector become ready | Passed |
| KV v2 configuration | Secret engine available | Passed |
| Kubernetes authentication | Application identity authenticates | Passed |
| Vault policy | Application receives read permissions | Passed |
| Server-side manifest validation | Deployment manifest is accepted | Passed |
| Vault Agent injection | Agent containers and secret volume appear | Passed |
| Secret file validation | Expected keys are rendered | Passed |
| Secret rotation | Updated password appears in rendered file | Passed |
| Pod identity during rotation | Existing pod remains in place | Passed |
| Vault outage | Existing rendered file remains available | Passed |
| Vault recovery | Agent authenticates and renders again after configuration restoration | Passed |
| Audit logging | Vault records application secret access | Passed |
Important interpretation
The rotation test validated secret-file refresh, not application-level database reconnection.
The outage test validated an existing pod with an already-rendered secret. It did not validate the creation of a new application pod while Vault was unavailable.
The development-mode Vault deployment lost its configuration and secrets after its server pod was recreated. This behavior is a known limitation of the chosen lab configuration.
18. Limitations and Production Improvements
This project is a functional local demonstration, not a production-ready Vault architecture.
The following improvements would be appropriate for a production implementation:
- Replace Vault development mode with a production server configuration.
- Use persistent storage and a tested backup and restore process.
- Design Vault for the required availability and recovery objectives.
- Enable TLS and certificate validation.
- Use an appropriately restricted Vault authentication role and explicit JWT audience.
- Avoid using a root token in routine administration.
- Send audit events to durable centralized storage.
- Configure monitoring and alerting for Vault availability and authentication failures.
- Implement application-level secret reload and database connection-pool refresh.
- Define secret rotation procedures, ownership, and rollback plans.
- Restrict Kubernetes RBAC and namespace access.
- Review resource requests and limits against actual production workload requirements.
These are recommendations for future hardening, not features claimed to have been implemented in this local lab.
19. Key Lessons Learned
This project provided practical experience with several important Platform Engineering concepts:
- Deploying infrastructure components through Helm.
- Integrating Vault with Kubernetes.
- Using Kubernetes ServiceAccounts as workload identities.
- Understanding JWT-based authentication.
- Applying least-privilege Vault policies.
- Using the Vault Agent Injector to deliver secrets.
- Understanding KV v2 secret paths and versioning.
- Validating secret-file refresh without restarting an application pod.
- Distinguishing secret delivery from application-level secret reload.
- Testing service interruption and recovery.
- Enabling and inspecting audit logging.
- Understanding the operational limitations of development-mode infrastructure.
A key lesson is that secrets management is not only about storing passwords securely. It also involves identity, authorization, delivery, rotation, availability, observability, and recovery.
20. Conclusion
This project demonstrates how HashiCorp Vault can be integrated with Kubernetes to provide a centralized secrets-management workflow.
Using Kubernetes authentication, a dedicated ServiceAccount, a Vault role, and a least-privilege policy, the demonstration application retrieves its database credentials through the Vault Agent Injector.
The implementation also validates secret-file refresh, examines application behavior during a Vault outage, restores Vault configuration after a development-mode restart, and inspects audit events.
Although the implementation runs locally on Minikube, the concepts are relevant to cloud-native platform engineering and can inform the design of more secure Kubernetes workloads.
The most important takeaway is that secure secrets management requires more than storing credentials. It requires a complete approach to workload identity, access control, delivery, rotation, auditing, and operational recovery.
21. Dev.to Article and Sharing
This README is structured so that it can also serve as the technical source for a Dev.to article.
Suggested Dev.to title:
Managing Kubernetes Application Secrets with HashiCorp Vault: A Practical Platform Engineering Project
Suggested description:
A hands-on Platform Engineering project demonstrating how to integrate HashiCorp Vault with Kubernetes using Kubernetes authentication, Vault Agent Injector, KV v2, secret rotation, outage recovery, and audit logging.
Suggested tags:
#platformengineering #kubernetes #hashicorpvault #devops #cloudnative #secretsmanagement #docker #minikube #infrastructureascode #cybersecurity
Suggested LinkedIn introduction:
Secrets management is one of those platform engineering responsibilities that can easily be underestimated.
For this project, I explored how to integrate HashiCorp Vault with Kubernetes to deliver application secrets without placing credentials directly inside application Deployment manifests.
I implemented Kubernetes authentication, least-privilege policies, Vault Agent injection, secret rotation validation, outage and recovery testing, and audit logging in a local Minikube environment.
One important lesson from the exercise: refreshing a secret file is not the same as making an application reload its active database connection. Understanding that distinction is essential when designing reliable secret-rotation workflows.
This project strengthened my practical understanding of workload identity, secure configuration delivery, and operational resilience in Kubernetes.
Project documentation and implementation: See this repository.
PlatformEngineering #Kubernetes #HashiCorpVault #DevOps #CloudWithHorla #CloudNative #SecretsManagement #Infrastructure
22. Author
This project is part of my practical learning journey in cloud infrastructure, Kubernetes, DevOps, and Platform Engineering.
I share practical implementation notes, troubleshooting experiences, and cloud-native engineering projects to document what I learn and build.
- GitHub: [Add your repository URL]
- Portfolio: https://jahmeeu-cloud.github.io/portfolio-project/
- Dev.to: https://dev.to/jamiu_cloud/
- Docker Hub: https://hub.docker.com/u/horlacloud
Source:https://dev.to/jamiu_cloud/vault-based-secrets-management-for-kubernetes-14jd







