Bug Description
Object versioning is disabled on various Cloud Storage buckets, and BigQuery datasets/tables lack deletion protection.
Environment and Deployment Context
Please provide details about your deployment to help us reproduce the issue.
- Stellar Engine Version/Commit:
main
- Deployment Type:
- FAST Stage (if applicable):
- Affected Component:
modules/gcs/main.tf and modules/bigquery-dataset/main.tf.
- Terraform Version: 1.5.7
- GCP Provider Version: 5.10.0
Steps to Reproduce
Steps to reproduce the behavior:
- Review the
google_storage_bucket and google_bigquery_table resource definitions.
- Notice missing
versioning blocks and missing deletion_protection attributes.
Expected Behavior
Cloud Storage buckets should have object versioning enabled to prevent permanent data loss, and BigQuery tables should explicitly set deletion_protection = true.
Actual Behavior
These safety guardrails are missing, creating a high risk of accidental infrastructure teardowns destroying critical datasets.
Relevant Logs and Errors
N/A
Additional Context
Checkov Alert IDs: CKV_GCP_78, CKV_GCP_121.
Bug Description
Object versioning is disabled on various Cloud Storage buckets, and BigQuery datasets/tables lack deletion protection.
Environment and Deployment Context
Please provide details about your deployment to help us reproduce the issue.
mainmodules/gcs/main.tfandmodules/bigquery-dataset/main.tf.Steps to Reproduce
Steps to reproduce the behavior:
google_storage_bucketandgoogle_bigquery_tableresource definitions.versioningblocks and missingdeletion_protectionattributes.Expected Behavior
Cloud Storage buckets should have object versioning enabled to prevent permanent data loss, and BigQuery tables should explicitly set
deletion_protection = true.Actual Behavior
These safety guardrails are missing, creating a high risk of accidental infrastructure teardowns destroying critical datasets.
Relevant Logs and Errors
N/A
Additional Context
Checkov Alert IDs: CKV_GCP_78, CKV_GCP_121.