Skip to content

fix(sidecar): add AVIATIONSTACK_API and ICAO_API_KEY to env allowlist#632

Merged
koala73 merged 1 commit into
mainfrom
fix/sidecar-aviation-allowlist
Mar 1, 2026
Merged

fix(sidecar): add AVIATIONSTACK_API and ICAO_API_KEY to env allowlist#632
koala73 merged 1 commit into
mainfrom
fix/sidecar-aviation-allowlist

Conversation

@koala73

@koala73 koala73 commented Mar 1, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes "key not in allowlist" error when saving AviationStack or ICAO API keys from the desktop settings UI.

Root cause: Both keys were added to:

  • Rust SUPPORTED_SECRET_KEYS in main.rs (line 53-54) ✅
  • RuntimeSecretKey type in runtime-config.ts
  • Settings UI labels in settings-constants.ts

But the sidecar's own ALLOWED_ENV_KEYS in local-api-server.mjs was never updated. The sidecar's /api/local-env-update and /api/local-validate-secret endpoints both gate on this allowlist before processing, returning 403.

Fix: Add both keys to ALLOWED_ENV_KEYS + add AviationStack API validation probe.

Test plan

  • Open desktop Settings → API Keys
  • Enter AviationStack API key → save → should verify and save without error
  • Enter ICAO API key → save → should store without "key not in allowlist"
  • Sidecar tests pass (36/36)

Both keys were added to Rust SUPPORTED_SECRET_KEYS and runtime-config.ts
but the sidecar's own ALLOWED_ENV_KEYS was never updated. This caused
"key not in allowlist" 403 when saving/verifying these keys from the
desktop settings UI.

Also adds AviationStack API validation in validateSecretAgainstProvider.
@vercel

vercel Bot commented Mar 1, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
worldmonitor Building Building Preview, Comment Mar 1, 2026 6:12am
worldmonitor-finance Building Building Preview, Comment Mar 1, 2026 6:12am
worldmonitor-happy Building Building Preview, Comment Mar 1, 2026 6:12am
worldmonitor-startup Building Building Preview, Comment Mar 1, 2026 6:12am

Request Review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@koala73
koala73 merged commit 4545efc into main Mar 1, 2026
6 checks passed
koala73 added a commit that referenced this pull request Mar 1, 2026
…#632)

Both keys were added to Rust SUPPORTED_SECRET_KEYS and runtime-config.ts
but the sidecar's own ALLOWED_ENV_KEYS was never updated. This caused
"key not in allowlist" 403 when saving/verifying these keys from the
desktop settings UI.

Also adds AviationStack API validation in validateSecretAgainstProvider.
matthewvecchione1-ops pushed a commit to matthewvecchione1-ops/worldmonitor that referenced this pull request Mar 4, 2026
…koala73#632)

Both keys were added to Rust SUPPORTED_SECRET_KEYS and runtime-config.ts
but the sidecar's own ALLOWED_ENV_KEYS was never updated. This caused
"key not in allowlist" 403 when saving/verifying these keys from the
desktop settings UI.

Also adds AviationStack API validation in validateSecretAgainstProvider.
@koala73
koala73 deleted the fix/sidecar-aviation-allowlist branch March 4, 2026 19:40
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.

1 participant