From d549b9d4dd6d152aba70868fa262af284b3d57b0 Mon Sep 17 00:00:00 2001 From: Shadowbroker <43977454+BigBodyCobain@users.noreply.github.com> Date: Tue, 6 Oct 2026 15:49:59 -0600 Subject: [PATCH] docs(basemap): record OpenFreeMap default and CARTO override --- docs/OUTBOUND_DATA.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/docs/OUTBOUND_DATA.md b/docs/OUTBOUND_DATA.md index ab96f08d..0142bafa 100644 --- a/docs/OUTBOUND_DATA.md +++ b/docs/OUTBOUND_DATA.md @@ -78,13 +78,15 @@ Shadowbroker is **self-hosted**: each install uses its own backend egress IP. Th --- -## Basemap CDN (#354) +## Basemap CDN (#354, #583) -- **Code:** `frontend/src/components/map/styles/mapStyles.ts`, `frontend/public/map-style.json` -- **Hosts:** `*.basemaps.cartocdn.com`, `demotiles.maplibre.org` -- **Exposure:** **Browser** loads tiles (client IP + pan/zoom), not the backend -- **API key:** CARTO requires a key for basemap tiles. `CARTO_API_KEY` lives with the other backend keys (env or the API Keys panel) and is served to the browser by the public backend route `GET /api/basemap-config` through the normal same-origin `/api/*` path (Next.js proxy in web mode, companion server in packaged desktop). The browser then sends it to `*.basemaps.cartocdn.com` as a `?key=` query parameter on every tile request, so it is not treated as a secret. Unset it to keep the previous unkeyed behavior (watermarked tiles). -- **Mitigation:** Self-host raster tiles and point MapLibre `sources` at your tile server (operator choice; not required for core features) +- **Code:** `frontend/src/components/map/styles/mapStyles.ts` +- **Default host:** `tiles.openfreemap.org` +- **Default behavior:** OpenFreeMap Dark/Positron vector styles load without registration or an API key. OpenFreeMap's public instance is the zero-config path. +- **Optional CARTO override:** If `CARTO_API_KEY` is configured (env or API Keys panel), ShadowBroker keeps the existing CARTO raster dark/light basemap. The key is served by `GET /api/basemap-config` and sent by the browser to `*.basemaps.cartocdn.com`. +- **Exposure:** Basemap requests are made by the **browser**, so the selected provider sees browser network metadata and requested map resources. +- **Attribution:** ShadowBroker explicitly displays OpenStreetMap plus the active basemap provider attribution. +- **Self-hosting:** OpenFreeMap is open-source and supports self-hosting; operators can replace the public basemap endpoint if they need full infrastructure control. ---