imputnet / cobalt

best way to save what you love
https://cobalt.tools
GNU Affero General Public License v3.0
17.29k stars 1.41k forks source link

custom instance api keys #915

Open colepdn opened 1 week ago

colepdn commented 1 week ago

describe the feature you'd like to see

I'd like to be able to supply an API key for a community instance.

I'm wondering if it's worth my time to make a PR

I'd like for a way to use an authenticated instance from the frontend.

Here's what I think this change could look like on /settings/instances (please ignore the horrifying CSS job)

image

additional context

Maybe there's something I'm overlooking, or this behavior is deliberate.

As far as I can tell the only way to protect an instance is with turnstile or an API key. I haven't looked into turnstile, as API keys fit my use-case, but as far as I can tell it seems like it's just bot detection for a public frontend