Authentication
Forecast should expose one external auth story even though the current internals use multiple mechanisms.Recommended external contract
- Market Data Key
- User Token
Use API keys for public, paid, and trial market-data access.
Example header
Internal reality today
The current stack already uses:- Supabase JWTs for user-scoped product routes
- engine admin secrets for server-to-server proxying
- service credentials for lake and infrastructure access
Recommendation
Standardize the external contract to:- one API key pattern for data products
- one user-token pattern for workspace APIs