Skip to content

Commit

Permalink
Mark Monolith repo cloudfront privkey as sensitive (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
np5 authored Jan 24, 2024
1 parent 1223b42 commit 663ff54
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/data-sources/monolith_repository.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Read-Only:
- `bucket` (String) Name of the S3 bucket.
- `cloudfront_domain` (String) Cloudfront domain.
- `cloudfront_key_id` (String) Cloudfront key ID.
- `cloudfront_privkey_pem` (String) Cloudfront private key in PEM form.
- `cloudfront_privkey_pem` (String, Sensitive) Cloudfront private key in PEM form.
- `endpoint_url` (String) S3 endpoint URL.
- `prefix` (String) Prefix of the Munki repository in the S3 bucket.
- `region_name` (String) Name of the S3 bucket region.
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/monolith_repository.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Optional:
- `assume_role_arn` (String) ARN of the IAM role to assume.
- `cloudfront_domain` (String) Cloudfront domain.
- `cloudfront_key_id` (String) Cloudfront key ID.
- `cloudfront_privkey_pem` (String) Cloudfront private key in PEM form.
- `cloudfront_privkey_pem` (String, Sensitive) Cloudfront private key in PEM form.
- `endpoint_url` (String) S3 endpoint URL.
- `prefix` (String) Prefix of the Munki repository in the S3 bucket.
- `region_name` (String) Name of the S3 bucket region.
Expand Down
1 change: 1 addition & 0 deletions internal/provider/monolith_repository_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ func (d *MonolithRepositoryDataSource) Schema(ctx context.Context, req datasourc
"cloudfront_privkey_pem": schema.StringAttribute{
Description: "Cloudfront private key in PEM form.",
MarkdownDescription: "Cloudfront private key in PEM form.",
Sensitive: true,
Computed: true,
},
},
Expand Down
1 change: 1 addition & 0 deletions internal/provider/monolith_repository_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ func (r *MonolithRepositoryResource) Schema(ctx context.Context, req resource.Sc
"cloudfront_privkey_pem": schema.StringAttribute{
Description: "Cloudfront private key in PEM form.",
MarkdownDescription: "Cloudfront private key in PEM form.",
Sensitive: true,
Optional: true,
Computed: true,
Default: stringdefault.StaticString(""),
Expand Down

0 comments on commit 663ff54

Please sign in to comment.