From b243f9df5bb4d8058502e46c0866e04a622e075f Mon Sep 17 00:00:00 2001 From: Somtochi Onyekwere Date: Fri, 31 Mar 2023 15:37:20 +0100 Subject: [PATCH] update docs Signed-off-by: Somtochi Onyekwere --- internal/sops/azkv/keysource.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/sops/azkv/keysource.go b/internal/sops/azkv/keysource.go index de562281..bcc44a83 100644 --- a/internal/sops/azkv/keysource.go +++ b/internal/sops/azkv/keysource.go @@ -201,6 +201,7 @@ func (key *MasterKey) getTokenCredential() (azcore.TokenCredential, error) { // Function copied from parts of `NewDefaultAzureCredential` in // https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fazidentity%2Fv1.3.0-beta.4/sdk/azidentity/default_azure_credential.go +// This is because that we want to attempt to authentication using the azure cli. // getDefaultAzureCredential attempts to return an azcore.TokenCredential based on the following order. // - azidentity.NewEnvironmentCredential if environment variables AZURE_CLIENT_ID, AZURE_CLIENT_ID is set with // either one of the following: (AZURE_CLIENT_SECRET) or (AZURE_CLIENT_CERTIFICATE_PATH and AZURE_CLIENT_CERTIFICATE_PATH) or