terminal
howtonotcode.com
topic Topic
Appeared in 1 digest

Stop shipping AI API keys in client apps: use a backend proxy

calendar_today First seen: 2026-01-02
update Last updated: 2026-01-02
Stop shipping AI API keys in client apps: use a backend proxy

Overview

A reviewer found a hardcoded OpenAI API key inside a mobile app bundle, which anyone can extract and abuse. Keep provider keys on the server, expose a backend proxy that authenticates the client, enforces quotas/rate limits, and calls OpenAI on behalf of the app.

Story Timeline

Stop shipping AI API keys in client apps: use a backend proxy

A reviewer found a hardcoded OpenAI API key inside a mobile app bundle, which anyone can extract and abuse. Keep provider keys on the server, expose a backend proxy that authenticates the client, enforces quotas/rate limits, and calls OpenAI on behalf of the app.

article 2026-01-02 2026-01-02 08:17