Commit Graph

32784 Commits

Author SHA1 Message Date
Christian Mesh
c1f4b7a60b Update CHANGELOG.md for go patch version upgrade
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
v1.10.8
2025-12-08 14:10:50 -05:00
Christian Mesh
0e8a0434fe Bump the go version to 1.24.11
Related to https://github.com/opentofu/opentofu/issues/3545
Related to https://github.com/opentofu/opentofu/issues/3546

Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-12-08 14:10:50 -05:00
蔡秀吉
2a2ee25ab2 docs: Add missing short-circuit evaluation entry to v1.10.0 CHANGELOG (#3506)
Signed-off-by: thc1006 <84045975+thc1006@users.noreply.github.com>
Co-authored-by: SteveYi <steveyiyo@steveyi.net>
2025-12-01 13:10:59 -05:00
Andrei Ciobanu
7f6a6b9cc6 [v1.10] Fixes for GH workflows for older OpenTofu versions (#3487)
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
2025-11-11 11:12:39 +02:00
Christian Mesh
4b32aa801f Version 1.10.7
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
v1.10.7
2025-11-06 07:54:30 -05:00
Martin Atkins
80a230ee33 CHANGELOG: Entry for fixes to some security advisories
These fixes came from opentofu/opentofu#3467, but that PR is just upgrading
Go and so does not contain any directly-useful context.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2025-11-04 07:06:24 -08:00
Martin Atkins
9bf9a22f17 go.mod: Upgrade to Go 1.24.9
This is to address the upstream security advisory GO-2025-4014, although
it also incidentally deals with several other advisories published on the
same day: GO-2025-4007, GO-2025-4008, GO-2025-4009, GO-2025-4010,
GO-2025-4011, GO-2025-4012, and GO-2025-4013.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2025-11-04 07:06:24 -08:00
Andrei Ciobanu
ce351b0ddd [Backport][v1.10] for_each inside dynamic blocks can now call provider-defined functions (#3442)
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
2025-10-29 08:13:44 -04:00
James Humphries
988f7c5822 Bump our hcl fork to include fix for Provider defined functions in parentheses (#3402)
Signed-off-by: James Humphries <james@james-humphries.co.uk>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-10-22 07:40:45 -04:00
Christian Mesh
9bda3939c9 Fix test crash when using deprecated outputs in the root module (#3249)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-09-05 14:43:14 -04:00
Christian Mesh
1f0c3de8dc V1.10.6
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
v1.10.6
2025-09-03 13:57:47 -04:00
Christian Mesh
9be0057d5a Update changelog
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-09-03 07:39:26 -04:00
Martin Atkins
f6a5096796 tracing: Don't panic on OpenTelemetry errors (#3235)
Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-09-03 07:38:15 -04:00
Andrei Ciobanu
39fb9b6301 [v1.10 BACKPORT] Bump openbao/api to 2.3.0 in order to fix GO-2025-3783 (#3134) (#3156)
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
2025-08-19 08:48:26 -04:00
James Humphries
ac1b11e3ee Fix crash in unmarkDeepWithPathsDeprecated (#3105)
Signed-off-by: James Humphries <james@james-humphries.co.uk>
Signed-off-by: James Humphries <James@james-humphries.co.uk>
Co-authored-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-08-19 08:06:22 -04:00
Christian Mesh
91b43aa9e7 Validations should only be run during non-destroy operations (#3131)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-08-19 07:34:27 -04:00
Andrei Ciobanu
2083e4a06d [BACKPORT] [v1.10] Bump go version to the latest one to fix sql/Rows.Scan (#3135)
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
2025-08-13 17:51:59 +03:00
Christian Mesh
20e08688ca v1.10.5
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
v1.10.5
2025-08-01 10:20:32 -04:00
Christian Mesh
54d3668c3d Switch from polling to native blocking locking for the provider cache (#3090)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
Co-authored-by: Martin Atkins <mart@degeneration.co.uk>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-08-01 10:17:48 -04:00
Christian Mesh
ea3c3b857d Fix changelog versions
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-07-31 10:18:05 -04:00
Christian Mesh
6d6c2fa964 v1.10.4
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
v1.10.4
2025-07-31 09:22:01 -04:00
Christian Mesh
6a55c256e4 Update changelog
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-07-31 08:48:18 -04:00
Christian Mesh
8412304805 Reduce calls to ListKey in azure backend (#3083)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-07-31 08:47:02 -04:00
Christian Mesh
0fc12ad035 Use the correct data when mocking a resource refresh (#3068)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Signed-off-by: Diogenes Fernandes <diofeher@gmail.com>
Co-authored-by: Diogenes Fernandes <diofeher@gmail.com>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-07-28 07:32:23 -04:00
Christian Mesh
bd57f2d9cc Update changelog
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-07-24 13:41:16 -04:00
Christian Mesh
d9a206d3fb Fix crash with sensitive for_each set elements (#3070)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-07-24 13:40:23 -04:00
Christian Mesh
5be36e3ab0 Move cos backend dependencies to git commits instead of tags (#3043)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-07-18 16:53:16 -04:00
Christian Mesh
1e755e9a8f Version 1.10.3
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
v1.10.3
2025-07-15 09:50:38 -04:00
Christian Mesh
c376148eca Update changelog
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-07-14 09:33:09 -04:00
Christian Mesh
027bd8fcd6 Smarter approach to .Equals on state objects for unordered lists (#3024)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-07-14 09:26:44 -04:00
Christian Mesh
a066a234dc Update changelog
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-07-14 07:19:08 -04:00
Martin Atkins
a77a4b87e0 hcl2shim: MockValueComposer handles structural-typed attributes (#2994)
Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Co-authored-by: Christian Mesh <christianmesh1@gmail.com>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-07-14 07:13:39 -04:00
Christian Mesh
f8576fdd5b Update changelog
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-07-07 08:26:24 -04:00
krishna sindhur
0d3ae95980 fix: Temp data cleanup in windows (#2995)
Signed-off-by: krishna sindhur <krishna.sindhur@thinkbyte.ai>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-07-07 08:25:04 -04:00
Martin Atkins
402950a06b CHANGELOG: Entry for opentofu/opentofu#2988
Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2025-07-03 10:20:54 -07:00
Martin Atkins
b44dfa0a6d CHANGELOG: Add the heading for not-yet-released v1.10.3
Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2025-07-03 10:20:54 -07:00
Martin Atkins
620b4a0b18 jsonformat: Tolerate incorrect paths in plan relevant_attributes
The code for matching relevant_attributes against resource_drift entries
(a part of the heuristic for deciding whether to show "changes outside of
OpenTofu" in the human-oriented plan UI) was previously assuming that paths
in resource_drift would always be valid for the associated resource
instance object values because in most cases the language runtime will
detect invalid references and so fail to generate a plan at all.

However, when the reference is to something within a dynamically-typed
argument (such as the manifest in kubernetes_manifest) and when it appears
only as an argument to either the "try" or "can" functions (so the dynamic
error is intentionally suppressed) the language runtime can't catch it
and so the incorrect reference will leak out into relevant_attributes,
thereby violating assumptions made by the path matcher.

Instead then, we'll continue the existing precedent that this "relevant
attributes" mechanism is a best-effort heuristic that prefers to succeed
with an incomplete result rather than to fail, extending that to the
traversals in the plan renderer which will now treat incorrectly-typed
steps as not matching rather than causing OpenTofu to crash completely.

Since a reference to something that doesn't exist cannot succeed it also
cannot possibly _actually_ contribute directly to the final result of the
expression it appeared in, so in practice it should be okay to disregard
these invalid references for the purposes of deciding which changes outside
of OpenTofu seem likely to have caused the actions that OpenTofu is
proposing to make during the apply phase.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2025-07-03 10:20:54 -07:00
Martin Atkins
e02159ee83 main: Log the effective set of OCI credential search locations
Previously we generated some logs during the discovery process indicating
which locations OpenTofu was probing for ambient credentials, but we didn't
explicitly report the overall result of the discovery process.

These new log lines will now report the final effective set of credential
configuration locations just before we try to use them in either the
provider installation or module installation codepaths. The strings
returned by CredentialsConfigLocationForUI are intended for just this sort
of feedback: the exact format varies for each kind of location, but it's
always a concise string identifying a location that OpenTofu will consider
when attempting to decide credentials.

Logging this here does unfortunately mean that the log output will be
repeated for each separate OCI registry request. There not being a great
single location to generate these logs was the main reason we didn't
include something like this in the first implementation, but the set of
config locations is small on any reasonable system and we've already had
a few folks struggle to understand why OpenTofu is making a certain
decision about credential sources so this is a pragmatic small step to give
us some extra diagnostic information in bug reports without affecting the
normal UI output for now.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2025-07-02 14:46:52 -04:00
James Humphries
57408eb898 Prep for 1.10.2 release (#2983)
Signed-off-by: James Humphries <james@james-humphries.co.uk>
v1.10.2
2025-07-01 18:07:46 +01:00
Martin Atkins
9509c5c6e4 CHANGELOG: Entry for #2979 and some other miscellaneous tidying
Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2025-07-01 09:49:19 -07:00
Martin Atkins
128a77a288 command: Only shim dependency lock file for installation actions
Recently we added a call to Locks.UpgradeFromPredecessorProject to try to
preserve dependency selections made for providers under
registry.terraform.io/hashicorp/* when switching to OpenTofu for the first
time.

However, this behavior did not properly cater for the situation where the
configuration intentionally specifies registry.terraform.io explicitly in
a source address: that would then cause OpenTofu to incorrectly try to make
a factory function for the shimmed provider version when working in
command.Meta.providerFactories, which would then fail because no such
provider appears in the cache directory.

Instead then, we'll limit the shimming only to installation-related actions
while only using the dependency locks exactly as written when preparing to
actually _run_ the provider plugins.

This is bothersome to test because our tests are not allowed to directly
access registry.terraform.io; the test case here mimicks one case in which
it could be valid for an OpenTofu user to explicitly use
registry.terraform.io: if they've used the CLI configuration to arrange for
that hostname to be handled only via a mirror rather than by direct access
to the origin registry. The terms of service for registry.terraform.io
currently prohibit using it for anything other than Terraform, so we ensure
that this test cannot make requests to any real services at that hostname.

Note that telling OpenTofu to use registry.terraform.io is not officially
supported and may cause other problems beyond what was addressed by this
PR, since OpenTofu tends to assume that this hostname would appear only
during the process of migrating from Terraform and might make unexpected
decisions based on that assumption. Despite us making this fix, those who
are explicitly specifying registry.terraform.io in their configuration
should make plans to stop doing that and to set things up some other way
instead.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2025-07-01 09:49:19 -07:00
Andrei Ciobanu
c6d2d32f42 Add changelog for 2970 (#2980)
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
Signed-off-by: James Humphries <James@james-humphries.co.uk>
Co-authored-by: James Humphries <James@james-humphries.co.uk>
2025-07-01 09:31:05 -07:00
Andrei Ciobanu
731a6cb23e Adjust one of the tests to ensure that the customer managed sse is configured correctly for the request to get the lock file (#2978)
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-06-30 11:56:09 -04:00
Andrei Ciobanu
74502c0d57 Unify encryption calls s3 backend (#2976)
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-06-30 11:56:02 -04:00
Andrei Ciobanu
72eb3645b1 Add encryption headers for the s3 native locking file (#2975)
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-06-30 11:55:53 -04:00
Martin Atkins
9353fa6efe website: OCI provider mirror build doesn't need --artifact-platform (#2964)
Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-06-30 07:33:26 -04:00
Christian Mesh
60f839aa4e Bump to v1.10.1
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
v1.10.1
2025-06-25 09:44:18 -04:00
Martin Atkins
35a8e123bc backend/s3: Use APNInfo instead of UserAgent (#2955)
Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-06-25 09:16:12 -04:00
Martin Atkins
755f1e1c65 [v1.10 BACKPORT] website: OCI provider mirror shouldn't talk about prereleases anymore (#2952)
Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2025-06-24 18:18:35 +01:00
Martin Atkins
504a50895f [v1.10 backport] go.mod: Upgrade to Go 1.24.4 (#2927)
Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2025-06-24 11:06:28 -04:00