hi, i have tried to put policies and getting messa...
# help
a
hi, i have tried to put policies and getting message with uploaded 1 but while trying to get the policies its empty
a
Is your policy a resource policy? If so the command should be get resource_policies
a
---
apiVersion: <http://api.cerbos.dev/v1|api.cerbos.dev/v1>
resourcePolicy:
version: "default"
resource: "contact"
rules:
- actions:
- read
effect: EFFECT_ALLOW
roles:
- user
- actions:
- "*"
effect: EFFECT_ALLOW
roles:
- admin
principalPolicy:
principal: user10
version: "dev"
rules:
- resource: contact
actions:
- name: admin_access
action: "*"
effect: EFFECT_ALLOW
i am using two policies
a
Ah Cerbos requires one policy type per file
In this case it’s only loading the first one - we can do a better job making that clear in the messages
a
cool. Thank you let me try with that