cedar-policy 4.10.0

Cedar is a language for defining permissions as policies, which describe who should have access to what.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
namespace App {
    entity Document = {
        "owner": User,
        "editors": Set<User>
    };
    
    entity User;
    
    action edit appliesTo {
        principal: [User],
        resource: [Document],
        context: {}
    };
}