Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client side API Key security #122

Open
muddi900 opened this issue Apr 15, 2024 · 1 comment
Open

Client side API Key security #122

muddi900 opened this issue Apr 15, 2024 · 1 comment
Assignees
Labels
component:dart sdk Issue/PR related to Dart SDK status:triaged Issue/PR triaged to the corresponding sub-team type:bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@muddi900
Copy link

Hello

The sdk is great. I have a working prototype of my app within 3 days. Doing everything client side is quite quick.

However, this exposes the API key to any malicious actor on the client side. Especially on the web. I can build with obfuscation, but it would still not be good security practice to embed the key in the app. I also do not want to redo everything on the server side. Especially since there aren't many dart server sdks. This would require me to do all the work from scratch again. Would it be possible to secure this client-side?

Screenshot 2024-04-15 at 12 31 02 PM
@singhniraj08 singhniraj08 added type:bug Incorrect behavior (everything from a crash to more subtle misbehavior) component:dart sdk Issue/PR related to Dart SDK status:triaged Issue/PR triaged to the corresponding sub-team labels Apr 18, 2024
@depombo
Copy link

depombo commented Oct 3, 2024

@muddi900 I got tired of having to spin up a backend to use the Gemini / Anthropic / OpenAI private key API and figure out usage and error analytics per user in my apps so I created Backmesh, the Firebase for LLM APIs. It lets you safely call any LLM API from your app without a backend with analytics and rate limits per user. It might suit your use case well!

https://backmesh.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:dart sdk Issue/PR related to Dart SDK status:triaged Issue/PR triaged to the corresponding sub-team type:bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

4 participants