[Bug] fast/stages-aw/3-security, scripts: fix cross-env KMS admin grant, VPC-SC dry-run status, and script input handling
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- bash, gcp, shell, terraform
- Lĩnh vực
- cloud, devops, infrastructure, security
Hướng nghiên cứu
Start with fast/stages-aw/3-security/core-dev.tf and core-prod.tf, comparing KMS grants for the dp, gke, gcve, and pf service accounts, then read vpc-sc.tf and outputs.tf for the dry-run status and file/CMEK handling. The script fixes are spread across sa_lockdown.sh, validation.sh, scripts/destroy.sh, scripts/restore.sh, tools/create_e2e_sandbox.sh, and generate-mocks.sh; inspect each listed line and run the relevant Stage 3 Terraform checks and script validations. Done means all six expected behaviors in the issue hold without changing unrelated permissions or script behavior.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Bug Description
fast/stages-aw/3-security and the repository automation scripts contain several security and functional defects on main at commit db8271cf.
fast/stages-aw/3-security/core-dev.tfgrantsvar.service_accounts["project-factory-prod"]roles/cloudkms.adminandroles/cloudkms.cryptoKeyEncrypterDecrypteron development KMS keys, while omitting thegke-devandgcve-devservice accounts. Similarly,core-prod.tfomitsgke-prodandgcve-prod.fast/stages-aw/3-security/vpc-sc.tfsetsstatus = var.vpc_sc.dry_run ? null : local.perimeter_status. Settingstatus = nullwhendry_run = trueremoves any existing enforced VPC Service Controls perimeter configuration instead of preserving the enforcedstatusblock alongsidespec.fast/stages-aw/3-security/outputs.tfwrites3-security.auto.tfvars.jsonwith0644permissions and uploads it to the automation GCS bucket withoutkms_key_name.fast/stages-aw/3-security/sa_lockdown.shonly removes roles for 4 service accounts, missing the-rread-only plan service accounts and Stage 1 branch service accounts, andvalidation.shfilters only-prod-iac-core-0$.scripts/destroy.shuseseval "$var_name="$input""when reading interactive user input instead ofprintf -v,scripts/restore.shcontains a brokenterraform import "module.organization.google_org_policy_policy.default["{}"]"command,tools/create_e2e_sandbox.shcontains atocuhtypo, andgenerate-mocks.shreferences a non-existent2-networking-a-fedramp-highdirectory.
Expected Behavior
core-dev.tfandcore-prod.tfgrant KMS permissions only to matching environment service accounts fordp,gke,gcve, andpf.vpc-sc.tfpreserves enforced perimeterstatuswhenspecdry-run mode is enabled.outputs.tfrestricts local file permissions to0600and encrypts the uploaded3-security.auto.tfvars.jsonobject with CMEK.sa_lockdown.sh,validation.sh,scripts/destroy.sh,scripts/restore.sh,tools/create_e2e_sandbox.sh, andgenerate-mocks.shrun safely withoutevalinjection or broken paths.
Additional Context
Tracked under #33. Split out from #350 so Stage 3 and script fixes can be reviewed in isolated pull requests.
- Ngôn ngữ chính
- HCL
- Star
- 58
- Fork
- 25
- Merge trung bình
- 1 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 69
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của google/stellar-engine
-
Documentation Level of Effort - Low Priority - Low Scope - Fast
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
google/stellar-engine#385 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Enhancement Framework - FedRAMP High Level of Effort - Low Priority - Medium Scope - Blueprint Scope - Module
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
google/stellar-engine#320 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Enhancement] blueprints/il5, fedramp-high: scope project-wide IAM bindings to resources, wire CMEK, and restrict firewall targetsCó thể đã có người làm @LeonxLJX đã nhận 2 ngày trước. Đang mởEnhancement Framework - FedRAMP High Framework - IL5 Level of Effort - Medium Priority - Medium Scope - Blueprint Security
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 32/100
google/stellar-engine#374 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] blueprints/il5, fedramp-high: fix broken Terraform references, service account ID length limits, and GitLab HTTP listenerCó thể đã có người làm @LeonxLJX đã nhận 2 ngày trước. Đang mởBug Framework - FedRAMP High Framework - IL5 Level of Effort - Medium Priority - High Scope - Blueprint Security
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 32/100
google/stellar-engine#373 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] modules/access-context-manager, beyondcorp: evaluate all access level conditions and enforce endpoint verificationCó thể đã có người làm @LeonxLJX đã nhận 2 ngày trước. Đang mởBug Framework - FedRAMP High Framework - IL5 Level of Effort - Low Priority - Medium Scope - Module Security
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
google/stellar-engine#372 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của google/stellar-engine
Issue tương tự
-
helm-knative-apply.sh fails with Helm 4Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởarea: triage theme: undefined
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
jhipster/generator-jhipster#35895 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
[BUG] storage.join uses os.path.join on Windows, corrupting remote storage URIs (s3://, gs://) with backslashesCó thể đã có người làm @muskan-creates352 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
flyteorg/flyte#8280 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Use fully qualified image names in chart defaults (short names fail on OpenShift 4.21 / CRI-O 1.34)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Bug with NLB: `ensureTargetGroup` calls `ModifyTargetGroup` on every sync when the health check is HTTP/HTTPSCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởneeds-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
kubernetes/cloud-provider-aws#1517 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày