Skip to content

Trust the missing NINA intermediate on Cloud; probe with the backend's UA - #1277

Merged
helpcodeai merged 1 commit into
mainfrom
fix/cloud-extra-ca-nina
Oct 26, 2026
Merged

helpcodeai merged 1 commit into
mainfrom
fix/cloud-extra-ca-nina

Conversation

@helpcodeai

Copy link
Copy Markdown
Contributor

Summary

The scheduled keyless probe failed on 26 Oct (run 40317878254) for two adapters:

  • nina-warnung: warnung.bund.de now serves its leaf certificate without the Sectigo Public Server Authentication CA DV E36 intermediate. Browsers and macOS fetch the missing certificate; Node does not and fails with UNABLE_TO_VERIFY_LEAF_SIGNATURE. I reproduced it from the Cloud droplet against all six of their addresses, so the adapter is broken on Cloud too. The probe passed on 19 Oct, so the change on their side is recent.
  • espn: the 403 came from the probe's crawler-style User-Agent (anythingmcp/1.0 (+https://anythingmcp.com)), not from the datacenter IP. Any agent with a (+https://…) part, or bot, gets 403. The backend's REST engine sets no User-Agent, so Cloud sends axios's default and gets 200 (checked from the Cloud backend container).

Changes

  • deploy/cloud/certs/extra-ca.pem: the public Sectigo DV E36 intermediate (from Sectigo's AIA URL, SHA-256 in the file header), with a header explaining when an entry belongs there and when to remove it.
  • docker-compose.cloud.yml: the backend gets NODE_EXTRA_CA_CERTS=/app/extra-ca/extra-ca.pem and mounts ./certs read-only. If the file is missing, Node logs a warning and keeps its default store.
  • deploy-cloud.yml: copies the file and installs it into /opt/anythingmcp-cloud/certs/ before release.sh, so the new colour starts with it.
  • keyless-probe.yml: the probe uses the same file, so it trusts what Cloud trusts.
  • scripts/probe-keyless.mjs: the default User-Agent is now axios's, matching the backend. Adapters that set their own User-Agent (deutsche-bahn, georgian-railway) still send theirs.

Cloud: NINA works again after the next Cloud deploy. Self-hosted: nothing changes. Self-hosters on Linux hit the same NINA error until BBK fixes its chain; they can set NODE_EXTRA_CA_CERTS to this file.

Type

  • Bug fix

Testing

  • Tested manually

From the repository root:

  • NODE_EXTRA_CA_CERTS=deploy/cloud/certs/extra-ca.pem node scripts/probe-keyless.mjs --check --all: 32 probed, 20 ok, 0 failing, 1 skipped (MOTIS not running locally); exit 0. Before the change: nina-warnung and espn failed.
  • I compared the verdicts for all 32 adapters with the old and new User-Agent. Only espn changes (auth-required → ok).
  • On the droplet, in throwaway containers of helpcodeai/anythingmcp:latest: without the file NINA gives UNABLE_TO_VERIFY_LEAF_SIGNATURE; with the file mounted and NODE_EXTRA_CA_CERTS set it gives 200. GitHub and ESPN give 200 in both cases.
  • openssl verify -untrusted extra-ca.pem leaf.pem on the warnung.bund.de leaf: OK.
  • docker compose -f docker-compose.cloud.yml --profile blue config renders the new variable and mount.
  • bash deploy/cloud/release.test.sh: exit 0.

Checklist

  • My code follows the existing code style
  • I have tested my changes locally
  • This PR has a descriptive title

…s UA

warnung.bund.de now serves its leaf certificate without the Sectigo DV E36
intermediate, so Node fails with UNABLE_TO_VERIFY_LEAF_SIGNATURE and the
nina-warnung adapter is dead on Cloud. Ship that public intermediate in
deploy/cloud/certs/extra-ca.pem, install it with the Cloud deploy and load
it through NODE_EXTRA_CA_CERTS; the keyless probe uses the same file.

The probe also sent a crawler-style User-Agent that ESPN now refuses with
403, while the backend sends axios's default and gets 200. Probe with the
backend's agent so the check reflects what cloud users see.
@helpcodeai
helpcodeai enabled auto-merge (squash) October 26, 2026 12:28
@helpcodeai
helpcodeai merged commit 9aa7673 into main Oct 26, 2026
16 checks passed
@helpcodeai
helpcodeai deleted the fix/cloud-extra-ca-nina branch October 26, 2026 12:38
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant