[Bug] fast/stages-aw/3-security, scripts: fix cross-env KMS admin grant, VPC-SC dry-run status, and script input handling
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- bash, gcp, shell, terraform
- Ambito
- cloud, devops, infrastructure, security
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- HCL
- Stelle
- 61
- Fork
- 28
- Merge medio
- 1g 22h
- PR unite (30g)
- 72
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di google/stellar-engine
-
Documentation Level of Effort - Low Priority - Low Scope - Fast
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
google/stellar-engine#385 ·
I maintainer di solito rispondono entro 1 giorno
-
Enhancement Framework - FedRAMP High Level of Effort - Low Priority - Medium Scope - Blueprint Scope - Module
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
google/stellar-engine#320 ·
I maintainer di solito rispondono entro 1 giorno
-
[Feature Request] Gemini Enterprise CMEK index pre-warming, companion seed data store, declarative CmekConfig, and readiness probeForse già presa @Calvin-Cheng1 l’ha presa oggi. ApertaEnhancement Gemini - Enterprise Gemini - Government Level of Effort - Medium Priority - High Scope - Blueprint Scope - Fast
google/stellar-engine#390 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[Feature Request] Support regulated and non-regulated multi-tenancy within a single GCP OrganizationApertaEnhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
google/stellar-engine#388 ·
I maintainer di solito rispondono entro 1 giorno
-
Feature Request: Support regulated and non-regulated multi-tenancy within a single GCP OrganizationForse già presa @Calvin-Cheng1 l’ha presa oggi. Aperta
google/stellar-engine#387 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di google/stellar-engine
Issue simili
-
area: triage theme: undefined
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
jhipster/generator-jhipster#35895 ·
I maintainer di solito rispondono entro 1 giorno
-
Category: OneSwap Status: Accepted
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
OpenNebula/one#8237 ·
-
Update scaler CreateLogGroup permission for CloudWatch Logs ARN enforcementForse già presa @petetomasik l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
buildkite/terraform-buildkite-elastic-ci-stack-for-aws#191 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
newrelic/newrelic-lambda-layers#562 · 1 commento ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100