From a3b9c764d376a4fd034efd85824e478a3e90ccab Mon Sep 17 00:00:00 2001 From: Selene Date: Tue, 9 Nov 2021 18:33:54 +0100 Subject: [PATCH] Encryption: Add Azure key vault dependency (#41353) * Add Azure key vault dependency * Fix go.mod Co-authored-by: Leonard Gram --- go.mod | 10 ++++++++++ go.sum | 1 + pkg/extensions/main.go | 2 ++ 3 files changed, 13 insertions(+) diff --git a/go.mod b/go.mod index 0711051bcfb..b7fe5194552 100644 --- a/go.mod +++ b/go.mod @@ -16,8 +16,10 @@ replace github.com/russellhaering/goxmldsig@v1.1.0 => github.com/russellhaering/ require ( cloud.google.com/go/storage v1.14.0 cuelang.org/go v0.4.0 + github.com/Azure/azure-sdk-for-go v57.1.0+incompatible github.com/Azure/azure-sdk-for-go/sdk/azcore v0.19.0 github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.10.0 + github.com/Azure/go-autorest/autorest v0.11.20 github.com/BurntSushi/toml v0.3.1 github.com/Masterminds/semver v1.5.0 github.com/VividCortex/mysqlerr v0.0.0-20170204212430-6c6b55f8796f @@ -130,6 +132,13 @@ require ( require ( cloud.google.com/go v0.94.1 // indirect github.com/Azure/azure-sdk-for-go/sdk/internal v0.7.0 // indirect + github.com/Azure/go-autorest v14.2.0+incompatible // indirect + github.com/Azure/go-autorest/autorest/adal v0.9.15 // indirect + github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect + github.com/Azure/go-autorest/autorest/to v0.4.0 // indirect + github.com/Azure/go-autorest/autorest/validation v0.3.1 // indirect + github.com/Azure/go-autorest/logger v0.2.1 // indirect + github.com/Azure/go-autorest/tracing v0.6.0 // indirect github.com/FZambia/eagle v0.0.1 // indirect github.com/FZambia/sentinel v1.1.0 // indirect github.com/PuerkitoBio/purell v1.1.1 // indirect @@ -169,6 +178,7 @@ require ( github.com/go-openapi/validate v0.20.2 // indirect github.com/gogo/googleapis v1.4.1 // indirect github.com/gogo/status v1.1.0 // indirect + github.com/golang-jwt/jwt/v4 v4.0.0 // indirect github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe // indirect github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect diff --git a/go.sum b/go.sum index 8390cb38e36..11f569743cf 100644 --- a/go.sum +++ b/go.sum @@ -148,6 +148,7 @@ github.com/Azure/go-autorest/autorest/mocks v0.1.0/go.mod h1:OTyCOPRA2IgIlWxVYxB github.com/Azure/go-autorest/autorest/mocks v0.2.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= github.com/Azure/go-autorest/autorest/mocks v0.3.0/go.mod h1:a8FDP3DYzQ4RYfVAxAN3SVSiiO77gL2j2ronKKP0syM= github.com/Azure/go-autorest/autorest/mocks v0.4.0/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= +github.com/Azure/go-autorest/autorest/mocks v0.4.1 h1:K0laFcLE6VLTOwNgSxaGbUcLPuGXlNkbVvq4cW4nIHk= github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= github.com/Azure/go-autorest/autorest/to v0.3.0/go.mod h1:MgwOyqaIuKdG4TL/2ywSsIWKAfJfgHDo8ObuUk3t5sA= github.com/Azure/go-autorest/autorest/to v0.3.1-0.20191028180845-3492b2aff503/go.mod h1:MgwOyqaIuKdG4TL/2ywSsIWKAfJfgHDo8ObuUk3t5sA= diff --git a/pkg/extensions/main.go b/pkg/extensions/main.go index 8b6410ededb..d8bb2bc41e8 100644 --- a/pkg/extensions/main.go +++ b/pkg/extensions/main.go @@ -4,6 +4,8 @@ import ( // Upgrade ldapsync from cron to cron.v3 and // remove the cron (v1) dependency + _ "github.com/Azure/azure-sdk-for-go/services/keyvault/v7.1/keyvault" + _ "github.com/Azure/go-autorest/autorest" _ "github.com/beevik/etree" _ "github.com/cortexproject/cortex/pkg/util" _ "github.com/crewjam/saml"