Skip to content

Commit

Permalink
Backend/azure/update to latest sdks (#36258)
Browse files Browse the repository at this point in the history
* Tom's state

* Pass `go mod tidy` by updating giovanni storage api version from 2018-11-09 to 2023-11-03

* Doc: Add the newly added fields

* Behavior code implemented and locally tested (sas/access key/aad/NA)

* Test rework

* Allow more auth methods to deploy resources

* Fix

* Fix2

* Fix3

* Fix a bug that use_aad_auth is not checked

* Mention test runner has to ensure big enough parallelism

* test client specify github oidc request token/url

* enable github oidc

* Fix

* remove sender.go

* remove sender.go

* Update helper/sdk to latest version

* Replace giovanni from tombuildsstuff org to jackofallops

* Update per review comments

* go mod tidy for kubernetes

* changelog

* Add license header

* Update release document

* Move the changelog location
  • Loading branch information
magodo authored Feb 4, 2025
1 parent 1c4db32 commit b47f0d3
Show file tree
Hide file tree
Showing 19 changed files with 1,543 additions and 1,027 deletions.
19 changes: 19 additions & 0 deletions .changes/backported/ENHANCEMENTS-20250130-105700.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
kind: ENHANCEMENTS
body: |
Updates the azure backend authentication to match the terraform-provider-azurermprovider authentication, in several ways:
- github.com/hashicorp/go-azure-helpers: v0.43.0 -> v0.71.0
- github.com/hashicorp/go-azure-sdk/[resource-manager/sdk]: v0.20241212.1154051. This replaces the deprecated Azure SDK used before
- github.com/jackofallops/giovanni: v0.15.1 -> v0.27.0. Meanwhile, updating the azure storage API version from 2018-11-09 to 2023-11-03
Following new properties are added for the azure backend configuration:
- use_cli
- use_aks_workload_identity
- client_id_file_path
- client_certificate
- client_id_file_path
- client_secret_file_path
time: 2025-01-30T10:57:00.080984883+11:00
custom:
Issue: "36258"
27 changes: 15 additions & 12 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ require (
golang.org/x/tools v0.25.0
golang.org/x/tools/cmd/cover v0.1.0-deprecated
google.golang.org/grpc v1.59.0
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.2.0
google.golang.org/protobuf v1.34.2
honnef.co/go/tools v0.5.1
)
Expand All @@ -91,14 +91,10 @@ require (
cloud.google.com/go/iam v1.1.1 // indirect
cloud.google.com/go/storage v1.30.1 // indirect
github.com/AlecAivazis/survey/v2 v2.3.7 // indirect
github.com/Azure/azure-sdk-for-go v59.2.0+incompatible // indirect
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
github.com/Azure/go-autorest/autorest v0.11.27 // indirect
github.com/Azure/go-autorest/autorest/adal v0.9.20 // indirect
github.com/Azure/go-autorest/autorest/azure/cli v0.4.4 // indirect
github.com/Azure/go-autorest/autorest v0.11.29 // indirect
github.com/Azure/go-autorest/autorest/adal v0.9.23 // 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/Azure/go-ntlmssp v0.0.0-20200615164410-66371956d46c // indirect
Expand Down Expand Up @@ -154,7 +150,6 @@ require (
github.com/cli/shurcooL-graphql v0.0.4 // indirect
github.com/cloudflare/circl v1.4.0 // indirect
github.com/creack/pty v1.1.17 // indirect
github.com/dimchansky/utfbom v1.1.1 // indirect
github.com/dylanmei/iso8601 v0.1.0 // indirect
github.com/emicklei/go-restful/v3 v3.8.0 // indirect
github.com/fatih/color v1.17.0 // indirect
Expand Down Expand Up @@ -183,19 +178,26 @@ require (
github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.58 // indirect
github.com/hashicorp/consul/api v1.13.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-azure-helpers v0.43.0 // indirect
github.com/hashicorp/go-azure-helpers v0.71.0 // indirect
github.com/hashicorp/go-azure-sdk/resource-manager v0.20241212.1154051 // indirect
github.com/hashicorp/go-azure-sdk/sdk v0.20241212.1154051 // indirect
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect
github.com/hashicorp/go-immutable-radix v1.0.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
github.com/hashicorp/go-safetemp v1.0.0 // indirect
github.com/hashicorp/golang-lru v0.5.1 // indirect
github.com/hashicorp/logutils v1.0.0 // indirect
github.com/hashicorp/serf v0.9.6 // indirect
github.com/hashicorp/terraform-plugin-go v0.14.3 // indirect
github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect
github.com/hashicorp/terraform-plugin-sdk/v2 v2.26.1 // indirect
github.com/hashicorp/yamux v0.1.1 // indirect
github.com/henvic/httpretty v0.1.3 // indirect
github.com/huandu/xstrings v1.3.3 // indirect
github.com/imdario/mergo v0.3.13 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/jackofallops/giovanni v0.28.0 // indirect
github.com/jedib0t/go-pretty v4.3.0+incompatible // indirect
github.com/jedib0t/go-pretty/v6 v6.5.9 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
Expand All @@ -208,8 +210,6 @@ require (
github.com/lib/pq v1.10.3 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mailru/easyjson v0.7.6 // indirect
github.com/manicminer/hamilton v0.44.0 // indirect
github.com/manicminer/hamilton-autorest v0.2.0 // indirect
github.com/masterzen/simplexml v0.0.0-20190410153822-31eea3082786 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-runewidth v0.0.16 // indirect
Expand Down Expand Up @@ -240,9 +240,11 @@ require (
github.com/tencentyun/cos-go-sdk-v5 v0.7.42 // indirect
github.com/thanhpk/randstr v1.0.6 // indirect
github.com/thlib/go-timezone-local v0.0.3 // indirect
github.com/tombuildsstuff/giovanni v0.15.1 // indirect
github.com/ulikunitz/xz v0.5.10 // indirect
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
github.com/vmihailenco/msgpack/v4 v4.3.12 // indirect
github.com/vmihailenco/msgpack/v5 v5.3.5 // indirect
github.com/vmihailenco/tagparser v0.1.1 // indirect
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
go.mongodb.org/mongo-driver v1.16.1 // indirect
go.opencensus.io v0.24.0 // indirect
Expand Down Expand Up @@ -274,6 +276,7 @@ require (
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
sigs.k8s.io/yaml v1.2.0 // indirect
software.sslmate.com/src/go-pkcs12 v0.4.0 // indirect
)

// Some of the packages in this codebase are split into separate Go modules
Expand Down
Loading

0 comments on commit b47f0d3

Please sign in to comment.