gitcloud
accesscontrol
gitcloud | accesscontrol | |
---|---|---|
1 | 9 | |
12 | 2,118 | |
- | - | |
4.2 | 0.0 | |
8 days ago | over 2 years ago | |
TypeScript | TypeScript | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
gitcloud
-
Authorization is still a nightmare for engineers
> However: you seem to target developers. Why do you force me to leave my IDE and use your "rules editor"? Can I not write all those things in my IDE, with all the support it brings, and integrate this into my CICD flow? (yes, there is the .polar file, but why force me to jump through hoops?)
Hey valenterry! Oso CTO here. You can absolutely write policies locally and integrate this with CI/CD. We have vscode extension for the former, and CI tools for running local dev environments and CI for running this locally or in CI or whatever.
The UI is mostly nice for getting started development experience, e.g. it integrates directly with Oso Cloud without needing to configure credentials.
> Then, why did you create a new DSL and not a merely a (de-)serializable datastructure (which will indeed look like a dsl)? One, that is powerful enough to represent the capabilities you need. Then, I could in fact use any language (library) of my choice and create the rules from this language, which just has to create the datastructure.
We have a post on this coming soon! The short version is that Polar is a logic language based on Prolog/Datalog/miniKanren. And logic languages are a particularly good fit for representing the branching conditional logic you often see in authorization configurations.
And it made it easier for us to do custom work like add inline policy tests.
> Apart from that, I really like the `yes, if` idea! Would be nice to hear a bit more about that (unfortunately, the article pretty much ends there). Such as: how to deal with actions that change things and can (or must) potentially be run before the authorization is completed and such.
We typically recommend authorizing in two places: at the start of a request, and then when fetching data.
e.g. in our demo app, authorizing "can a user create an issue" involves authorizing a "create_issue" action against the repository itself: https://github.com/osohq/gitcloud/blob/sam/list-filtering/se...
Whereas anything listing issues calls the `list_local` method and does the `yes, if` style approach.
accesscontrol
-
Three Ways to Secure Database APIs: Which Is Right for You?
You can mitigate the pain by using libraries like accesscontrol, express-rbac, django-guardian, etc., to manage authorization more declaratively. But making sure nothing leaks is still a significant challenge.
-
Java Script-AdonisJs Funçáes(roles) ACL-RBAC Backend API
2- https://www.npmjs.com/package/accesscontrol https://github.com/onury/accesscontrol
- Decoupling Authorization Logic from Code in NodeJS
- Rest API : After CRUD
-
Build low-code, customizable and authorization ready (accesscontrol) admin panel with NestJS.
I used nestjsx-crud in the api we prepared. This library makes CRUD operations very easy. However, there is no support on the authorization side. That's why I made use of the accesscontrol library, which can be easily integrated with both nestjs and refine.
-
Building RBAC in Node
Access-Control
-
Node Authorization Framework
not a big fan of DSL(s), I think it adds complexity to the code, checkout this library accesscontrol all the configuration is javascript objects and more maintainable I think.
-
Confusion about authorization accesscontrol npm library
I am going through the docs accesscontrol npm library and came across code to limit the user to only readOwn resources.
-
Suggestion on implementing Authorization in Node.js express
what do you think about this library accesscontrol. It seems easier to grasp with its fluent syntax and no custom DSL
What are some alternatives?
bridgekeeper - Django permissions, but with QuerySets
CASL - CASL is an isomorphic authorization JavaScript library which restricts what resources a given user is allowed to access
ngx-permissions - Permission and roles based access control for your angular(angular 2,4,5,6,7,9+) applications(AOT, lazy modules compatible
nest-access-control - Role and Attribute based Access Control for Nestjs π
node-casbin - An authorization library that supports access control models like ACL, RBAC, ABAC in Node.js and Browser
objection-authorize - isomorphic, "magical" authorization integration with Objection.js π
laratrust - Handle roles and permissions in your Laravel application
crud - NestJs CRUD for RESTful APIs
node-rbac - Examples of RBAC implementations in Node.js
nexus-shield - π‘ Nexus plugin to ease the creation of the authorization layer
chappe - π§βπ» Developer Docs builder. Write guides in Markdown and references in API Blueprint. Comes with a built-in search engine.
Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript π