TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Fine-grained permissions for API keys – any best practices, great examples, etc?

3 pointsby cooprabout 10 years ago
Can you offer, or point to, any advice on providing fine-grained permissions for API keys? Any great example implementations you&#x27;ve seen? Any docs or best practices I should look at?<p>(I&#x27;m not interested in the technical implementation - I&#x27;m more interested in the UI, the documentation, etc)<p>By &quot;fine grained permissions for API keys&quot;, I mean that a user could create an API key with a certain set of permissions (eg CREATE resource type X, READ (but not modify) resource type Y, prohibit access to endpoints A and B, etc), then create another key with other permissions, etc. Admins would need to see what keys were created by whom, what permissions those keys have, usage on a per-key basis, do key regeneration, etc.

2 comments

amarcusabout 10 years ago
I am unsure if any such pre-built solutions exist but, we have created something similar for our app.<p>A user can setup an unlimited number of different API Keys for their account. For each API Key, we allow them to specify:<p>- Name&#x2F;Description: For internal reference<p>- High Level Permissions:<p>Admin: (access to make any account updates).<p>Read-Only: (provide read-only access to the data).<p>Write Only: (allows for read &amp; write operations).<p>- Low Level Permissions:<p>Access to various end-points that can be turned on&#x2F;off.<p>- Throttling Options<p>Allow the user to specify Max Read Requests p&#x2F;second and max write requests p&#x2F;second
评论 #9390843 未加载
lovelearningabout 10 years ago
I find the AWS IAM documentation[1][2] easy to follow. One thing I didn&#x27;t like are the demo videos; I prefer step by step descriptions with screenshot images.<p>[1]: <a href="http:&#x2F;&#x2F;aws.amazon.com&#x2F;iam&#x2F;" rel="nofollow">http:&#x2F;&#x2F;aws.amazon.com&#x2F;iam&#x2F;</a><p>[2]: <a href="http:&#x2F;&#x2F;aws.amazon.com&#x2F;iam&#x2F;details&#x2F;manage-permissions&#x2F;" rel="nofollow">http:&#x2F;&#x2F;aws.amazon.com&#x2F;iam&#x2F;details&#x2F;manage-permissions&#x2F;</a>