From cacce31fa08052bd8bf496824a4c19e3c2def7f5 Mon Sep 17 00:00:00 2001 From: Ansgar Mertens Date: Wed, 4 Sep 2024 16:53:36 +0200 Subject: [PATCH] fix: Support sensitive attribute for stacks variables (#401) * fix: Allow any type as inputs to components per default * fix: Support sensitive attribute for stacks variables --- internal/schema/stacks/1.9/variable_block.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/schema/stacks/1.9/variable_block.go b/internal/schema/stacks/1.9/variable_block.go index 536617b..70797b2 100644 --- a/internal/schema/stacks/1.9/variable_block.go +++ b/internal/schema/stacks/1.9/variable_block.go @@ -42,6 +42,12 @@ func variableBlockSchema() *schema.BlockSchema { IsOptional: true, Description: lang.Markdown("Description to document the purpose of the variable and what value is expected"), }, + "sensitive": { + Constraint: schema.LiteralType{Type: cty.Bool}, + DefaultValue: schema.DefaultValue{Value: cty.False}, + IsOptional: true, + Description: lang.Markdown("Whether the variable contains sensitive material and should be hidden in the UI"), + }, "ephemeral": { Constraint: schema.LiteralType{Type: cty.Bool}, IsOptional: true,