Comments (1)
It sounds like you're trying to implement an access control list (ACL). One way to do that is to store the mapping of resource to users in your own database. Databases are optimized for set membership checks over very large sets so you can do that preliminary check first and make the result an attribute of the principal (e.g. is_in_acl
). It would then become one of the conditions in your Cerbos policy (P.attr.is_in_acl == true
) and you can combine that with the other context-sensitive security rules you need in addition to the simple ACL membership check (e.g. is the request being made from a trusted IP range during office hours).
from cerbos.
Related Issues (20)
- Make DBConnectionRetries configurable HOT 3
- Ability to produce output when the rule condition is not satisfied
- Typo in docs causes sample test to fail. HOT 1
- demo-python failes to start HOT 1
- Confusing error message when a policy file isn't terminated by a newline HOT 3
- Update demo-rest to use the new Cerbos Go SDK HOT 5
- Not able to login inside container using bin/bash command HOT 1
- Query plan for 'P.attr.workspaces[R.id].role == "OWNER"' is not simplified
- .NET Quickstart broken
- The navigation links in the docs are hard to read HOT 1
- Enhance the Issue template HOT 4
- Cerbos compile and test Dagger module, please HOT 1
- Omitting an expectation from a test should imply `EFFECT_DENY` HOT 3
- Spurious "more than one YAML document detected" error caused by trailing whitespace in policy HOT 3
- Kafka audit will block even when configured to be flushing records async
- Spurious "more than one YAML document detected" caused by bad indentation
- Add `defaultPolicyVersion` to test options
- Allow specifying list of policies in inspect policies RPC
- Deprecate `storage.git.protocol` and infer the protocol from `storage.git.url`'s scheme HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cerbos.