cedar-policy-cli 4.10.0

CLI interface for the Cedar Policy language.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
permit (
  principal == PhotoFlash::Data::User::"alice",
  action == PhotoFlash::Data::Action::"view",
  resource in PhotoFlash::Data::Album::"jane_vacation"
)
when
{
  context.role.contains("admin") &&
  context.person.age > 17 &&
  context.addr.city == "DC" ||
  context.addr == { city: "DC", street: "main" }
};