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.

Show HN: RBAC for your REST API in 2 minutes

21 pointsby ogazittabout 3 years ago

5 comments

troydavisabout 3 years ago
Dupe: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=30361262" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=30361262</a> (13 days ago)
评论 #30515934 未加载
评论 #30518221 未加载
ogazittabout 3 years ago
Authorization is a must-have for every application, but most teams have to build it from scratch. The Open Policy Agent [0] is a good place to start for creating an OSS-based solution, but you still need to build a lot of stuff yourself.<p>The Aserto playground [1] lets you import your REST service’s openapi.json spec and automatically generates a permissions for each operation. You can assign these permissions to one or more roles (viewer, editor, admin, or create your own). Export the project to get your OPA policy for your REST service.<p>You can also try it out with the Petstore API [2]. Click the “Start Tour” button for a guided tour.<p>Would love feedback on how to make this better!<p>[0] <a href="https:&#x2F;&#x2F;openpolicyagent.org" rel="nofollow">https:&#x2F;&#x2F;openpolicyagent.org</a><p>[1] <a href="https:&#x2F;&#x2F;aserto.com&#x2F;playground" rel="nofollow">https:&#x2F;&#x2F;aserto.com&#x2F;playground</a><p>[2] <a href="https:&#x2F;&#x2F;petstore3.swagger.io&#x2F;api&#x2F;v3&#x2F;openapi.json" rel="nofollow">https:&#x2F;&#x2F;petstore3.swagger.io&#x2F;api&#x2F;v3&#x2F;openapi.json</a>
itsronenhabout 3 years ago
Do package names have to match API routes? Can I create a policy that is shared by multiple endpoints?
评论 #30515673 未加载
评论 #30515731 未加载
评论 #30515703 未加载
yodonabout 3 years ago
Does your k8s sidecar approach work with <a href="https:&#x2F;&#x2F;dapr.io" rel="nofollow">https:&#x2F;&#x2F;dapr.io</a> sidecars?
rschwabcoabout 3 years ago
What can I do with policies I create in this playground?
评论 #30515789 未加载