Comments (6)
@muse254 Is it possible for you to depend on cedar_policy_validator
? It should contain APIs you need to implement such function. In the meanwhile, we will try to make the required APIs to cedar_policy
.
from cedar.
That would be great, thank you!
from cedar.
Thank you for your interest in Cedar. We have a JSON format for entities, whose documentation can be found here. Once you specify entities in this format, you should be able to call Entities::from_json_str
to get the Rust object.
Note that you may need to translate the JSON objects into Cedar's entity JSON format. We're exploring a solution (issue, rfc) that allows you to annotate the Rust type so that objects of a type can be automatically translated to Entities
.
from cedar.
Could there be a possibility of making the proposed solution also have inclusion for dynamic generation of Entities for crate consumers who only get to know the schema and object they are parsing at runtime? @shaobo-he-aws
Or maybe a separate followup implementation
from cedar.
(note that cedar_policy_validator
is not stable and does not come with semver guarantees)
from cedar.
Is it ok for me to start work on this under an experimental feature?
from cedar.
Related Issues (20)
- Make `Policy` and `Template` APIs consistent wrt annotations
- Some authorization errors do not have source locations attached
- Lossless schema fragments aren't lossless
- Add API to list entity literals in a policy
- API to substitute all occurences of an expr with another expr
- Add help messages for errors related to the Cedar schemas
- Various Schema APIs
- More restrictions on type shadowing / collisions HOT 2
- Performance regression testing
- Allow Introspection on RestrictedExpression
- Entity Manifest API Wrappers
- `api::ValidationResult` implements error but `diagnostics::ValidationResult` doesn't HOT 1
- CLI translate-schema command does not work in "json-to-cedar" direction HOT 3
- Converted JSON schemas use "EntityOrCommon" HOT 1
- CLI translate-schema in "json-to-cedar" direction fails if resourceTypes is omitted from action's appliesTo HOT 5
- Entity validation behaves incorrectly on record-typed attributes HOT 4
- Add convenience methods for the number of the Policies and Templates in a PolicySet
- Some usability improvements
- Entity slicing: Support loading of particular elements in sets
- Run nightly CI on release branches
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 cedar.