aztfmod / rovergo

The next version of Rover, the command line tool for Azure CAF Landingzones. Developed in Go
MIT License
10 stars 7 forks source link

Implement KeyVault dataplane access #22

Closed benc-uk closed 3 years ago

benc-uk commented 3 years ago

Secrets will need to be fetched, as part of #21

sebastus commented 3 years ago

re: investigate go options, SDK. There are several. I took the most recent.

re: how will we authenticate. We took a decision to authenticate via the az cli. This is how it's done in the sdk: authorizer, err := auth.NewAuthorizerFromCLIWithResource(audience) where audience is the resource url for keyvault (e.g. https://vault.azure.net)

re: ensure authentication works... Well, yes.

re: create wrapper, etc. GetSecret() supports 99% of use cases. FindKeyVault() is used to find the right vault based on tags & subscription.