- An ingest key only the Worker holds. A tracker can now refuse every envelope that lacks a secret header. Set
ERROR_REPORTING_INGEST_KEYas a Worker secret, at least 32 characters (header nameERROR_REPORTING_INGEST_HEADER, defaultX-Rustrak-Ingest-Key). It goes only to the host ofERROR_REPORTING_DSN, over HTTPS: the Worker's own SDK sends it and no longer follows redirects, and no client bundle or response carries it. Without a key nothing changes against an open tracker. See error reporting. (bb2996b, 126c597) - One tunnel for the browser and the app.
POST /api/errors/tunnelforwards envelopes whose DSN names the host and project of one inERROR_REPORTING_TUNNEL_DSNS(comma-separated) orVITE_ERROR_REPORTING_DSN, and answers 403 to any other before counting it. It adds the ingest header for the Worker's own tracker, uses the allowed DSN's own key, caps bodies at 256 KB, never follows a redirect and keeps the database limit of 30 a minute per User or address. (bb2996b) - The Expo app posts to the Worker. Errors go to
${EXPO_PUBLIC_SERVER_URL}/api/errors/tunnel, never to the tracker. The native SDKs cannot use a tunnel, so they stay off: JS errors are reported, native crashes no longer are. Add the app's DSN toERROR_REPORTING_TUNNEL_DSNS. (42100e8) - A locked-down ingest host.
deploy/error-trackergains thelockedprofile: Caddy in front of Rustrak passes onlyPOST /api/<id>/envelope/with the ingest key and sentry-cli uploads with their token, answers 403 to an envelope without the key and 404 to the rest. The README also describes a dashboard reachable only on a Tailscale tailnet. A local run proved the Worker's event, a browser error and an app envelope through the tunnel, a foreign DSN refused, and no key in any stored event. (1ce77d2)
Error reports reach a locked-down tracker only through the Worker
The Worker alone holds the tracker's ingest key; the browser and the Expo app send through /api/errors/tunnel, which forwards an allowlist of DSNs.
Edit on GitHubDocumentation is in English.