[Bug] 2-networking-a-fedramp: the NVA return routes still omit the proxy-only subnets, so traffic from a regional managed load balancer's proxies cannot get replies from the internet
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 70/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- gcp, terraform
调研方向
从 fast/stages-aw/2-networking-a-fedramp/nva.tf 中 local.routing_config 的 landing 条目开始,该条目仅根据 var.subnets 构建路由,然后将其与 branch-net-envs.tf 中的 subnets_proxy_only 以及 variables.tf 中的 var.proxy_subnets 进行比较。当每个环境的 proxy-only CIDR 都包含在 landing 路由中,并且 modules/cloud-config-container/simple-nva/cloud-config.yaml 中的 NVA 虚拟机 cloud-config 接收到该 CIDR 时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Bug Description
PR #269 (closing #146) builds the NVAs' trusted-side return routes from every tenant subnet of every environment. The proxy-only subnet that branch-net-envs.tf creates in each environment spoke (subnets_proxy_only, CIDR from var.proxy_subnets[<env>], name proxy-<regions.primary>) is still not among them: the landing entry of local.routing_config in nva.tf reads var.subnets only (if s.tenant != null), and nva.tf never references var.proxy_subnets.
The spokes have their default routes deleted (delete_default_routes_on_create = true) and reach the internet through the default-route-nva route (0.0.0.0/0 → the NVA internal load balancer) and Cloud NAT on the DMZ VPC. A regional managed load balancer in a spoke — for example a regional internal Application Load Balancer whose backend is a regional internet NEG, which is how blueprints/gemini-enterprise reaches the Google-hosted Gemini Enterprise endpoint (gemini-stage-0/network.tf: an INTERNET_FQDN_PORT NEG for vertexaisearch.cloud.google.com) — originates its backend connections from the Envoy proxies in that spoke's proxy-only subnet. Those packets leave through the NVA and are masqueraded on the DMZ interface. The reply comes back to the NVA, is un-NATed to the proxy-only address, and — because the guest has no route for that range on the landing interface (simple-nva's cloud-config adds ip route add <cidr> via <eth1 gateway> only for the listed routes) — follows the VM's default route back out the untrusted interface. The connection hangs and times out; nothing errors at apply time, and DNS keeps resolving, so it reads as a firewall or DNS problem.
Environment and Deployment Context
- Stellar Engine Version/Commit:
v5.2.0(82153050); unchanged onmain@e2396049(2026-11-01).fast/stages-aw/2-networking-a-fedramp/nva.tflines 28-37 (thelandingroutes),branch-net-envs.tflines 114-119 (subnets_proxy_only;delete_default_routes_on_createat line 107),variables.tflines 257-268 (proxy_subnets, one entry required perenvs_folderskey),modules/cloud-config-container/simple-nva/cloud-config.yamllines 57-59 (guest routes only for the listed CIDRs). - 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):
2-networking-a-fedramp
Steps to Reproduce
- Deploy Stages 0-2 with
2-networking-a-fedrampatv5.2.0, withproxy_subnetsset for each environment (required by the variable's validation). - In a spoke, deploy a regional managed load balancer whose backend is a regional internet NEG (for example
gemini-stage-0andgemini-stage-1with the internal deployment type). - Send a request to the load balancer from a client in the spoke.
- On an NVA:
ip route get <an address in the proxy-only CIDR>shows the route viaeth0(the DMZ side), noteth1.
Expected Behavior
Every subnet whose egress is routed through the NVAs — tenant subnets and proxy-only subnets — gets a trusted-side return route, so replies to the load balancer's proxies are delivered.
Actual Behavior
Replies to the proxy-only range leave the NVA on the untrusted side; the load balancer's backend connections time out.
Relevant Logs and Errors
None at deploy time: the plan and apply succeed. The symptom is the request hanging at the load balancer.
Additional Context
- Suggested fix — add each environment's proxy-only CIDR to the
landingroutes:
(routes = flatten([ for k, v in var.envs_folders : concat( [for s in try(var.subnets[lower(k)], []) : module.env-spoke-vpc[k].subnets["${s.region}/${s.name}"].ip_cidr_range if s.tenant != null], [var.proxy_subnets[k]] ) ])var.proxy_subnetsis keyed by theenvs_folderskey itself, not its lower-cased form, and its validation already guarantees an entry for every environment.) - #146 reported the tenant-subnet half; it did not mention the proxy-only subnets, which is why #269 did not cover them.
- 主要语言
- HCL
- 星标
- 61
- 派生
- 28
- 平均合并
- 1 天 17 小时
- 30 天内合并 PR
- 74
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
google/stellar-engine 的其他 Issue
-
Documentation Gemini - Enterprise Level of Effort - Low Priority - Low Scope - Blueprint Scope - Module
难度 2/5 1-3 小时 新手友好度 78/100
google/stellar-engine#401 ·
维护者通常 1 天内回复
-
[Documentation] docs/ddg.md: the header and Variables tables use inline HTML, which Google Docs now shows as raw text可能已有人在做 @pulsingSignal 于 1 天前认领。 未关闭Documentation Level of Effort - Low Priority - Low
难度 1/5 1-3 小时 新手友好度 88/100
google/stellar-engine#397 ·
维护者通常 1 天内回复
-
[Documentation] 0-bootstrap: document Google producer organization ID inline for compute.restrictVpcPeering可能已有人在做 @Hariharan18092006 于 4 天前认领。 未关闭Documentation Level of Effort - Low Priority - Low Scope - Fast
难度 2/5 1-3 小时 新手友好度 73/100
google/stellar-engine#385 · 1 条评论 ·
维护者通常 1 天内回复
-
Enhancement Framework - FedRAMP High Level of Effort - Low Priority - Low Scope - Blueprint Scope - Module
难度 2/5 1-3 小时 新手友好度 76/100
google/stellar-engine#320 ·
维护者通常 1 天内回复
-
Bug Framework - FedRAMP High Framework - FedRAMP Moderate Framework - IL4 Framework - IL5 Gemini - Enterprise Gemini - Government Level of Effort - Low Priority - Medium Scope - Blueprint Scope - Fast
难度 4/5 1-2 天 新手友好度 56/100
google/stellar-engine#402 ·
维护者通常 1 天内回复
查看 google/stellar-engine 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
dataforgoodfr/cetolog#21 ·
-
good first issue priority: low tests
难度 2/5 1-3 小时 新手友好度 88/100
TMHSDigital/Free-Game-Dev-Assets#267 ·
维护者通常 1 天内回复
-
agentic-workflows
难度 1/5 1 小时以内 新手友好度 85/100
githubnext/gh-cao#20316 ·
维护者通常 1 天内回复
-
review-2.0.0 security
难度 2/5 1-3 小时 新手友好度 77/100
dkuenzel/meshcore-home-gateway#102 ·
维护者通常 1 天内回复
-
good first issue priority:low type:bug
难度 2/5 1-3 小时 新手友好度 78/100
crazy-goat/fdb-php#184 ·
维护者通常 1 天内回复