1
0
mirror of https://github.com/hashicorp/terraform.git synced 2026-02-05 15:46:27 +01:00
Commit Graph

56 Commits

Author SHA1 Message Date
Sarah French
0ce2e37a66 Manual backport of chore: Bump golang.org/x/crypto dependency, ignore SA4003 linting errors globally into v1.14 (#37910)
* chore: Run `go get golang.org/x/crypto@v0.44.0`

* chore: Run `make syncdeps`

* chore: Run `make generate`

* chore: Update staticcheck.conf to ignore SA4003
2025-11-17 15:58:49 +00:00
Liam Cervante
74a8d2c6a9 actions: connect invoke flag with TFC (#37544) (#37747)
* actions: connect invoke flag with TFC

* use latest go-tfe
2025-10-08 21:48:04 +02:00
github-actions[bot]
b7a39f794c Backport of AWS European Sovereign Cloud support, bump aws-sdk-go-base into v1.14 (#37743)
* backport of commit 5e3a9fbdf3

* backport of commit c5cdbf00c6

* backport of commit 0a7f300baf

* backport of commit f650603e48

* Add changelog

* Move changelog

* Update for newer telemetry

* Move to 1.14 for backport

---------

Co-authored-by: Dirk Avery <dirk.avery@gmail.com>
Co-authored-by: Dirk Avery <31492422+YakDriver@users.noreply.github.com>
2025-10-08 19:42:42 +02:00
Daniel Banck
1ac8497994 Add support for Terraform Search in the cloud backend (TF-25935) (#37479) 2025-09-15 13:21:05 +02:00
Amartya Majumdar
54af16eab9 [IPL-7725] Updating Calls to the Remote HCP Terraform API to Retrieve All Workspace Variables (#37241)
* [IPL-7725] Resolving merge conflicts

* [IPL-7725] Updating go.sum files

---------

Co-authored-by: Amartya Majumdar <a.majumdar1041@gmail.com>
2025-09-03 15:26:07 +02:00
Liam Cervante
2a1b4c3ed4 Update go-cty and HCL for 1.13 release (#37298) 2025-07-09 13:05:18 +02:00
Radek Simko
af07bd388e deps: Bump terraform-registry-address to v0.3.0 (#37230)
* deps: Bump terraform-registry-address to v0.3.0

* make syncdeps
2025-06-11 13:39:51 +00:00
Syed Shahidh Ilhan F
434bbc4e2f fix: Update K8s and Consul API dependencies to address security vulnerabilities (#37150)
* bump vulnerable packages

Signed-off-by: SYSHIL <ilhan.syed@gmail.com>

* make syncdeps

Signed-off-by: SYSHIL <ilhan.syed@gmail.com>

---------

Signed-off-by: SYSHIL <ilhan.syed@gmail.com>
2025-05-29 21:10:24 +01:00
James Bardin
cda65e3d9f make syncdeps 2025-05-08 12:21:22 -04:00
Ricard Bejarano
200f4cabb0 Bump golang.org/x/net from 0.37.0 to 0.38.0 (fixes CVE-2025-22872) (#36800)
* Bump golang.org/x/net from 0.37.0 to 0.38.0 (fixes CVE-2025-22872)

Signed-off-by: Ricard Bejarano <ricard@bejarano.io>

* add changelog entry

* go mod tidy

Signed-off-by: Ricard Bejarano <ricard@bejarano.io>

* Revert "add changelog entry"

This reverts commit 88219e78e9.

* make syncdeps

Signed-off-by: Ricard Bejarano <ricard@bejarano.io>

---------

Signed-off-by: Ricard Bejarano <ricard@bejarano.io>
2025-04-01 12:00:36 +01:00
Sarah French
6ef0498f9c Update to Go 1.24.1, update dependencies (#36790)
* go get github.com/hashicorp/go-azure-helpers@v0.72.0

* .go-version to 1.24.1

* Run `./scripts/syncdeps.sh`

This propagates the Go version upgrade

* gcs : go get google.golang.org/api@v0.155.0

* gcs: go mod tidy

* Run `./scripts/syncdeps.sh`

* make generate && make protobuf
2025-03-27 17:15:46 +00:00
Sarah French
53172a5f8a Bump golang.org/x/net to v0.36.0 (#36691)
* go get golang.org/x/net@v0.36.0

* go mod tidy

* Run syncdeps.sh
2025-03-13 11:23:48 +00:00
Daniel Banck
b2b42c0fb4 Store resource identities in state (TF-23255) (#36464)
* Persist resource identity in Terraform state

* make syncdeps

* Move identity schema merging closer to the protocol

* mock GetResourceIdentitySchemas

* Fix identity refresh tests

* Add more tests

* Change grcpwrap upgrade identity

* Review feedback

* Remove unnecessary version conversion

* Check if GetResourceIdentitySchemas RPC call is implemented

* Update function signature docs

* Adapt protocol changes

* Check unimplemented error for identities in GetSchema
2025-03-11 20:58:44 +01:00
Sebastian Marines
9237b11277 backend/s3: update hashicorp/aws-sdk-go-base/v2 to v2.0.0-beta62
This upgrade will add support for S3 backends in several new regions,
including `mx-central-1`.
2025-03-06 11:09:19 -05:00
Sarah French
b0dbd66eeb Bump golang.org/x/oauth2 from v0.23.0 to v0.27.0 (#36584)
* go get golang.org/x/oauth2@v0.27.0

* Run syncdeps.sh

* Add change file for backport to v1.11.1
2025-02-28 10:05:03 +00:00
James Bardin
bc45d60936 make syncdeps 2025-02-12 12:25:36 -05:00
James Bardin
f9de7186ae make syncdeps 2025-02-04 07:22:49 -05:00
Liam Cervante
270aaeb69a update go-cty to latest patch release (#36376)
* update go-cty to latest patch release

* also fixes other bug
2025-01-22 11:10:23 +01:00
Sarah French
a8b126aeff Upgrade hashicorp/go-getter dependency (#36326)
* go get github.com/hashicorp/go-getter@v1.7.8

* Sync deps
2025-01-21 10:42:39 +00:00
dependabot[bot]
e538e0f228 build(deps): bump golang.org/x/net from 0.29.0 to 0.33.0 in /internal/backend/remote-state/s3 (#36298)
* build(deps): bump golang.org/x/net in /internal/backend/remote-state/s3

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.29.0 to 0.33.0.
- [Commits](https://github.com/golang/net/compare/v0.29.0...v0.33.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: make syncdeps

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jared Baker <jared.baker@hashicorp.com>
2025-01-15 15:21:53 +00:00
Jan Harrie
b827ca459e Upgraded github.com/hashicorp/go-slug v0.16.0 => v0.16.3 (#36273)
* upgraded github.com/hashicorp/go-slug v0.16.0 => v0.16.3

* updated changelog

* removed old entry from go-slug

* upgraded github.com/hashicorp/go-slug v0.16.0 => v0.16.3

* upgraded github.com/hashicorp/go-slug v0.16.0 => v0.16.3

* Update CHANGELOG.md

---------

Co-authored-by: Sarah French <15078782+SarahFrench@users.noreply.github.com>
2025-01-08 17:34:56 +00:00
Liam Cervante
fa27595fe3 Update go-cty to 1.16.0 (#36262)
* Update go-cty to 1.16.0

* syndeps
2025-01-06 12:53:45 +01:00
dependabot[bot]
d2c0a0e992 Bump golang.org/x/crypto from 0.27.0 to 0.31.0 (#36203)
* Bump golang.org/x/crypto from 0.27.0 to 0.31.0

Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.27.0 to 0.31.0.
- [Commits](https://github.com/golang/crypto/compare/v0.27.0...v0.31.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* syncdeps

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Liam Cervante <liam.cervante@hashicorp.com>
2024-12-13 11:35:49 +01:00
James Bardin
762f9334de make syncdeps 2024-12-12 09:08:23 -05:00
James Bardin
3a1324a811 make syncdeps 2024-11-15 11:31:12 -05:00
James Bardin
1699bc2658 sync deps 2024-11-12 10:12:54 -05:00
Brandon Croft
18ca2d5a79 make syncdeps 2024-10-26 08:06:16 -06:00
Brandon Croft
2a9b79d423 make syncdeps 2024-09-26 16:31:52 -06:00
James Bardin
a34f51cb3f update HCL to HEAD
Includes a fix for this PR, we will update to a tagged version before
release.
2024-09-24 16:14:52 -04:00
James Bardin
809fe73b84 update deps to match go1.23
Make sure tooling dependencies are updated to use go1.23, and get any
closely related package updates, like golang.org/x/*
2024-09-11 14:09:12 -04:00
James Bardin
8b1f19d923 update go-cty@v1.15.0 2024-07-24 16:25:39 -04:00
Jamie Finnigan
54f937cc3c upgrade github.com/hashicorp/go-retryablehttp & deps (#35473) 2024-07-22 10:26:28 -07:00
Radek Simko
5e3a44fc11 deps: Bump go-getter to v1.7.5 (#35376)
* deps: Bump go-getter to v1.7.5

* make syncdeps
2024-07-03 08:48:23 +01:00
Liam Cervante
0f0414d484 Fix partial address representation in plan for deferred actions (#34966)
* Fix partial address representation in plan

* reflect new type in stacks
2024-06-20 10:41:23 +02:00
Martin Atkins
91c88f4705 go.mod: go get github.com/apparentlymart/go-versions@v1.0.2
This includes a fix in the handling of conflicting constraints referring
to prereleases, like "1.0.0-beta.1, !1.0.0-beta.1".

Previously the library would incorrectly treat that as a positive match,
rather than having the negative override the positive as happens in all
other cases.
2024-05-24 10:26:31 -07:00
Jamie Finnigan
368ccbf63a make syncdeps 2024-05-15 16:04:48 -07:00
Martin Atkins
c77898c90d logging: Remove import github.com/coreos/pkg/capnslog
We were importing this to resolve an init-time conflict with this library
when it was indirectly loaded by the etcd libraries.

We removed the etcd backends a while back and so we no longer use any of
the etcd modules in Terraform, and so this tricky import was our only
remaining reference to github.com/coreos/pkg/capnslog.

Dropping this eliminates two unnecessary dependencies.
2024-04-24 09:55:55 -07:00
James Bardin
b79589d2d5 udpate submodule deps 2024-04-24 10:10:17 -04:00
Jamie Finnigan
e9a33de0d2 go get github.com/hashicorp/go-getter && go mod tidy (#35041)
* go get github.com/hashicorp/go-getter && go mod tidy

* make syncdeps
2024-04-24 09:25:05 +01:00
Sebastian Rivera
015f795ff0 Rebrand Terraform Cloud to HCP Terraform 2024-04-23 16:12:59 -04:00
Martin Atkins
5e7d0f0854 go.mod: Update to latest github.com/zclconf/go-cty-debug
This extends the "CmpOptions" to include a comparer for cty.Path values,
so that we don't have to hand-write that in each case where we're
comparing data structures containing those.
2024-04-18 07:32:52 -07:00
Martin Atkins
d3b8a55781 go.mod: go get google.golang.org/protobuf@v1.33.0
Many of the changes between these two versions seem to be in parts of the
library that Terraform doesn't use, but there are a few sensitive parts:
  - Slight changes to details of how the library implements the JSON
    encoding of protobuf. Terraform CLI/Core don't use this, but some
    of the backends might use it indirectly when talking to their
    underlying APIs.
  - Some details of the "protoreflect" package for working with
    protobuf descriptors dynamically (rather than using generated stubs)
    have changed, but it seems pretty marginal and unlikely to cause
    problems.
2024-03-21 08:05:58 -07:00
Martin Atkins
84df5562f2 moduleaddrs: Terraform now owns module source address normalization
We've been gradually chipping away at how much we use go-getter for source
packages, because it's generally been a bit of a nightmare and sharing it
with other codebases means that any time someone wants to change something
we end up needing to find some way to prevent it breaking Terraform's
compatibility promises.

Here we make one further step: Terraform owns the "detectors" idea that
deals with source address normalization, and now always produces
fully-qualified addresses for go-getter to chew on only for the getting
and decompressing steps.

Retaining go-getter for the actual getting part is helpful because we can
then benefit from security fixes upstream, but Terraform owning the first
layer of parsing means that we can fix in place the definition of what
"module source address" syntax means, and thus we can avoid having
everything in this codebase indirectly depend on go-getter just because it
wants to parse module source addresses.

Now only the module installer actually depends indirectly on go-getter,
which finally disconnects go-getter's subtree from all of the remote state
backend dependency graphs.
2024-03-14 09:58:30 -07:00
Martin Atkins
78ae6af906 legacy/terraform: Minimize the contents of this legacy package
At one point we were relying on this for a few different things, but now
it's here exclusively to support legacy/helper/schema, the legacy SDK
snapshot that is still being used by a few of the remote state backends.

The SDK only really needs a tiny portion of the functionality from this
package, and by deleting as much of the unused stuff as possible we can
reduce the indirect dependencies of this package and thus, in turn, the
indirect dependencies of the remote state backends.

This also selectively deletes a few parts of the legacy SDK that are
focused on providers and provisioners, because we know that we have this
here only to support the backends that haven't yet been weaned off it,
but we'll save a more adventurous purge of _that_ package for another day.
2024-03-14 09:58:30 -07:00
Martin Atkins
56006416ba go.mod: go get golang.org/x/tools@v0.19.0
We use this just for development-time tools like "stringer", so this
upgrade should not have any runtime impact.
2024-03-13 12:41:47 -07:00
Martin Atkins
c541757f4a go.mod: go get golang.org/x/mod@v0.16.0
Aside from development tool dependencies we use this only for the directory
hashing logic used to compute go module hashes, which we also use for
Terraform provider hashes.

There are no changes to the dirhash package in this update, so this should
have no runtime impact.
2024-03-13 12:41:47 -07:00
Martin Atkins
b059985227 go.mod: go get golang.org/x/sync@v0.6.0
This update only changes a documentation comment, so cannot affect runtime
behavior.
2024-03-13 12:41:47 -07:00
Martin Atkins
caa7a757bc go.mod: go get golang.org/x/oauth2@v0.18.0
This only upgrades a Google-specific subpackage, and so the only potential
impact is to the GCS backend.
2024-03-13 12:41:47 -07:00
Martin Atkins
9c7ece8ad4 go.mod: go get golang.org/x/net@v0.22.0
This update is largely focused on QUIC implementation changes, which do not
directly affect Terraform.

There is one fix for the HTTP2 implementation to terminate the stream if
a sender recieves an out-of-bounds window update, which makes the
implementation better match the specification. This seems unlikely to
cause any practical problems for Terraform.
2024-03-13 12:41:47 -07:00
Martin Atkins
fad9c2a4cd go.mod: go get golang.org/x/crypto@v0.21.0
This update is mostly internal changes that don't affect external behavior.

The only update potentially significant to Terraform is the new exclusion
of a particular root certificate that is used only for some specific names
under the .tr CCTLD, but the certificate database doesn't specify that
constraint in a way that the library can understand, so it's excluded to
avoid making the trust for that certificate broader than intended.
2024-03-13 12:41:47 -07:00