Skip to content

Validate WORLDMONITOR_API_KEY before allowing cloud fallback#218

Merged
koala73 merged 1 commit into
mainfrom
claude/fix-desktop-fallback-apikey-iSnw8
Feb 21, 2026
Merged

Validate WORLDMONITOR_API_KEY before allowing cloud fallback#218
koala73 merged 1 commit into
mainfrom
claude/fix-desktop-fallback-apikey-iSnw8

Conversation

@koala73

@koala73 koala73 commented Feb 21, 2026

Copy link
Copy Markdown
Owner

Summary

Add validation of the WORLDMONITOR_API_KEY secret before allowing cloud fallback in the runtime fetch patch. If the API key is missing or invalid, cloud fallback is now disabled. Additionally, if the secrets module fails to load, cloud fallback is disabled rather than silently allowed.

Type of change

  • Bug fix
  • New feature
  • New data source / feed
  • New map layer
  • Refactor / code cleanup
  • Documentation
  • CI / Build / Infrastructure

Affected areas

  • Map / Globe
  • News panels / RSS feeds
  • AI Insights / World Brief
  • Market Radar / Crypto
  • Desktop app (Tauri)
  • API endpoints (/api/*)
  • Config / Settings
  • Other:

Details

The runtime fetch patch now:

  1. Imports getSecretState in addition to secretsReady from the runtime-config service
  2. Checks the state of the WORLDMONITOR_API_KEY secret after waiting for secrets to be ready
  3. Disables cloud fallback if the API key is not present or invalid
  4. Disables cloud fallback if the secrets module fails to load (instead of allowing it)

This ensures that cloud fallback requests are only made when a valid API key is available.

Checklist

  • Tested on worldmonitor.app variant
  • Tested on tech.worldmonitor.app variant (if applicable)
  • New RSS feed domains added to api/rss-proxy.js allowlist (if adding feeds)
  • No API keys or secrets committed
  • TypeScript compiles without errors (npm run typecheck)

https://claude.ai/code/session_014yJsGsxD1sWt6B6PvQXiaA

Restore the WORLDMONITOR_API_KEY check that was removed in e882a00,
which left desktop cloud fallback ungated — causing deterministic 401s
from the edge gateway for keyless desktop installs. Also disable cloud
fallback when the runtime-config module fails to import, since the
cloudFallback() path depends on the same module and would throw.

https://claude.ai/code/session_014yJsGsxD1sWt6B6PvQXiaA
@vercel

vercel Bot commented Feb 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
worldmonitor Ready Ready Preview, Comment Feb 21, 2026 4:49pm
worldmonitor-finance Ready Ready Preview, Comment Feb 21, 2026 4:49pm
worldmonitor-startup Ready Ready Preview, Comment Feb 21, 2026 4:49pm

Request Review

@koala73
koala73 merged commit 04d13bb into main Feb 21, 2026
4 checks passed
@koala73
koala73 deleted the claude/fix-desktop-fallback-apikey-iSnw8 branch February 23, 2026 07:09
facusturla pushed a commit to facusturla/worldmonitor that referenced this pull request Feb 27, 2026
…koala73#218)

Restore the WORLDMONITOR_API_KEY check that was removed in 740e351,
which left desktop cloud fallback ungated — causing deterministic 401s
from the edge gateway for keyless desktop installs. Also disable cloud
fallback when the runtime-config module fails to import, since the
cloudFallback() path depends on the same module and would throw.

https://claude.ai/code/session_014yJsGsxD1sWt6B6PvQXiaA

Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants