In OPA documentation https://www.openpolicyagent.org/docs/latest/policy-testing/ there is a policy definition given like below:
allow {
input.path == ["users"]
input.method == "POST"
}
allow {
some profile_id
input.path = ["users", profile_id]
input.method == "GET"
profile_id == input.user_id
}
here in first rule it is input.path == ["users"] whereas in second rule it is input.path = ["users", profile_id]. So can someone help me to point out the difference between these two?