Skip to content

Networking and external services ​

Encyclopedia home · Search machine-readable catalog

The broken snippets are deliberate negative examples. Use only in an isolated fixture repository or lab.

F095 ​

DNS search path differs within runner

Symptom. Could not resolve host api.

Root cause. Short name resolves differently outside target namespace.

Broken example

bash
curl -fsS https://api/healthz

Corrected example

bash
curl -fsS https://api.staging.svc.cluster.local/healthz

Verification. Use an approved fully qualified name reachable from job network.

Correction validation syntax-validated.

F096 ​

TLS host mismatch under IP probe

Symptom. certificate subject name does not match.

Root cause. Certificate covers hostname and expects SNI.

Broken example

bash
curl "https://$INGRESS_IP/healthz"

Corrected example

bash
curl --resolve "$INGRESS_HOST:443:$INGRESS_IP" "https://$INGRESS_HOST/healthz"

Verification. Verify chain and expected hostname without disabling TLS verification.

Correction validation syntax-validated.

F097 ​

HTTP error swallowed by default curl

Symptom. step passes despite error response.

Root cause. Default curl can return success for HTTP 500.

Broken example

bash
curl -s "$HEALTH_URL"

Corrected example

bash
curl -fsS --max-time 5 "$HEALTH_URL"

Verification. Test against an endpoint returning 500.

Correction validation syntax-validated.

F098 ​

No request deadline

Symptom. step stalls until outer job timeout.

Root cause. A stalled remote service can hold a job indefinitely.

Broken example

bash
curl -fsS "$HEALTH_URL"

Corrected example

bash
curl -fsS --connect-timeout 3 --max-time 8 "$HEALTH_URL"

Verification. Test against a fixture that delays headers.

Correction validation syntax-validated.

F099 ​

Retry loop duplicates a mutation

Symptom. duplicate deployment requests.

Root cause. Timed-out writes can already be accepted server-side.

Broken example

bash
curl --retry-all-errors --retry 3 -X POST "$DEPLOY_URL"

Corrected example

bash
curl --fail-with-body --max-time 10 -H "Idempotency-Key: $RELEASE_SHA" -X POST "$DEPLOY_URL"

Verification. Require server-enforced idempotency plus a way to query state.

Correction validation syntax-validated.

F100 ​

Rate-limit response misread as no data

Symptom. legitimate records appear to vanish.

Root cause. HTTP failure and unexpected shape were coerced to empty result.

Broken example

bash
curl -s "$API_URL" | jq '.items // []'

Corrected example

bash
set -o pipefail
curl --fail-with-body --max-time 10 "$API_URL" | jq -e '.items|type=="array"'

Verification. Test fixture 429 and follow bounded Retry-After policy for safe reads.

Correction validation syntax-validated.