Code Monkey home page Code Monkey logo

Comments (5)

daveajones avatar daveajones commented on July 2, 2024 3

Yes I think that’s a good way to go. I’m ok with building that. I’ll ping here when it’s ready. Give me some time, I’m pretty backed up atm.

from docs-api.

daveajones avatar daveajones commented on July 2, 2024 1

I've pondered this myself, with no good conclusion yet. It seems unavoidable for a no-server app. My best advice currently, would be to use a proper User-Agent header, and make sure you aren't exposing a read-write key.

The keys serve two functions at present. As a way to pinpoint something abusive and kill it. And, to restrict functionality with permission levels, like write access. When talking about read-only keys, it's not hurting us really. It's just the risk that if someone started hammering the API with your key and we block it, it would hurt you by accident.

This is a good question for the larger group, since it's a "problem" I'd like a solution for. I'll leave this issue open for a while, if anyone wants to chime in. I'm open to any ideas...

from docs-api.

ibz avatar ibz commented on July 2, 2024

Related issue:

How if I am developing a self-hosted open source podcast player? It seems silly to me to ask users to set up their own API key.

Possible issues with including a read-only API key in the (open) source code are, as you mention, someone taking that key and starting to hammer the API resulting in you guys blocking the key. Honestly, I don't see why anyone would do that, except as a way to annoy users of my app (which are none at the moment), but it does seem like a potential issue and it would be nice to have a way to deal with it.

Anyway, no big deal, I guess, but I thought I'll mention it here.

from docs-api.

daveajones avatar daveajones commented on July 2, 2024

Yeah, it’s still an issue really. I’m open to any ideas you might have.

from docs-api.

keunes avatar keunes commented on July 2, 2024

Would it be possible to include in apps/software a system that automatically requests and gets assigned a read-only API secret? It could be stored in the app/software and reused. That secret could have a special status so it gets deleted e.g. 12 months after not being used (or 24 months after creation) to keep the key list somewhat clean. (As it's assigned per-user, it wouldn't be good for privacy per se, but I guess it's acceptable.)

Btw I believe that for AntennaPod the secret is hard-coded for free builds so that F-Droid can pick it up (not sure about this one). And we have not yet had to rest the secrets because of misuse.

from docs-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.