0

I followed this setup guide on how to Integrate Azure Key Vault with Kubernetes.

The setup was successful, my problem now is how to use those secrets that are mounted in AKS?

The following code in my .net application doesn't seem to work. It doesn't get the secrets and it's returning an exception.

Configuration["ConnectionString"]

I do see the ConnectionString when running kubectl exec -it <pod-name> ls /mnt/secrets and can also view the content.

Rod Talingting
  • 943
  • 1
  • 15
  • 25

1 Answers1

0

After almost 1 week of figuring this issue out, at last, it's working now. The error was caused by not supplying the clientId and clientSecret because I forgot to add it when I pushed my changes.

Using Configuration["ConnectionString"] should work, it will get the key vault secret that's mounted in kubernetes.

Rod Talingting
  • 943
  • 1
  • 15
  • 25