Dial pinned api-backup addresses when api.defined.net fails to resolve #55
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 193 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.315
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #55"
general
weight: 0.35
JackDoan
Problem
Once DNS is pointed into a Nebula network, a host can end up unable to reach the API at all:
Change
Both HTTP transports use a dialer that retries a
net.DNSErroragainst the pinned addresses behindapi-backup.defined.net(209.46.53.8, 209.46.53.81, 209.46.53.153 -api_byoip_pinned_addressesin the ansible repo,prevent_destroy). The list is keyed by hostname, so test servers and-serveroverrides are unaffected. Only the dialed address changes: SNI and Host stayapi.defined.netand TLS still verifies against it, so a fallback address cannot impersonate the API.When every fallback also fails, the returned error chains the original DNS error and each fallback error.
Testing
TestDialWithFallback: dialingapi.invalidwith a loopback fallback lands on a local listener; a host without a fallback returns the DNS error unchanged. Suite passes with-race.api.defined.net, presents theapi.defined.netcert, and returns 200 forGET /v1/downloads.internal/appandinternal/dnclientdtests pass with go.mod replaced to this branch.Not reproduced: a real resolver timeout (the test uses NXDOMAIN; both surface as
net.DNSError). A timeout still costs the resolver's full timeout before the fallback fires.