terramate-io / terramate

Terramate CLI is an open-source Infrastructure as Code (IaC) Orchestration and Code Generation tool for Terraform, OpenTofu and Terragrunt.
https://terramate.io
Mozilla Public License 2.0
3.28k stars 92 forks source link

fix(sharing_backend): output.sensitive not generated. #1920

Closed i4ki closed 1 month ago

i4ki commented 1 month ago

What this PR does / why we need it:

Fix the Sharing Outputs feature not generating the output.sensitive attribute.

Which issue(s) this PR fixes:

Fixes #1916

Special notes for your reviewer:

Note: this is a backport to the v0.10.x branch.

Does this PR introduce a user-facing change?

yes, fixes a bug.
github-actions[bot] commented 1 month ago
2024/10/14 02:46:10 Terraform detected version: 1.9.7
toolsetPath: /tmp/cmd-terramate-test-2262360034
=== RUN   TestInteropCloudSyncPreview
=== RUN   TestInteropCloudSyncPreview/preview:_basic-drift
    interoperability_test.go:46: using GITHUB_EVENT_FILE=/home/runner/work/_temp/_github_workflow/event.json
=== RUN   TestInteropCloudSyncPreview/preview:_basic-drift-uppercase-id
    interoperability_test.go:46: using GITHUB_EVENT_FILE=/home/runner/work/_temp/_github_workflow/event.json
--- PASS: TestInteropCloudSyncPreview (12.70s)
    --- PASS: TestInteropCloudSyncPreview/preview:_basic-drift (6.48s)
    --- PASS: TestInteropCloudSyncPreview/preview:_basic-drift-uppercase-id (6.22s)
=== RUN   TestInteropSyncDeployment
=== RUN   TestInteropSyncDeployment/deployment:_empty
=== RUN   TestInteropSyncDeployment/deployment:_empty-uppercase-id
--- PASS: TestInteropSyncDeployment (45.13s)
    --- PASS: TestInteropSyncDeployment/deployment:_empty (22.73s)
    --- PASS: TestInteropSyncDeployment/deployment:_empty-uppercase-id (22.40s)
=== RUN   TestInteropDrift
=== RUN   TestInteropDrift/drift:_basic-drift
=== RUN   TestInteropDrift/drift:_basic-drift-uppercase-id
--- PASS: TestInteropDrift (72.78s)
    --- PASS: TestInteropDrift/drift:_basic-drift (36.50s)
    --- PASS: TestInteropDrift/drift:_basic-drift-uppercase-id (36.28s)
PASS
ok      github.com/terramate-io/terramate/e2etests/cloud/interop    133.812s
github-actions[bot] commented 1 month ago

Preview of ubuntu-focal/go1.21 tests in 585d3867a8075a446118514ed82858329feb6948

:mag: View Details on Terramate Cloud

.
benchmarks/changed
cmd/terramate/cli
config
e2etests/internal/runner
generate
generate/sharing
git
hcl
stack
e2etests/cloud
e2etests/core
github-actions[bot] commented 1 month ago

Preview of macos-ventura/go1.21 tests in 585d3867a8075a446118514ed82858329feb6948

:mag: View Details on Terramate Cloud

.
benchmarks/changed
cmd/terramate/cli
config
e2etests/internal/runner
generate
generate/sharing
git
hcl
stack
e2etests/cloud
e2etests/core
github-actions[bot] commented 1 month ago
metric: time/op
ChangeDetection-4: old 3.40ms ± 5%: new 3.39ms ± 4%: delta: 0.00%
ChangeDetectionTFAndTG-4: old 12.9ms ± 4%: new 12.9ms ± 2%: delta: 0.00%
CloudReadLines-4: old 1.01ms ± 6%: new 1.02ms ± 5%: delta: 0.00%
CloudReadLine-4: old 7.19ms ± 1%: new 7.25ms ± 1%: delta: 0.87%
ListFiles-4: old 80.0µs ± 0%: new 80.3µs ± 1%: delta: 0.37%
Generate-4: old 4.99s ± 1%: new 4.98s ± 1%: delta: 0.00%
GenerateRegex-4: old 3.29s ± 2%: new 3.30s ± 1%: delta: 0.00%
TokensForExpressionComplex-4: old 1.26ms ± 0%: new 1.25ms ± 0%: delta: -0.59%
TokensForExpressionPlainStringNoNewline-4: old 787ns ± 1%: new 786ns ± 0%: delta: 0.00%
TokensForExpressionStringWith100Newlines-4: old 23.6µs ± 1%: new 23.6µs ± 1%: delta: 0.00%
TokensForExpressionObjectWith100KeysWithNumberValues-4: old 1.45ms ± 1%: new 1.44ms ± 1%: delta: -0.22%
TokensForExpression-4: old 1.26ms ± 1%: new 1.25ms ± 0%: delta: -0.24%
PartialEvalComplex-4: old 521µs ± 1%: new 519µs ± 2%: delta: 0.00%
PartialEvalSmallString-4: old 3.73µs ± 0%: new 3.72µs ± 0%: delta: -0.24%
PartialEvalHugeString-4: old 1.91ms ± 1%: new 1.91ms ± 0%: delta: 0.00%
PartialEvalHugeInterpolatedString-4: old 4.72ms ± 1%: new 4.73ms ± 1%: delta: 0.00%
PartialEvalObject-4: old 24.8µs ± 1%: new 24.8µs ± 1%: delta: 0.00%
TmAllTrueLiteralList-4: old 618µs ± 1%: new 617µs ± 1%: delta: -0.23%
TmAllTrueFuncall-4: old 20.2µs ± 0%: new 20.2µs ± 1%: delta: 0.00%
TmAnyTrueLiteralList-4: old 4.86ms ± 1%: new 4.86ms ± 1%: delta: 0.00%
TmAnyTrueFuncall-4: old 20.6µs ± 1%: new 20.7µs ± 1%: delta: 0.39%
TmTernary-4: old 2.60µs ± 0%: new 2.59µs ± 1%: delta: -0.58%
TmTryUnknownFunc-4: old 2.29µs ± 1%: new 2.28µs ± 1%: delta: -0.62%
TmTryUnknownVariable-4: old 2.19µs ± 0%: new 2.18µs ± 1%: delta: -0.55%
TmTryUnknownObjectKey-4: old 2.51µs ± 1%: new 2.51µs ± 1%: delta: 0.27%
metric: alloc/op
ChangeDetection-4: old 204kB ± 0%: new 204kB ± 0%: delta: 0.00%
ChangeDetectionTFAndTG-4: old 4.80MB ± 0%: new 4.81MB ± 0%: delta: 0.00%
CloudReadLines-4: old 3.12MB ± 0%: new 3.12MB ± 0%: delta: 0.00%
CloudReadLine-4: old 3.37MB ± 0%: new 3.37MB ± 0%: delta: 0.00%
ListFiles-4: old 27.6kB ± 0%: new 27.6kB ± 0%: delta: 0.00%
Generate-4: old 4.47GB ± 0%: new 4.47GB ± 0%: delta: 0.00%
GenerateRegex-4: old 1.84GB ± 0%: new 1.84GB ± 0%: delta: 0.00%
TokensForExpressionComplex-4: old 394kB ± 0%: new 394kB ± 0%: delta: 0.00%
TokensForExpressionPlainStringNoNewline-4: old 512B ± 0%: new 512B ± 0%: delta: 0.00%
TokensForExpressionStringWith100Newlines-4: old 12.5kB ± 0%: new 12.5kB ± 0%: delta: 0.00%
TokensForExpressionObjectWith100KeysWithNumberValues-4: old 395kB ± 0%: new 395kB ± 0%: delta: 0.00%
TokensForExpression-4: old 394kB ± 0%: new 394kB ± 0%: delta: 0.00%
PartialEvalComplex-4: old 338kB ± 0%: new 338kB ± 0%: delta: 0.00%
PartialEvalSmallString-4: old 1.74kB ± 0%: new 1.74kB ± 0%: delta: 0.00%
PartialEvalHugeString-4: old 196kB ± 0%: new 196kB ± 0%: delta: 0.00%
PartialEvalHugeInterpolatedString-4: old 4.05MB ± 0%: new 4.05MB ± 0%: delta: 0.00%
PartialEvalObject-4: old 17.2kB ± 0%: new 17.2kB ± 0%: delta: 0.00%
TmAllTrueLiteralList-4: old 321kB ± 0%: new 321kB ± 0%: delta: 0.00%
TmAllTrueFuncall-4: old 10.6kB ± 0%: new 10.6kB ± 0%: delta: 0.00%
TmAnyTrueLiteralList-4: old 2.09MB ± 0%: new 2.09MB ± 0%: delta: 0.00%
TmAnyTrueFuncall-4: old 10.7kB ± 0%: new 10.7kB ± 0%: delta: 0.00%
TmTernary-4: old 1.20kB ± 0%: new 1.20kB ± 0%: delta: 0.00%
TmTryUnknownFunc-4: old 784B ± 0%: new 784B ± 0%: delta: 0.00%
TmTryUnknownVariable-4: old 768B ± 0%: new 768B ± 0%: delta: 0.00%
TmTryUnknownObjectKey-4: old 952B ± 0%: new 952B ± 0%: delta: 0.00%
metric: allocs/op
ChangeDetection-4: old 1.17k ± 0%: new 1.17k ± 0%: delta: 0.00%
ChangeDetectionTFAndTG-4: old 33.6k ± 0%: new 33.6k ± 0%: delta: 0.00%
CloudReadLines-4: old 5.54k ± 0%: new 5.54k ± 0%: delta: 0.00%
CloudReadLine-4: old 60.0k ± 0%: new 60.0k ± 0%: delta: 0.00%
ListFiles-4: old 335 ± 0%: new 335 ± 0%: delta: 0.00%
Generate-4: old 51.4M ± 0%: new 51.4M ± 0%: delta: 0.00%
GenerateRegex-4: old 36.8M ± 0%: new 36.8M ± 0%: delta: 0.00%
TokensForExpressionComplex-4: old 4.83k ± 0%: new 4.83k ± 0%: delta: 0.00%
TokensForExpressionPlainStringNoNewline-4: old 20.0 ± 0%: new 20.0 ± 0%: delta: 0.00%
TokensForExpressionStringWith100Newlines-4: old 227 ± 0%: new 227 ± 0%: delta: 0.00%
TokensForExpressionObjectWith100KeysWithNumberValues-4: old 3.19k ± 0%: new 3.19k ± 0%: delta: -0.01%
TokensForExpression-4: old 4.83k ± 0%: new 4.83k ± 0%: delta: 0.00%
PartialEvalComplex-4: old 3.48k ± 0%: new 3.48k ± 0%: delta: 0.00%
PartialEvalSmallString-4: old 23.0 ± 0%: new 23.0 ± 0%: delta: 0.00%
PartialEvalHugeString-4: old 35.0 ± 0%: new 35.0 ± 0%: delta: 0.00%
PartialEvalHugeInterpolatedString-4: old 23.1k ± 0%: new 23.1k ± 0%: delta: 0.00%
PartialEvalObject-4: old 152 ± 0%: new 152 ± 0%: delta: 0.00%
TmAllTrueLiteralList-4: old 5.94k ± 0%: new 5.94k ± 0%: delta: 0.00%
TmAllTrueFuncall-4: old 275 ± 0%: new 275 ± 0%: delta: 0.00%
TmAnyTrueLiteralList-4: old 59.6k ± 0%: new 59.6k ± 0%: delta: 0.00%
TmAnyTrueFuncall-4: old 277 ± 0%: new 277 ± 0%: delta: 0.00%
TmTernary-4: old 28.0 ± 0%: new 28.0 ± 0%: delta: 0.00%
TmTryUnknownFunc-4: old 21.0 ± 0%: new 21.0 ± 0%: delta: 0.00%
TmTryUnknownVariable-4: old 20.0 ± 0%: new 20.0 ± 0%: delta: 0.00%
TmTryUnknownObjectKey-4: old 23.0 ± 0%: new 23.0 ± 0%: delta: 0.00%