cedar-policy-cli 4.10.0

CLI interface for the Cedar Policy language.
Documentation
[
  {
    "name": "good-test",
    "request": {
      "principal": "User::\"alice\"",
      "action": "Action::\"view\"",
      "resource": "Photo::\"AAAAA\"",
      "context": {}
    },
    "entities": [
      {
        "uid": {
          "type": "User",
          "id": "alice"
        },
        "attrs": {},
        "parents": []
      },
      {
        "uid": {
          "type": "Action",
          "id": "view"
        },
        "attrs": {},
        "parents": []
      },
      {
        "uid": {
          "type": "Album",
          "id": "jane_vacation"
        },
        "attrs": {},
        "parents": []
      },
      {
        "uid": {
          "type": "Photo",
          "id": "AAAAA"
        },
        "attrs": {},
        "parents": []
      }
    ],
    "decision": "deny",
    "reason": [],
    "num_errors": 0
  },
  {
    "request": {
      "principal": "User::\"alice\"",
      "action": "Action::\"view\"",
      "resource": "Photo::\"AAAAA\"",
      "context": {}
    },
    "entities": [
      {
        "uid": {
          "type": "Photo",
          "id": "AAAAA"
        },
        "attrs": {},
        "parents": [
          {
            "type": "Album",
            "id": "jane_vacation"
          }
        ]
      },
      {
        "uid": {
          "type": "Action",
          "id": "view"
        },
        "attrs": {},
        "parents": []
      },
      {
        "uid": {
          "type": "Album",
          "id": "jane_vacation"
        },
        "attrs": {},
        "parents": []
      },
      {
        "uid": {
          "type": "User",
          "id": "alice"
        },
        "attrs": {},
        "parents": []
      }
    ],
    "decision": "allow",
    "reason": [
      "policy0"
    ],
    "num_errors": 0
  },
  {
    "request": {
      "principal": "User::\"jane_vacation\"",
      "action": "Action::\"view\"",
      "resource": "Photo::\"AAAAAAAAAAAAA\"",
      "context": {}
    },
    "entities": [
      {
        "uid": {
          "type": "Action",
          "id": "view"
        },
        "attrs": {},
        "parents": []
      },
      {
        "uid": {
          "type": "User",
          "id": "alice"
        },
        "attrs": {},
        "parents": []
      },
      {
        "uid": {
          "type": "Photo",
          "id": "AAAAAAAAAAAAA"
        },
        "attrs": {},
        "parents": []
      },
      {
        "uid": {
          "type": "User",
          "id": "jane_vacation"
        },
        "attrs": {},
        "parents": []
      },
      {
        "uid": {
          "type": "Album",
          "id": "jane_vacation"
        },
        "attrs": {},
        "parents": []
      }
    ],
    "decision": "deny",
    "reason": [],
    "num_errors": 0
  }
]