Skip to content

Commit e2e5826

Browse files
committed
make computed env sensitive
1 parent 8b7a582 commit e2e5826

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/resources/cached_image.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ The cached image data source can be used to retrieve a cached image produced by
4747

4848
### Read-Only
4949

50-
- `env` (List of String) Computed envbuilder configuration to be set for the container.
50+
- `env` (List of String, Sensitive) Computed envbuilder configuration to be set for the container. May contain secrets.
5151
- `exists` (Boolean) Whether the cached image was exists or not for the given config.
5252
- `id` (String) Cached image identifier. This will generally be the image's SHA256 digest.
5353
- `image` (String) Outputs the cached image repo@digest if it exists, and builder image otherwise.

internal/provider/cached_image_resource.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,10 @@ func (r *CachedImageResource) Schema(ctx context.Context, req resource.SchemaReq
196196
// Computed "outputs".
197197
// TODO(mafredri): Map vs List? Support both?
198198
"env": schema.ListAttribute{
199-
MarkdownDescription: "Computed envbuilder configuration to be set for the container.",
199+
MarkdownDescription: "Computed envbuilder configuration to be set for the container. May contain secrets.",
200200
ElementType: types.StringType,
201201
Computed: true,
202+
Sensitive: true,
202203
},
203204
"exists": schema.BoolAttribute{
204205
MarkdownDescription: "Whether the cached image was exists or not for the given config.",

0 commit comments

Comments
 (0)