Re:OpenAI API keys leaking through app binaries
by ceejayoz on Thursday April 13, 2023 @04:17PM
(#35561503)
The proxy approach at least lets you rate limit by IP, limit the length of the strings (and thus the token cost), etc. The API key may also grant access to other models, administrative IPs, etc. you don't want people using.
Far, far, far better than nothing.