You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Breaking changes
The HTTP transport does not start without a strong BEARER_TOKEN
(#177). An HTTP deployment that has no token, the .env.example value
(your-secure-token-here), one shorter than 32 characters or one
containing whitespace now exits 1 at startup instead of serving. Fix: set BEARER_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 /health said 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
unless TRUST_PROXY is set (#177). See Security. A deployment behind a
proxy that sends X-Forwarded-For or Forwarded and does not set TRUST_PROXY now shares one counter of 100 requests per 15 minutes
across all clients instead of 10,000. Fix: set TRUST_PROXY to the
proxy's address, e.g. TRUST_PROXY=172.18.0.2 for a proxy container
(docker network inspect <network> shows it).
HOST must be an IP address or localhost (#177). The HTTP transport
now reads HOST as its listen address, and tcsh exports HOST as the
machine's name, so dav-mcp --http started from tcsh exits 1 with a
message naming HOST. Fix:unsetenv HOST before starting, or pass
the address with --host=127.0.0.1.
Added
HOST (and --host=) sets the HTTP listen address (#177): an IP
address or localhost, default every interface as before, which the
Docker image needs. HOST=127.0.0.1 keeps a workstation setup off the
network. The startup log names the address and port actually bound.
TRUST_PROXY names the reverse proxies whose X-Forwarded-For says
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_contacts and addressbook_query cache 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 with npm 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 through TRUST_PROXY now gets
the standard limit, and so does a request whose address is a trusted
proxy (one that sent no X-Forwarded-For). A container that connects
directly, n8n in the same compose network for example, keeps the raised
limit unless TRUST_PROXY covers its address: with uniquelocal, or a
range that includes it, it counts as a proxy and gets the standard limit,
and with loopback so 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 an addressbook-query, so OX App Suite
(mailbox.org) returns its contacts where it used to return none
(PhilflowIO/tsdav#48). list_contacts and addressbook_query already 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.ics and a%40b.ics) match, and Digest logins are
stricter (per-realm sessions, no -sess without qop).