AbstractionFactory
551f4b1b94
Backports[v1.8] Bumping Go version to address CVE-2024-45336 and CVE-2024-45341 ( #2438 ) ( #2440 )
...
Signed-off-by: AbstractionFactory <179820029+abstractionfactory@users.noreply.github.com>
2025-01-31 11:55:13 -05:00
Andrei Ciobanu
9b2aded3be
[Backport 1.8] Fix error message when default value of variable is of wrong type ( #2446 )
...
Signed-off-by: yottta <andrei.ciobanu@opentofu.org>
2025-01-29 11:35:35 +02:00
Andrei Ciobanu
816bfba9aa
[Backport 1.8] Fix: When a RequiredProvider is having syntax errors, return an empty one to allow further validations to generate their diags ( #2436 )
...
Signed-off-by: yottta <andrei.ciobanu@opentofu.org>
Co-authored-by: yottta <andpectech@gmail.com>
2025-01-28 16:01:34 +01:00
Andrei Ciobanu
bc6a804eb1
[Backport 1.8] MakeStaticTimestampFunc now returns unknown value if the given time.Time is zero ( #2431 )
...
Signed-off-by: yottta <andrei.ciobanu@opentofu.org>
2025-01-27 10:48:30 -05:00
Christian Mesh
7055fec681
[Backport v1.8] build(deps): bump github.com/hashicorp/go-slug from 0.12.2 to 0.16.3 ( #2427 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-24 17:57:59 -05:00
Christian Mesh
192463d68e
[Backport v1.8] Use import provider instead of guess ( #2424 )
...
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-01-24 17:37:45 -05:00
Christian Mesh
3f0195eb09
[backport v1.8] Add example on supporting both OpenTofu and Terraform versions ( #2422 )
...
Signed-off-by: Ludovico Magnocavallo <ludo@qix.it>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Co-authored-by: Ludovico Magnocavallo <ludo@qix.it>
Co-authored-by: Oleksandr Levchenkov <ollevche@gmail.com>
2025-01-24 12:56:50 -05:00
Oleksandr Levchenkov
ac48a80b99
[BACKPORT v1.8] fix randomly failing destroyed_mod_outputs test ( #2315 ) ( #2319 )
...
Signed-off-by: ollevche <ollevche@gmail.com>
2025-01-02 14:01:51 +02:00
Oleksandr Levchenkov
79ca3090fc
prepare branch for v1.8.8 release ( #2314 )
...
Signed-off-by: ollevche <ollevche@gmail.com>
2024-12-26 16:31:26 +02:00
Oleksandr Levchenkov
d7124386f2
[BACKPORT v1.8] bump golang.org/x/net from 0.25 to 0.33 ( #2311 ) ( #2313 )
...
Signed-off-by: ollevche <ollevche@gmail.com>
2024-12-26 15:31:55 +02:00
AbstractionFactory
3191e7ab50
Backport[v1.8]: Bump golang.org/x/crypto from 0.21.0 to 0.31.0 ( #2288 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-12 16:14:59 +01:00
Oleksandr Levchenkov
8fd25f3346
[BACKPORT] add simulated state serialization between tofu test runs ( #2274 ) ( #2276 )
...
Signed-off-by: ollevche <ollevche@gmail.com>
2024-12-10 17:23:56 +02:00
Oleksandr Levchenkov
82fdce1c7d
prepare for 1.8.7 release ( #2255 )
...
Signed-off-by: ollevche <ollevche@gmail.com>
2024-12-05 13:42:46 +02:00
Oleksandr Levchenkov
39a15ab499
[BACKPORT] fix: type defaults for variables in tests ( #2244 ) ( #2247 )
...
Signed-off-by: ollevche <ollevche@gmail.com>
2024-12-04 17:00:09 +02:00
Oleksandr Levchenkov
e1daace5ea
[BACKPORT] make tofu test generate dynamic mock values ( #2245 ) ( #2246 )
...
Signed-off-by: ollevche <ollevche@gmail.com>
2024-12-04 16:48:38 +02:00
AbstractionFactory
48cbedc87d
Backport[v1.8]: Bump github.com/golang-jwt/jwt/v4 from 4.4.2 to 4.5.1 ( #2240 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: AbstractionFactory <179820029+abstractionfactory@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-04 11:20:39 +01:00
Christian Mesh
4a86cddc33
[backport v1.8] Force state change if encryption used fallback ( #2236 )
...
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-12-03 18:17:46 -05:00
Martin Atkins
8f2c997396
tofu: Variable validation diagnostics must mark sensitive values
...
The existing test for input variable validation with sensitive values was
building on a false premise that sensitive-flagged variables always emerge
from EvalContext.GetVariableValue as marked. In practice that's true only
for input variables passed from a parent model where the value was already
marked on entry, because the marking caused directly by the
"sensitive = true" argument is handled later once the value has been
finalized and is being reported from the main expression scope.
Since the variable validation codepath writes a not-yet-finalized value
for the variable into its own HCL expression scope directly, it needs to
apply the sensitive mark itself when the variable was configured as
sensitive, which therefore means that the value provided to the "condition"
expression is properly marked and any diagnostics generated from it will
capture that marked value.
Along with fixing the existing test to have a mock GetVariableValue that
more realistically models BuiltinEvalContext's behavior, this introduces
a new test specifically about the marking of the values in the diagnostic
errors to help avoid potentially regressing that specific detail, since
diagnostics there can potentially originate from various different parts
of the system.
Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2024-12-03 09:55:12 -08:00
AbstractionFactory
9b2833f786
Backport[v1.8]: #2224 (Updated migration guides) ( #2227 )
2024-11-28 15:11:05 +01:00
Oleksandr Levchenkov
879fea59d9
update 1.8 versions ( #2211 )
...
Signed-off-by: ollevche <ollevche@gmail.com>
2024-11-22 14:57:51 +01:00
Oleksandr Levchenkov
d34cade6c5
fix changelog for 1.8.6 ( #2207 )
...
Signed-off-by: ollevche <ollevche@gmail.com>
2024-11-22 13:52:03 +01:00
Oleksandr Levchenkov
a324472955
[BACKPORT] add missing changelog entry for http backend logging ( #2206 ) ( #2209 )
...
Signed-off-by: ollevche <ollevche@gmail.com>
2024-11-22 14:01:12 +02:00
AbstractionFactory
8f19aa2c15
Bump golang version to 1.22.8 (address CVE-2024-34156) ( #2050 ) ( #2182 )
...
Signed-off-by: Sergey Pisarenko <spisarenko@palantir.com>
Signed-off-by: AbstractionFactory <179820029+abstractionfactory@users.noreply.github.com>
Co-authored-by: Sergey Pisarenko <sergey@pisarenko.net>
Co-authored-by: Sergey Pisarenko <spisarenko@palantir.com>
2024-11-22 12:03:18 +01:00
Oleksandr Levchenkov
6c6f5beba1
[BACKPORT] fix mock type conversion in tofu test ( #2144 ) ( #2197 )
...
Signed-off-by: ollevche <ollevche@gmail.com>
2024-11-21 14:58:42 +02:00
Oleksandr Levchenkov
2e04317cb6
[BACKPORT] fix mock provider validation ( #2140 ) ( #2196 )
...
Signed-off-by: ollevche <ollevche@gmail.com>
2024-11-20 17:42:16 +02:00
Oleksandr Levchenkov
e4fd6b9f47
[BACKPORT] Add DEBUG-level logging to the "http" state storage backend ( #2120 ) ( #2192 )
...
Signed-off-by: Bari, Haider <haider.bari@fmr.com>
Signed-off-by: ollevche <ollevche@gmail.com>
Co-authored-by: Haider Bari <haiderbari@rocketmail.com>
Co-authored-by: Bari, Haider <haider.bari@fmr.com>
2024-11-20 17:41:30 +02:00
Oleksandr Levchenkov
c59ba19b09
[BACKPORT] pin node version for docusaurus build ( #2177 ) ( #2194 )
...
Signed-off-by: ollevche <ollevche@gmail.com>
2024-11-20 17:40:45 +02:00
Martin Atkins
b1062873d3
Prepare for the v1.8.6 release ( #2137 )
...
Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2024-11-04 15:01:09 -05:00
Martin Atkins
3e7c2e7d0c
v1.8 Backport: Fix regression of backend reinit detection when backend schema has required arguments ( #2135 )
...
Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2024-11-04 14:49:24 -05:00
Christian Mesh
e5b89195ff
Partially unknown provider functions arguments fixed ( #2127 ) ( #2133 )
...
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-11-04 14:27:52 -05:00
James Humphries
68c124a7ca
Bumped versionfile for 1.8 ( #2097 )
...
Signed-off-by: James Humphries <james@james-humphries.co.uk>
2024-10-23 11:58:47 -04:00
James Humphries
4bdffd1a9b
Backport recent changes to v1.8 ( #2093 )
...
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Signed-off-by: ollevche <ollevche@gmail.com>
Signed-off-by: James Humphries <james@james-humphries.co.uk>
Co-authored-by: Christian Mesh <christianmesh1@gmail.com>
Co-authored-by: Oleksandr Levchenkov <ollevche@gmail.com>
2024-10-23 11:22:43 -04:00
Martin Atkins
09367956f1
CHANGELOG entry for #2055 and #2060
...
Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2024-10-09 12:10:52 -07:00
Martin Atkins
5d6fc11aa3
command/init: Support static eval for backend config migration check
...
The "backendConfigNeedsMigration" helper evaluates the backend
configuration inline to compare it with the object previously saved in the
.terraform/terraform.tfstate file.
However, this wasn't updated to use the new "static eval" functionality
and so was treating any references to variables or function calls as
invalid, causing a spurious "backend configuration changed" error when
re-initializing the working directory with identical backend configuration
settings.
Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2024-10-09 12:10:52 -07:00
Christian Mesh
7dfe15a7fa
Backport 1.8 handle static variable secrets ( #2046 )
...
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-10-03 11:09:31 -04:00
Christian Mesh
37e1085f73
Make sure test vars are only processed during test commands ( #2040 )
...
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-10-02 14:31:16 -04:00
Christian Mesh
1e61ce1bfd
Fix Terraform Version in 1.8.x Migration Guide ( #1987 ) ( #2000 )
...
Signed-off-by: Arunim Chaudhary <arunim.chaudhary@stackguardian.io>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Co-authored-by: Arunim Chaudhary <47343112+arunim2405@users.noreply.github.com>
2024-09-19 14:42:37 -04:00
Christian Mesh
2e1d6103c7
Update docs version message ( #1990 ) ( #1997 )
...
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-09-18 11:22:39 -04:00
Christian Mesh
57868a9b76
Update version and changelog to 1.8.2 ( #1968 )
...
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-09-04 14:04:32 -04:00
Christian Mesh
0e94739795
Backport bump go version to v1.8 ( #1966 )
...
Signed-off-by: Kazimierz Budzyk <kbudzyk@palantir.com>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Co-authored-by: kazimierzbudzyk <62395833+kazimierzbudzyk@users.noreply.github.com>
2024-09-03 12:30:47 -04:00
Christian Mesh
0abe7c59e0
Better handling of key_provider references ( #1921 ) ( #1965 )
...
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-09-03 12:24:58 -04:00
Syasusu
56335a2c5f
fix inconsistent sidebar title of functions on v1.8 branch ( #1907 )
...
Signed-off-by: Syasusu <syasusu@163.com>
2024-08-12 16:24:15 +02:00
Christian Mesh
2b1167debd
Fix Docusaurus "broken link" warnings on 1.8 branch of docs ( #1884 ) ( #1898 )
...
Signed-off-by: Tom Spurling <tom@tspurling.co.uk>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Co-authored-by: may every hack help <137650446+mehhhhhhhhhhhhhhh@users.noreply.github.com>
Co-authored-by: Tom Spurling <tom@tspurling.co.uk>
2024-08-12 08:23:04 -04:00
Christian Mesh
7cdad9e993
Bump to 1.8.1 ( #1893 )
...
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-08-07 09:16:02 -04:00
Christian Mesh
6832136f13
Fix missing module source panic ( #1888 ) ( #1889 )
...
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-08-05 12:33:12 -04:00
Christian Mesh
daa85bd203
Backport/v1.8/1876 ( #1886 )
...
Signed-off-by: RLRabinowitz <rlrabinowitz2@gmail.com>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Co-authored-by: RLRabinowitz <rlrabinowitz2@gmail.com>
Co-authored-by: Janos <86970079+janosdebugs@users.noreply.github.com>
2024-08-05 07:39:15 -04:00
Andrew Hayes
8609dbe71b
1666/tacos website docs backport to 1.8 ( #1883 )
...
Signed-off-by: Andrew Hayes <andrew.hayes@harness.io>
2024-08-02 09:50:46 -04:00
Christian Mesh
81b6b6773e
Fix 1.8 release workers ( #1870 )
...
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Signed-off-by: Jakub Martin <kubam@spacelift.io>
Co-authored-by: Jakub Martin <kubam@spacelift.io>
2024-07-29 11:35:08 -04:00
Christian Mesh
d9e162c75a
Switch to alternate runner group ( #1868 )
...
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-07-29 08:40:25 -04:00
Christian Mesh
ebdcae790e
Run releases on larger workers. ( #1587 ) ( #1867 )
...
Signed-off-by: Jakub Martin <kubam@spacelift.io>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Co-authored-by: Kuba Martin <kubam@spacelift.io>
2024-07-29 08:21:05 -04:00