generated from finos/standards-project-blueprint
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a92f7b
commit 76402e4
Showing
7 changed files
with
58 additions
and
5 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[behave] | ||
stderr_capture=False | ||
stdout_capture=False |
4 changes: 3 additions & 1 deletion
4
src/control-catalog/behave_tests/ccc.os.c3/features/ccc_os_c3.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
Feature: (CCC.OS.C3) - Prevent the granting of direct public access to the object storage bucket you own | ||
|
||
Scenario: Test Control CCC.OS.C3 - AWS | ||
Scenario: Test Control CCC.OS.C3 | ||
GIVEN you own the object storage bucket in AWS | ||
AND you own the object storage bucket in GCP | ||
WHEN the access controls on the bucket are updated to grant public access to the AWS bucket | ||
AND the access controls on the bucket are updated to grant public access to the GCP bucket | ||
THEN the request should be denied |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/control-catalog/terraform_modules/storage/object/ccc.os.c3/gcp/main.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
resource "google_storage_bucket" "auto-expire" { | ||
name = "${var.bucket_name}-ccc-os-c3" | ||
location = "US" | ||
force_destroy = true | ||
|
||
public_access_prevention = "enforced" # Enabling public access | ||
|
||
lifecycle { | ||
ignore_changes = [ # Disabling public access to this | ||
uniform_bucket_level_access | ||
] | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
src/control-catalog/terraform_modules/storage/object/ccc.os.c3/gcp/variables.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
variable "bucket_name" { | ||
type = string | ||
description = "Bucket Name" | ||
} |