azure-service-operator icon indicating copy to clipboard operation
azure-service-operator copied to clipboard

Feature: Allow storing secrets in KeyVault

Open matthchr opened this issue 3 years ago • 6 comments
trafficstars

This was brought up in #1894 and also supported in ASOv1.

This is related to #1415 which was originally for ASOv1 but would apply to ASOv2 as well if it had KV support.

matthchr avatar Apr 19 '22 00:04 matthchr

This is still something that we're tracking. There are various solutions to reading KeyVault secrets into Kubernetes, for example: https://external-secrets.io/ and https://docs.microsoft.com/en-us/azure/aks/csi-secrets-store-driver, but there aren't any inbuilt solutions for exporting secrets (say, storage account keys) to those stores securely.

matthchr avatar Aug 23 '22 17:08 matthchr

Still something worth doing but hasn't been a lot of clamor for it yet

matthchr avatar Feb 28 '23 00:02 matthchr

I'm also interested on this feature, I wanted to provision an Azure KeyVault along with some secrets. Initially I thought that I would find an ASO resource similar to "Microsoft.KeyVault/vaults/secrets"

epierotto avatar Jun 21 '23 10:06 epierotto

I'm also interested on this feature, I wanted to provision an Azure KeyVault along with some secrets. Initially I thought that I would find an ASO resource similar to "Microsoft.KeyVault/vaults/secrets"

We purposefully had chosen not to do secret creation via ASO because it felt like these two goals were in conflict:

  1. KeyVault wants you to store your secrets only there, so they're the most secure.
  2. ASO must store the secret in Kubernetes somehow, in order to know what value to propagate to KeyVault when creating a new secret.

Can you expand more on why you want your secrets in KeyVault and Kubernetes? Can you give some (high level) examples of the scenarios you're looking to solve? Understanding those might help us to revisit the decision mentioned above and consider supporting KV key management through ASO.

matthchr avatar Jun 22 '23 16:06 matthchr

At this point this feels more like a documentation thing as I believe there are projects that achieve this without needing to be as explicit about it as ASOv1 was. We need to close at least the doc gap though if not the actual feature gap.

matthchr avatar Apr 08 '24 23:04 matthchr