cedar-policy-cli 4.10.0

CLI interface for the Cedar Policy language.
Documentation
[
  {
    "request": {
      "principal": "User::\"bob\"",
      "action": "Action::\"edit\"",
      "resource": "Photo::\"BAA\"",
      "context": {}
    },
    "entities": [
      {
        "uid": {
          "type": "User",
          "id": "bob"
        },
        "attrs": {},
        "parents": []
      },
      {
        "uid": {
          "type": "Action",
          "id": "edit"
        },
        "attrs": {},
        "parents": []
      },
      {
        "uid": {
          "type": "Photo",
          "id": "BAA"
        },
        "attrs": {
          "owner": {
            "__entity": {
              "type": "User",
              "id": "bob"
            }
          }
        },
        "parents": []
      },
      {
        "uid": {
          "type": "Action",
          "id": "view"
        },
        "attrs": {},
        "parents": []
      }
    ],
    "decision": "allow",
    "reason": [
      "policy0"
    ],
    "num_errors": 0
  },
  {
    "request": {
      "principal": "User::\"AAA\"",
      "action": "Action::\"edit\"",
      "resource": "Photo::\"BAA\"",
      "context": {}
    },
    "entities": [
      {
        "uid": {
          "type": "User",
          "id": "A"
        },
        "attrs": {},
        "parents": []
      },
      {
        "uid": {
          "type": "User",
          "id": "AAA"
        },
        "attrs": {},
        "parents": []
      },
      {
        "uid": {
          "type": "Photo",
          "id": "BAA"
        },
        "attrs": {
          "owner": {
            "__entity": {
              "type": "User",
              "id": "A"
            }
          }
        },
        "parents": []
      },
      {
        "uid": {
          "type": "Action",
          "id": "view"
        },
        "attrs": {},
        "parents": []
      },
      {
        "uid": {
          "type": "Action",
          "id": "edit"
        },
        "attrs": {},
        "parents": []
      }
    ],
    "decision": "deny",
    "reason": [],
    "num_errors": 0
  },
  {
    "request": {
      "principal": "User::\"bob\"",
      "action": "Action::\"view\"",
      "resource": "Photo::\"AAA\"",
      "context": {}
    },
    "entities": [
      {
        "uid": {
          "type": "Action",
          "id": "edit"
        },
        "attrs": {},
        "parents": []
      },
      {
        "uid": {
          "type": "User",
          "id": ""
        },
        "attrs": {},
        "parents": []
      },
      {
        "uid": {
          "type": "User",
          "id": "bob"
        },
        "attrs": {},
        "parents": []
      },
      {
        "uid": {
          "type": "Photo",
          "id": "AAA"
        },
        "attrs": {
          "owner": {
            "__entity": {
              "type": "User",
              "id": ""
            }
          }
        },
        "parents": []
      },
      {
        "uid": {
          "type": "Action",
          "id": "view"
        },
        "attrs": {},
        "parents": []
      }
    ],
    "decision": "deny",
    "reason": [],
    "num_errors": 0
  }
]