fix(ingress): decouple ALB scheme from insecure (spokes stay internet-facing) #947
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 238 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.328
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #947"
general
weight: 0.35
shapirov103
Summary
Split out of #926 per review feedback (review): this is the spoke ALB scheme fix, independent of the peeks-agent feature.
core.yamlgated the platformIngressClassParamsscheme=internaloninsecure=truealone. Sinceinsecureis now propagated from an (insecure / CloudFront-terminated) hub onto its KRO spoke cluster secrets, spokes inheritinsecure=trueand their platform ALB flipped to internal — but spokes have no CloudFront edge, so their apps (rust/java, addressed via the spoke ALB hostname /DNS_DEV,DNS_PROD) became unreachable from the IDE/Internet. This regressed spoke reachability vs v0.3.4, where spoke secrets carried noinsecureannotation (defaultinternet-facing).Fix
Decouple scheme from insecure:
scheme=internalonly wheninsecure=trueANDingress_domain_nameis non-empty (i.e. the cluster is fronted by CloudFront — the hub). Spokes keepinsecure=truefor HTTP-only listeners (no ACM cert → avoids the LBCCreateListenercrashloop that the insecure-propagation change fixed) but stay internet-facing, restoring direct reachability.| Cluster | insecure | ingress_domain_name | scheme | reachable |
|---|---|---|---|---|
| hub (CloudFront) | true | set | internal | via CloudFront |
| spoke-dev/prod | true | empty | internet-facing | direct (
http://$DNS_*) || domain mode | false | set | internet-facing | direct |
Hub behavior in CloudFront mode (internal + VPC origin) and domain mode (internet-facing) is unchanged.
Validation
Validated live on Workshop Studio build-3: after reconcile,
peeks-spoke-dev-platform/peeks-spoke-prod-platformALBs recreated internet-facing (public probe responds),peeks-hub-platformstays internal.Single-file change:
gitops/addons/registry/core.yaml.