Skip to content

Latest commit

 

History

History
22 lines (21 loc) · 729 Bytes

README.md

File metadata and controls

22 lines (21 loc) · 729 Bytes

Injecting Secrets into Kubernetes Pods via Vault Agent and Read These Secrets in .NET Applications

Example how use Vault Agent for inject secrets in pods before starting, and how a dotnet application can be reading these secrets. Source: https://learn.hashicorp.com/tutorials/vault/kubernetes-sidecar?in=vault/kubernetes

Getting started

First, install make CLI for test this project

Windows
$ choco install make
Linux
$ apt-get install -y make

Run the project (Ensure you have kubectl and helm cli installed)

$ make

Test if the application can read the secret

$ curl "http://<expose-url>:<available-port>/secret"
{"secretValue":"vault"} # <- Expected output