Skip to content

Commit

Permalink
fix(misconf): change default ACL of digitalocean_spaces_bucket to pri…
Browse files Browse the repository at this point in the history
…vate (#7577)

Signed-off-by: nikpivkin <nikita.pivkin@smartforce.io>
  • Loading branch information
nikpivkin authored Oct 17, 2024
1 parent 2eaa17e commit 9da84f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/iac/adapters/terraform/digitalocean/spaces/adapt.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func adaptBuckets(modules terraform.Modules) []spaces.Bucket {
Metadata: block.GetMetadata(),
Name: block.GetAttribute("name").AsStringValueOrDefault("", block),
Objects: nil,
ACL: block.GetAttribute("acl").AsStringValueOrDefault("public-read", block),
ACL: block.GetAttribute("acl").AsStringValueOrDefault("private", block),
ForceDestroy: block.GetAttribute("force_destroy").AsBoolValueOrDefault(false, block),
Versioning: spaces.Versioning{
Metadata: block.GetMetadata(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func Test_adaptBuckets(t *testing.T) {
Metadata: iacTypes.NewTestMetadata(),
Name: iacTypes.String("", iacTypes.NewTestMetadata()),
Objects: nil,
ACL: iacTypes.String("public-read", iacTypes.NewTestMetadata()),
ACL: iacTypes.String("private", iacTypes.NewTestMetadata()),
ForceDestroy: iacTypes.Bool(false, iacTypes.NewTestMetadata()),
Versioning: spaces.Versioning{
Metadata: iacTypes.NewTestMetadata(),
Expand Down

0 comments on commit 9da84f5

Please sign in to comment.