Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
From d40139f566baac932b275167eb5b6ae4ac3cc64c Mon Sep 17 00:00:00 2001
From: Yegor Timoshenko <yegortimoshenko@riseup.net>
Date: Fri, 13 Mar 2020 00:54:03 +0300
Subject: [PATCH] azure: pass AZURE_CLIENT_SECRET_FILE to autorest.Authorizer
---
providers/dns/azure/azure.go | 1 +
1 file changed, 1 insertion(+)
diff --git a/providers/dns/azure/azure.go b/providers/dns/azure/azure.go
index 8cd5f21..3517f6b 100644
--- a/providers/dns/azure/azure.go
+++ b/providers/dns/azure/azure.go
@@ -65,6 +65,7 @@ type DNSProvider struct {
// see: https://github.com/Azure/go-autorest/blob/v10.14.0/autorest/azure/auth/auth.go#L38-L42
func NewDNSProvider() (*DNSProvider, error) {
config := NewDefaultConfig()
+ config.ClientSecret = env.GetOrFile("AZURE_CLIENT_SECRET")
config.SubscriptionID = env.GetOrFile("AZURE_SUBSCRIPTION_ID")
config.ResourceGroup = env.GetOrFile("AZURE_RESOURCE_GROUP")
--
2.25.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment