Skip to content

Commit

Permalink
Add bootstrap policy for DataContract CRU
Browse files Browse the repository at this point in the history
  • Loading branch information
bichitra95 committed Apr 23, 2024
1 parent 3e75d0f commit 2e30f63
Showing 1 changed file with 102 additions and 0 deletions.
102 changes: 102 additions & 0 deletions addons/policies/bootstrap_entity_policies.json
Original file line number Diff line number Diff line change
Expand Up @@ -3004,6 +3004,108 @@
"entity-delete"
]
}
},
{
"typeName": "AuthPolicy",
"attributes":
{
"name": "CREATE_DATA_CONTRACT",
"qualifiedName": "CREATE_DATA_CONTRACT",
"policyCategory": "bootstrap",
"policySubCategory": "default",
"policyServiceName": "atlas",
"policyType": "allow",
"policyPriority": 1,
"policyUsers":
[],
"policyGroups":
[],
"policyRoles":
[
"$admin",
"$member",
"$api-token-default-access"
],
"policyResourceCategory": "ENTITY",
"policyResources":
[
"entity-type:DataContract",
"entity-classification:*",
"entity:*"
],
"policyActions":
[
"entity-create"
]
}
},
{
"typeName": "AuthPolicy",
"attributes":
{
"name": "READ_DATA_CONTRACT",
"qualifiedName": "READ_DATA_CONTRACT",
"policyCategory": "bootstrap",
"policySubCategory": "default",
"policyServiceName": "atlas",
"policyType": "allow",
"policyPriority": 1,
"policyUsers":
[],
"policyGroups":
[],
"policyRoles":
[
"$admin",
"$member",
"$api-token-default-access"
],
"policyResourceCategory": "ENTITY",
"policyResources":
[
"entity-type:DataContract",
"entity-classification:*",
"entity:*"
],
"policyActions":
[
"entity-read"
]
}
},
{
"typeName": "AuthPolicy",
"attributes":
{
"name": "UPDATE_DATA_CONTRACT",
"qualifiedName": "UPDATE_DATA_CONTRACT",
"policyCategory": "bootstrap",
"policySubCategory": "default",
"policyServiceName": "atlas",
"policyType": "allow",
"policyPriority": 1,
"policyUsers":
[],
"policyGroups":
[],
"policyRoles":
[
"$admin",
"$member",
"$api-token-default-access"
],
"policyResourceCategory": "ENTITY",
"policyResources":
[
"entity-type:DataContract",
"entity-classification:*",
"entity:*"
],
"policyActions":
[
"entity-update"
]
}
}
]
}

0 comments on commit 2e30f63

Please sign in to comment.