Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Bug] 3-security: an enabled perimeter fails when the logging variable is unset

Aperta Adatta ai principianti
#318 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
76/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
gcp, terraform
Ambito
cloud

Direzione di ricerca

Inizia da fast/stages-aw/3-security/vpc-sc.tf e segui il modo in cui il perimetro predefinito ottiene le proprie policy di ingress quando var.logging è null. Esegui terraform plan per lo stage con un perimetro predefinito e il logging non impostato, per riprodurre l’errore. Il lavoro è completato quando il plan riesce e omette fast-org-log-sinks dalle policy del perimetro.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Bug Level of Effort - Low Priority - High Scope - Fast Security

Bug Description

The fast/stages-aw/3-security/vpc-sc.tf file always adds the fast-org-log-sinks ingress policy to the default perimeter, but defines that policy only when var.logging is set. With var.logging = null and a default perimeter, the perimeter references a policy that does not exist.

Environment and Deployment Context

  • Stellar Engine Version/Commit: main at commit 2b112119e
  • Deployment Type:
    • US Region Restricted (e.g., Access Policy constraint)
    • FedRAMP Moderate
    • FedRAMP High
    • DoD IL4
    • DoD IL5
    • Stand-alone / Custom
  • FAST Stage (if applicable):
    • Stage 0 (Bootstrap)
    • Stage 1 (Resource Management)
    • Stage 2 (Network Creation)
    • Stage 3 (Security and Audit)
  • Affected Component: fast/stages-aw/3-security
  • Terraform Version: any; static analysis of the configuration
  • GCP Provider Version: any

Steps to Reproduce

  1. Set vpc_sc.perimeter_default and leave logging unset.
  2. Run terraform plan for the stage.

Expected Behavior

The perimeter omits the log sink ingress policy when no logging configuration exists.

Actual Behavior

The plan fails on the undefined fast-org-log-sinks policy. After the upstream sync in #311, a module precondition reports the same problem.

Relevant Logs and Errors

The plan fails because the perimeter refers to an ingress policy key that local.vpc_sc_ingress_policies does not define.

Additional Context

  • Add fast-org-log-sinks to the perimeter ingress policies only when var.logging is not null.
  • Found while migrating the stage in #311.
Lingua principale
HCL
Stelle
55
Fork
21
Merge medio
1g 13h
PR unite (30g)
48

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di google/stellar-engine

Tutte le issue di google/stellar-engine

Issue simili

Altre issue su Cloud

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.