3 ms·
Cedar is an open source policy language and evaluation engine
- thayne 4y agoHow does this compare to Open Policy Agent, or oso? Why would I use this instead?
- sarahcec 4y agoThe main benefits of Cedar are: *Verifiable/Analyzable *Deterministic Low Latencies *No Security Sandboxing Needed *Ergonomic (easily readable) *Enables parallel execution More here: https://www.youtube.com/watch?t=1798&v=k6pPcnLuOXY&feature=youtu.be https://www.youtube.com/watch?t=1798&v=k6pPcnLuOXY&feature=y...
- alexeldeib 4y agoI love the dual implementation, I hadn’t heard of Dafny. Can you speak to the point about latency? I wasn’t aware it made performance guarantees
- abrahms 4y agoOPA allows you to make API calls from it. This doesn't. This makes the latency more deterministic.
- alexeldeib 4y agoAh, I didn’t realize that. I was thinking in the context of pure policy evaluation. I know rego/opa had a policy performance doc so was curious. Thanks :)
- candiddevmike 4y agoIf you're all in on AWS, use it, if not, use OPA. Lots of vendors support OPA/rego, I can't think of anything I use outside of AWS that supports Cedar.
- mooreds 4y agoI think that is part of why they open sourced it, to try to get more folks to use it. :)
- mritun 4y agoThe challenge with authorization is that mistakes are catastrophic. The foremost benefit of Cedar is that the implementation is formally proven. Which means that you are extremely unlikely to have to deal with unexpected behavior! Of course, the modeling needs to be reviewed manually for completeness, but the verifier can tell if the model is buggy or inconsistent.
- bebop 4y agoThe company announcement was posted last week and also has some discussion here: https://news.ycombinator.com/item?id=35890784 https://news.ycombinator.com/item?id=35890784
- lalaithion 4y agoIt would be nice to have performance numbers. Right now the only thing I can find on performance is "Cedar is fast and scalable. The policy structure allows your policies to be indexed for quick retrieval. The design also supports fast, scalable, real-time evaluation with bounded latency." which doesn't tell me if it is will respond within 100 ms with 100,000 entities or within 10 ms for 100 million entities.
- NegativeLatency 4y agoLooks neat, one of the places I've seen open source systems like this trip on is when you need to know: what principals can do a certain thing Went through a big Ory Keto implementation to get stuck on not being able to do this last crucial bit, so we ended up implementing our own role based access control
- mooreds 4y ago> what principals can do a certain thing Hmmm. What's an example of this?
- SgtBastard 4y agoPolicy: Transactions under $X can be raised and approved by the same person. >X requires an independent approver with permission “supervisor”. Activity: Alice (a supervisor), raises a transaction >X, Bob is a supervisor, Eve is not. Problem: “Who can approve the transaction?” (As humans the answer is obviously Bob, but for typical implementation approaches to AuthZ policy, this is challenging to determine. Typically it’s done out of band and then makes a decision when requested by Bob (allow) or Eve (deny))
- mooreds 4y agoAwesome, thanks. So it's almost like there's a rules engine needed, because "independent" plays a role.
- jwineinger 4y agoI find a few things about Cedar exciting. The formal verification and automated reasoning stuff sound great! Unfortunately, there doesn't seem to be much of a story here to solve authz-aware searching/listing for object/row level access. Since Cedar/AVP doesn't come with an entity store, it seems I'd have to send my entire database(s) on each call so that the policies have the right data to evaluate. If that's true, then it seems like this would be only be useful on small data sets. I'm struggling to come up with use cases for "fine-grained permissions and authorization" (what AVP bills itself as) that don't involve some sort of listing or searching of things.
- restricted_keys 4y agoEvaluated this recently for my company. Pros 1. Cedar is great and very expressive and fits many many use case. Cons 1. The price. Was too expensive for our scale 2. As another commenter has pointed, Cedar/AVP expects you to send all the contextual data as part of the Authz request. It only persists the policy. 3. There is no concept of role based lookup. E.g I cannot query who has what access
- donavanm 4y agoI have some experience with previous AWS IAM policy language and evaluation, but not cedar directly. Some context that might help: C2a: think of the use case around a centralized policy & identity store with lots of independent services consuming that. The services dont know or care how individual users create/store/update their policies. Nor how other services perform authorization. Each service is the only source of truth for that services requests, and must supply the necessary API request context etc. C2b In addition you could certainly build a “cedar service” that owned identity policy and identity context then joined that with the services context to perform the access evaluation. C2c: Conversely if your service is much more monolithic, with no central trust or trusted peers, you could do all of the above inside your mono-service. But batteries are not included here. C3: I actually dont know how to feasibly accomplish this with a capability based system. As youve mentioned authorization is very dependent on context, which is typically dynamic. Eg it might include time checks, source/dest network address, or even things like the machine identity that sent the request. It seems youd need to populate all the potential context to perform an evaluation, and a simple index/enumeration doesnt fit. Very interested if you have counter examples.