Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/deploy-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
host: ${{ secrets.CLOUD_HOST }}
username: root
key: ${{ secrets.CLOUD_SSH_KEY }}
source: "docker-compose.cloud.yml,deploy/cloud/Caddyfile,deploy/cloud/release.sh,deploy/cloud/uptime-probe.sh,deploy/cloud/systemd/anythingmcp-probe.service,deploy/cloud/systemd/anythingmcp-probe.timer,deploy/cloud/stuck-users-report.sh,deploy/cloud/systemd/anythingmcp-stuck-report.service,deploy/cloud/systemd/anythingmcp-stuck-report.timer,deploy/cloud/trial-report.sh,deploy/cloud/systemd/anythingmcp-trial-report.service,deploy/cloud/systemd/anythingmcp-trial-report.timer,deploy/motis/Dockerfile,deploy/motis/config.yml,deploy/motis/entrypoint.sh"
source: "docker-compose.cloud.yml,deploy/cloud/Caddyfile,deploy/cloud/release.sh,deploy/cloud/uptime-probe.sh,deploy/cloud/systemd/anythingmcp-probe.service,deploy/cloud/systemd/anythingmcp-probe.timer,deploy/cloud/stuck-users-report.sh,deploy/cloud/systemd/anythingmcp-stuck-report.service,deploy/cloud/systemd/anythingmcp-stuck-report.timer,deploy/cloud/trial-report.sh,deploy/cloud/systemd/anythingmcp-trial-report.service,deploy/cloud/systemd/anythingmcp-trial-report.timer,deploy/motis/Dockerfile,deploy/motis/config.yml,deploy/motis/entrypoint.sh,deploy/cloud/certs/extra-ca.pem"
target: /tmp/anythingmcp-deploy
overwrite: true

Expand Down Expand Up @@ -69,6 +69,12 @@ jobs:
# tag is missing (fresh droplet or a bumped tag), otherwise the
# existing image is reused.

# Extra CA intermediates for the backend's NODE_EXTRA_CA_CERTS
# (see docker-compose.cloud.yml). Installed before release.sh so
# the new colour starts with them.
mkdir -p ./certs
install -m 644 /tmp/anythingmcp-deploy/deploy/cloud/certs/extra-ca.pem ./certs/extra-ca.pem

# Uptime probe: a systemd timer on this host, every minute, mailing
# on a change of state. It is here and not only in GitHub Actions
# because the scheduled workflow ran three times in its first ten
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/keyless-probe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ jobs:
- name: Probe
env:
PROBE_MOTIS_URL: http://localhost:8080
# The same trust store as the Cloud backend (docker-compose.cloud.yml).
NODE_EXTRA_CA_CERTS: deploy/cloud/certs/extra-ca.pem
run: node scripts/probe-keyless.mjs --check --all

- name: MOTIS logs
Expand Down
33 changes: 33 additions & 0 deletions deploy/cloud/certs/extra-ca.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Intermediate certificates added to Node's trust store on AnythingMCP Cloud
# (NODE_EXTRA_CA_CERTS in docker-compose.cloud.yml) and in the keyless probe.
# Only for public upstreams that serve their leaf certificate without the
# intermediate: browsers and macOS fetch the missing one, Node does not and
# fails with UNABLE_TO_VERIFY_LEAF_SIGNATURE. Each entry is a public CA
# intermediate, never a private or self-signed root. Remove an entry once
# its upstream sends the full chain again.
#
# Sectigo Public Server Authentication CA DV E36 (issuer: Root E46),
# valid until 2036-03-21. Missing from warnung.bund.de (nina-warnung) since
# October 2026. Source: http://crt.sectigo.com/SectigoPublicServerAuthenticationCADVE36.crt
# SHA-256: 87:3F:0B:A8:0E:3A:C2:22:65:6D:FD:04:15:8C:C1:5C:29:27:D4:2D:5D:05:F0:1D:EE:4A:47:EB:43:A9:16:DF
-----BEGIN CERTIFICATE-----
MIIDXzCCAuagAwIBAgIQNuBZ7YiN1Xrt1XC2cn+b2jAKBggqhkjOPQQDAzBfMQsw
CQYDVQQGEwJHQjEYMBYGA1UEChMPU2VjdGlnbyBMaW1pdGVkMTYwNAYDVQQDEy1T
ZWN0aWdvIFB1YmxpYyBTZXJ2ZXIgQXV0aGVudGljYXRpb24gUm9vdCBFNDYw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diff line change
Expand Up @@ -192,11 +192,17 @@ x-backend: &backend
- LIBREDESK_API_SECRET=${LIBREDESK_API_SECRET:-}
- LIBREDESK_WEBHOOK_SECRET=${LIBREDESK_WEBHOOK_SECRET:-}
- LIBREDESK_AI_ASSISTANT_USER_ID=${LIBREDESK_AI_ASSISTANT_USER_ID:-}
# Public CA intermediates that some upstreams forget to send (Node does
# not fetch a missing intermediate the way browsers do). The file is
# deploy/cloud/certs/extra-ca.pem, installed by deploy-cloud.yml; if it
# is missing Node logs a warning and starts with its default store.
- NODE_EXTRA_CA_CERTS=/app/extra-ca/extra-ca.pem
volumes:
# One heap snapshot per process, written by the heap guard when the heap
# crosses HEAP_SNAPSHOT_PERCENT. A volume so it outlives the container
# that wrote it — the whole point is to read it after the restart.
- diagnostics:/app/diagnostics
- ./certs:/app/extra-ca:ro
depends_on:
postgres:
condition: service_healthy
Expand Down
6 changes: 5 additions & 1 deletion scripts/probe-keyless.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ function isKeyless(a) {
}

const PROBED_AUTH = new Set(['NONE', 'LOGIN_TOKEN']);
const USER_AGENT = 'anythingmcp/1.0 (+https://anythingmcp.com)';
// The REST engine sets no User-Agent of its own, so the backend sends axios's
// default; an adapter's own header still wins. Probe with the same, or a bot
// filter that reacts to a crawler-style agent (ESPN, October 2026) fails here
// while cloud calls work.
const USER_AGENT = 'axios/1.20.0';

/** Mirror of RestEngine.resolveValue for the subset a probe needs. */
function resolveValue(value, params) {
Expand Down
Loading