TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

3 点作者 coopr大约 10 年前
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 条评论

amarcus大约 10 年前
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 未加载
lovelearning大约 10 年前
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>