cogentapps / chat-with-gpt

An open-source ChatGPT app with a voice
https://www.chatwithgpt.ai
MIT License
2.3k stars 489 forks source link

Disallow new user register #125

Open Vuthric opened 1 year ago

Vuthric commented 1 year ago

Hi,

The new feature to store keys on the server side is awesome. But anyone can register then use it. I'm currently using azure IP whitelist to let my friends/parents access my self hosted version. However IPs stop being predictable when we are outside the house.

I'm guessing we are not storing plain-text API keys in the database for security concerns. But since the server-side key is only usable by logged in users, I think having an option to disallow new user register would work nicely for personal servers.

cogentapps commented 1 year ago

Good idea, will add this.

diegosome commented 1 year ago

Any updates on this?

jacob019 commented 9 months ago

Love the app, but don't love that anyone who has the URL can use my API key, so I also came here to request this feature.