Review follow-up:
- Drop the Next.js route. CARTO_API_KEY is now a regular backend registry
key (env, .env, or the API Keys panel) served by public
GET /api/basemap-config. Every frontend mode already proxies /api/* to
the backend (Next.js proxy in web mode, companion server in packaged
desktop), so this covers web and desktop with one mechanism and leaves
the static export untouched. Also removes the invalid non-handler
export from the route module by removing the module.
- useBasemapConfig: fail open to the unkeyed style after 3 s, abort the
request at 15 s, apply a late key when it arrives, cache successes per
page and retry failures on the next mount.
- Declare OSM/CARTO attribution on the raster source (same markup as the
viewer's existing AttributionControl so MapLibre de-duplicates it).
- Tests: backend endpoint (unset / set+trimmed / persisted operator key /
registry), hook behaviour (success, non-OK, network error, soft timeout
then late key, hard abort, shared request and retry), attribution and
gating source checks.
- CARTO_API_KEY moves to the backend service in docker-compose.yml; docs
updated accordingly.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
- chat_completion(): when the resolved provider is gemini_live and VOICE_CHAT_MODEL is empty, dial Google's OpenAI-compatible endpoint (https://generativelanguage.googleapis.com/v1beta/openai/chat/completions, Bearer <VOICE_GEMINI_API_KEY>) instead of failing chat_unconfigured — fixes the typed composer/hud-summary/turn legs for Gemini-only configs. New Settings field VOICE_GEMINI_CHAT_MODEL (default gemini-2.5-flash).
- POST /api/voice/provider accepts {clear:true}: removes the provider's persisted key + its model/URL rows from data/operator_api_keys.env via new _remove_env_values helper, syncs live env with env-var-wins honesty, returns the fresh status shape. Saving again overwrites (upsert verified).
- Curated Gemini Live list refreshed: gemini-3.1-flash-live-preview leads, gemini-2.0-flash-live-001 secondary, gemini-3.5-live-translate-preview added; VOICE_GEMINI_MODEL default updated.
- Deterministic fallback is honest: a realtime-armed console says 'Voice provider armed (<id>) — text chat unavailable right now' instead of 'No model configured'.
- VoiceSetupCard: Replace-key note + Clear button for already-configured providers; i18n keys added in en/fr/fa/zh-CN.
- Tests: compat-dial contract (URL/Bearer/model), clear rows re-read, upsert replace, curated list; frontend clear-button + prefill coverage.
- Add anthropic_text provider: VOICE_ANTHROPIC_API_KEY registry row, VOICE_ANTHROPIC_BASE_URL setting, resolve_provider candidate ordered after realtime providers and before local_text, and a chat_completion branch that POSTs {base}/v1/messages (x-api-key + anthropic-version headers, system extraction, text-block reply assembly, input/output_tokens usage metering). Model reuses VOICE_CHAT_MODEL (Anthropic has no separate voice model) with the curated-list head as fallback.
Anthropic has NO realtime speech API: anthropic_text behaves like local_text on the media path — the WS relay refuses it (text_only_provider) and the mic keeps the TXT badge, never opening PTT.
- Custom endpoint: 'compat' already accepts arbitrary https base URLs (baseUrl+key+model); the new Custom endpoint preset is a UI alias posting {provider:'compat'}.
Tests: backend/tests/test_voice_anthropic.py (18) plus existing voice suites; frontend voice vitest suite 167 green; tsc clean in touched files. i18n keys added in en/zh-CN/fr/fa.
- VoiceHudPanel renders the setup card as the leading Connect-a-model section whenever providerResolved is null or local_text (enabled-but-unconfigured limbo); transcript+composer stay below it.
- VoiceSetupCard: OpenRouter and Local(Ollama) compat presets (baseUrl prefill/placeholder), Gemini model prefilled gemini-2.0-flash-live-001, debounced GET /api/voice/models dropdown plus always-usable free-text model input with verbatim failure detail; lands directly on the provider step when opt-in already succeeded.
- POST /api/voice/provider now persists the model row for compat too (VOICE_CHAT_MODEL) and VOICE_CHAT_MODEL joins the voice persisted-setting keys in api_settings.py.
- Mic button degraded corner badge: TXT only for text-mode-with-chat-model; NO AI + honest tooltip otherwise.
- Autofill hygiene: autoComplete/autocorrect/autocapitalize/spellCheck off on composer and all setup inputs; key field is type=password with show/hide toggle, name=voice-provider-key, autoComplete=new-password.
- i18n: new voice.badge.* and voice.setup.* keys in en/zh-CN/fr/fa.
POST /api/voice/opt-in and POST /api/voice/provider persist through the sanctioned operator-keys writer (_write_env_values on data/operator_api_keys.env), cache-clear get_settings, and report fresh effective state. Env-var-wins honesty preserved verbatim (managedByEnvironment + note when a real process env var governs a key). VOICE_GEMINI_API_KEY joins API_REGISTRY; behavioral opt-in/coordinate keys ride ALLOWED_ENV_KEYS via an explicit frozenset union (documented why not registry rows). Both endpoints sit inside the MESH_ONLY guard block; responses never echo key material.
Wire AISHUB_USERNAME into API Keys and onboarding, and surface backup status on the AIS outage banner so operators can keep vessel coverage without changing the AISStream proxy.
Co-authored-by: Cursor <cursoragent@cursor.com>
Persist OPENCLAW_HMAC_SECRET to data/openclaw.env so empty Docker env vars no longer block auth after UI bootstrap. Add verify_hmac.py, silence Rust warnings (#423), and document Docker signing (#424).
Co-authored-by: Cursor <cursoragent@cursor.com>
Bulk-ingest Airframes messages on a rate-limited staggered queue with instant cache lookups and priority per-aircraft refresh when opening a dossier; add Meshtastic manual SCAN PLANET control in the SIGINT panel.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add Earthdata token entry on the SAR tab with accurate Mode B status, expose optional FIRMS_MAP_KEY in API settings, and remove the frontend operator-unlock gate that blocked localhost saves. Run network-heavy layer-enable fetches on a background executor with frontend retry polling so FIRMS toggles no longer freeze the single API worker.
Add Telegram OSINT with hourly incremental t.me scraping, metro geocoding
separate from news centroids, threat-intercept popup UI with inline media,
and HTML markers above alert boxes so pins stay clickable. Expose GFW_API_TOKEN
in onboarding and Settings Maritime; harden GFW/CCTV/geo fetchers. Port Osiris-
derived recon, SCM, entity graph, malware/cyber feeds, sanctions, and submarine
cable layers with tests and documentation.
Co-authored-by: Cursor <cursoragent@cursor.com>
Reported by @tg12. Pre-fix, the Settings panel stored real third-party
Copernicus CDSE client_id + client_secret in browser localStorage /
sessionStorage via the privacy storage helper, and the proxy routes
required those values to come back in every tile/token request body.
Any same-origin script (XSS, malicious browser extension, dev-tools
HAR export) had read access to the credentials.
This change moves them server-side, behind the same .env-backed admin
flow every other third-party API key (OpenSky, AIS Stream, Finnhub,
Shodan, …) already uses.
Backend
-------
backend/services/api_settings.py
* Added SENTINEL_CLIENT_ID and SENTINEL_CLIENT_SECRET entries to
API_REGISTRY. The existing GET/PUT /api/settings/api-keys flow
(already require_local_operator-gated, .env-backed) now manages
them — no new route surface.
backend/routers/tools.py
* /api/sentinel/token and /api/sentinel/tile resolve credentials via
a new _resolve_sentinel_credentials() helper: body fields win for
back-compat with any legacy callers, otherwise the helper reads
SENTINEL_CLIENT_ID / SENTINEL_CLIENT_SECRET from os.environ.
* When neither source has a value, the route returns 400 with a
friendly pointer ("Set SENTINEL_CLIENT_ID and SENTINEL_CLIENT_SECRET
in the API Keys panel") instead of the curt "required" message.
The user's standing rule against hostile errors applies.
* Function bodies only — decorator lines untouched, so this PR does
not conflict with #303 (which adds Depends(require_local_operator)
to the same routes).
Frontend
--------
frontend/src/lib/sentinelHub.ts — rewritten
* Removed: getSentinelCredentials / setSentinelCredentials /
clearSentinelCredentials / getSentinelCredentialStorageMode.
These were the browser-storage read/write helpers; their existence
was the bug.
* Added: checkBackendSentinelStatus(), refreshSentinelStatus(),
getCachedSentinelStatus(), and a kept-for-back-compat
hasSentinelCredentials() shim. Status is sourced from
/api/settings/api-keys (the same endpoint the API Keys panel
already uses), so we don't add a new route just for this read.
* Added: migrateLegacySentinelBrowserKeys() — one-shot, idempotent
helper that clears sb_sentinel_client_id / _secret / _instance_id
from BOTH localStorage and sessionStorage. We deliberately do NOT
auto-POST those legacy browser values to the backend; doing so
would silently migrate a secret across a trust boundary without
operator consent. Operators re-enter once in the API Keys panel
and the legacy keys get wiped here.
* fetchSentinelTile and getSentinelToken no longer send client_id /
client_secret in the request body. The backend uses .env.
frontend/src/components/SettingsPanel.tsx
* Dropped sb_sentinel_client_id / _secret / _instance_id from
PRIVACY_SENSITIVE_BROWSER_KEYS — they're no longer written.
* SentinelTab rewritten: removed the inline Client ID / Client Secret
inputs + Save / Clear / Test buttons. Replaced with a status panel
that calls checkBackendSentinelStatus() on mount, a one-click
"Open API Keys Panel" button, and a migration banner that appears
only when migrateLegacySentinelBrowserKeys() actually cleared
something.
* Setup guide STEP 3 now points to the API Keys panel instead of
the local form.
frontend/src/app/page.tsx
* Added a one-time useEffect that fires checkBackendSentinelStatus()
on mount so the cached value (which the synchronous
hasSentinelCredentials() shim reads) is populated before
MaplibreViewer's tile-URL memo runs.
Tests
-----
backend/tests/test_sentinel_credentials_server_side.py (new)
* API_REGISTRY surface — sentinel_client_id / sentinel_client_secret
are registered with the right env_keys, ALLOWED_ENV_KEYS lets
/api/settings/api-keys PUT them.
* Resolution order — body wins, env is fallback, neither → 400 with
the friendly pointer message, and NO upstream HTTP call when
neither source has credentials (asserted via
MagicMock(side_effect=AssertionError)).
* /api/sentinel/tile same shape.
frontend/src/__tests__/utils/sentinelHub.test.ts (new)
* migrateLegacySentinelBrowserKeys clears localStorage AND
sessionStorage, reports what it cleared, idempotent.
* fetchSentinelTile + getSentinelToken POST WITHOUT client_id /
client_secret in the body (plants leaked credentials in browser
storage first to prove they are NOT picked up).
* checkBackendSentinelStatus parses /api/settings/api-keys correctly:
true only when both keys is_set, false on partial config or
network errors.
All 7 backend tests + 8 frontend tests pass locally. The
test_no_new_duplicate_routes guard and the api-settings test suite
still pass.
Credit: @tg12 for the audit report.
Let fresh Docker and local installs enter OpenSky, AIS, and other provider keys directly in onboarding or Settings without manually creating .env files. Persist keys server-side in the backend data store, keep them write-only from the browser, reload runtime settings, and retain local-operator access controls.
Gate messages now propagate via the Infonet hashchain as encrypted blobs — every node syncs them
through normal chain sync while only Gate members with MLS keys can decrypt. Added mesh reputation
system, peer push workers, voluntary Wormhole opt-in for node participation, fork recovery,
killwormhole scripts, obfuscated terminology, and hardened the self-updater to protect encryption
keys and chain state during updates.
New features: Shodan search, train tracking, Sentinel Hub imagery, 8 new intelligence layers,
CCTV expansion to 11,000+ cameras across 6 countries, Mesh Terminal CLI, prediction markets,
desktop-shell scaffold, and comprehensive mesh test suite (215 frontend + backend tests passing).
Community contributors: @wa1id, @AlborzNazari, @adust09, @Xpirix, @imqdcr, @csysp, @suranyami,
@chr0n1x, @johan-martensson, @singularfailure, @smithbh, @OrfeoTerkuci, @deuza, @tm-const,
@Elhard1, @ttulttul
Docker users don't have a .env file by default, so the settings
page silently failed to save keys. Now creates it automatically.
Former-commit-id: 1d0ccdd55a