Repository navigation
Trust the missing NINA intermediate on Cloud; probe with the backend's UA - #1277
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The scheduled keyless probe failed on 26 Oct (run 40317878254) for two adapters:
warnung.bund.denow 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 withUNABLE_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.anythingmcp/1.0 (+https://anythingmcp.com)), not from the datacenter IP. Any agent with a(+https://…)part, orbot, 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 getsNODE_EXTRA_CA_CERTS=/app/extra-ca/extra-ca.pemand mounts./certsread-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/beforerelease.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_CERTSto this file.Type
Testing
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.helpcodeai/anythingmcp:latest: without the file NINA givesUNABLE_TO_VERIFY_LEAF_SIGNATURE; with the file mounted andNODE_EXTRA_CA_CERTSset it gives 200. GitHub and ESPN give 200 in both cases.openssl verify -untrusted extra-ca.pem leaf.pemon the warnung.bund.de leaf: OK.docker compose -f docker-compose.cloud.yml --profile blue configrenders the new variable and mount.bash deploy/cloud/release.test.sh: exit 0.Checklist