Skip to content

Commit

Permalink
DG-118 Bootstrap inverse policy for Connection link-assets permission
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilbonte21 committed Sep 21, 2023
1 parent e1b793a commit 67fd1ff
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
36 changes: 36 additions & 0 deletions addons/static/templates/connection_bootstrap_policies.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,42 @@

}
},
{
"typeName": "AuthPolicy",
"guid": -8,
"attributes": {
"qualifiedName": "{guid}/connection-link-assets-inverse",
"name": "{name}-connection-link-assets-inverse",
"policyCategory": "bootstrap",
"policySubCategory": "connection",
"policyType": "allow",
"policyServiceName": "atlas",
"policyRoles": [
"connection_admins_{guid}"
],
"policyActions": [
"add-relationship",
"remove-relationship"
],
"policyResourceCategory": "RELATIONSHIP",
"policyResources": [
"end-one-entity-classification:*",
"end-one-entity:*",
"end-one-entity-type:Catalog",
"end-one-entity-type:Connection",
"end-one-entity-type:Process",
"end-one-entity-type:ProcessExecution",
"end-one-entity-type:Namespace",

"end-two-entity-classification:*",
"end-two-entity:{entity}",
"end-two-entity:{entity}/*",
"end-two-entity-type:*",

"relationship-type:*"
]
}
},
{
"typeName": "AuthPolicy",
"guid": -2,
Expand Down
21 changes: 21 additions & 0 deletions addons/static/templates/policy_cache_transformer_persona.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,27 @@
"end-two-entity:*"
],
"actions": ["add-relationship", "remove-relationship"]
},
{
"policyType": "ACCESS",
"policyResourceCategory": "RELATIONSHIP",
"resources": [
"relationship-type:*",

"end-one-entity-type:Catalog",
"end-one-entity-type:Connection",
"end-one-entity-type:Process",
"end-one-entity-type:Namespace",
"end-one-entity-type:ProcessExecution",
"end-one-entity-classification:*",
"end-one-entity:*",

"end-two-entity-type:{entity-type}",
"end-two-entity-classification:*",
"end-two-entity:{entity}",
"end-two-entity:{entity}/*"
],
"actions": ["add-relationship", "remove-relationship"]
}
],
"persona-api-create": [
Expand Down

0 comments on commit 67fd1ff

Please sign in to comment.