Breaking changes
- The HTTP transport does not start without a strong
BEARER_TOKEN
(#177). An HTTP deployment that has no token, the.env.examplevalue
(your-secure-token-here), one shorter than 32 characters or one
containing whitespace now exits 1 at startup instead of serving.
Fix: setBEARER_TOKEN=$(openssl rand -hex 32)and give the new value
to your MCP clients. Without a token the server
answered 500 to every MCP request while/healthsaid healthy; with the
example value anybody who had read the README could use it. stdio is not
affected. - Behind a reverse proxy, forwarded requests lose the raised rate limit
unlessTRUST_PROXYis set (#177). See Security. A deployment behind a
proxy that sendsX-Forwarded-FororForwardedand does not set
TRUST_PROXYnow shares one counter of 100 requests per 15 minutes
across all clients instead of 10,000. Fix: setTRUST_PROXYto the
proxy's address, e.g.TRUST_PROXY=172.18.0.2for a proxy container
(docker network inspect <network>shows it). HOSTmust be an IP address orlocalhost(#177). The HTTP transport
now readsHOSTas its listen address, and tcsh exportsHOSTas the
machine's name, sodav-mcp --httpstarted from tcsh exits 1 with a
message namingHOST. Fix:unsetenv HOSTbefore starting, or pass
the address with--host=127.0.0.1.
Added
HOST(and--host=) sets the HTTP listen address (#177): an IP
address orlocalhost, default every interface as before, which the
Docker image needs.HOST=127.0.0.1keeps a workstation setup off the
network. The startup log names the address and port actually bound.TRUST_PROXYnames the reverse proxies whoseX-Forwarded-Forsays
who the client is (#177): proxy addresses, CIDR ranges and
loopback/linklocal/uniquelocal, comma-separated. Rate limits then
count per client. A range trusts every peer in it (uniquelocal: every
container on the compose network).TRUST_PROXY=true, hop counts and
ranges wider than /8 (IPv4) or /32 (IPv6) are refused: each lets a client
that reaches the port directly choose its own address.list_contactsandaddressbook_querycache vCards per login (#190):
each call lists hrefs and ETags with one PROPFIND and fetches only new or
changed vCards. On mailbox.org a repeated call on a 1000-contact address
book drops from about 150 s to 0.2 s. Without ETags, or when the
PROPFIND fails, the tools fetch every vCard as before.
Security
- The container image carries a build provenance attestation (#177).
docker buildx imagetools inspect ghcr.io/philflowio/dav-mcp:<version> --format '{{json .Provenance}}'shows the commit, workflow run and base
images it was built from. The release build no longer reads the GitHub
Actions build cache that every push to main writes, so a published image
comes from the tag's sources alone. - CI pins every GitHub Action to a commit SHA, as the release workflows
already did, Dependabot keeps those pins current, and the test and lint
jobs install from the lockfile withnpm ci(#177). - The raised rate limit for private addresses no longer reaches every
client behind a reverse proxy (#177). The proxy's private address was
taken for the client's, so each internet client got 10,000 requests per
15 minutes before the bearer token check instead of 100. A request that
says it was forwarded and is not resolved throughTRUST_PROXYnow gets
the standard limit, and so does a request whose address is a trusted
proxy (one that sent noX-Forwarded-For). A container that connects
directly, n8n in the same compose network for example, keeps the raised
limit unlessTRUST_PROXYcovers its address: withuniquelocal, or a
range that includes it, it counts as a proxy and gets the standard limit,
and withloopbackso does every client on the same host. List only the
proxy's own address so other local clients keep the raised limit. Unique
local (fc00::/7) and link-local (fe80::/10) IPv6 addresses now count as
private like the RFC 1918 ranges.
Changed
- Dependencies: @philflow/tsdav 2.6.0. tsdav lists an address book
with a PROPFIND instead of anaddressbook-query, so OX App Suite
(mailbox.org) returns its contacts where it used to return none
(PhilflowIO/tsdav#48).list_contactsandaddressbook_queryalready list
this way since #190; the fix covers their fallback, which fetches every
vCard when the server lists no ETags. 2.6.0 also brings in upstream tsdav
up to v2.5.1 (PhilflowIO/tsdav#50): OAuth tokens are refreshed before they
expire instead of failing the first request after expiry, a sync token the
server rejects starts a full resync, object URLs that differ only in
percent-encoding (a@b.icsanda%40b.ics) match, and Digest logins are
stricter (per-realm sessions, no-sesswithoutqop).