-
Notifications
You must be signed in to change notification settings - Fork 36
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
Per-user API tokens #24
Comments
+1 for this idea. Regarding 2:
If Admins can create global and user-specific keys why should they not be able to see them? I would suggest that admins have access to all keys (so they are able to revoke them if needed) while users only see theirs. Regarding 3: Regarding 4: One other question: should the number of API keys for users be limited? |
Sounds like a good idea.
Yeah, you're right. I think I was a bit tired when I wrote this :)
Yep, this is better.
I was thinking we could do that. Glad it's acceptable!
This sounds like a sensible thing to do, but I'm struggling to come up with a justification. In order to limit this, we would almost certainly need to create an additional data store model to store API key counts (since we can't aggregate in GQL queries...), and we would need to take care to keep them updated. There's not currently any user-facing way to delete API keys, so we would need to add that (although that should probably exist independent of this proposal). But I can't think of any tangible benefits beyond sounding like a sensible thing to do. |
I would also go for not limiting and rather start dealing with it when (if ever) it becomes a problem. It was just an idea that jumped to my mind that I wanted to bring up. |
I've recently been working with the API (I built a client library in Go if it interests anyone). I noticed that API tokens allow sending as any user, which kind of limits how we could deploy this in our school---I wouldn't give an API token unless it can be limited to a single user. It's fine for chat bots which send love on behalf of people, but not good if people wanted to install their own client and needed their own API key.
It seems to me like this would not be too difficult to implement user-specific API tokens, without disturbing the existing API token system.
This way organizations with less structure / accountability than Yelp could allow users to use the API without opening it up to impersonation. Is this something that you would accept a pull request for?
The text was updated successfully, but these errors were encountered: