Files
threshold/website/content/docs/concepts/domain-model/grants.mdx
T
Michael Gaffney 1ac3660dca Docs: add domain model diagram and update meta data in domain model pages (#611)
* Docs: add domain model diagram

* Docs: fix meta data in domain model pages

* Docs: add Sessions to domain model
2020-10-10 16:40:06 -04:00

50 lines
1.5 KiB
Plaintext

---
layout: docs
page_title: Domain Model - Grants
sidebar_title: Grants
description: |-
The anatomy of a Boundary grant
---
# Grants
A grant represents a set of capabilities granted to a role.
It couples a set of Actions to either
a set of Resource Types
or an individual Resource.
A Direct Grant belongs exclusively to one and only one Role.
However, equivalent Direct Grants may exist across different Roles.
A Direct Grant references one or more Actions
and either one or more Resource types
or one specific Resource.
A Direct Grant is deleted when the Role it belongs to is deleted.
A Direct Grant is also deleted if it is associated with a specific Resource
and that Resource itself is deleted.
The lifecycle of a Direct Grant is not tied to the lifecycle of any Action or Resource Type.
```shell-session
+----------------------------------------+
| Organization |
+--------------------+-------------------+
| Role 1 | Role 2 |
+----------+-----------------------------+
| Grant 1 | Grant 2 | Grant 1 |
+----------+---------+-------------------+
```
## Attributes
Direct grants are represented by strings of actions on resources.
Example: `id=p_0123456789; action=read`
The above example grants `read` action on the `p_0123456789` project resource.
The glob `*` pattern can be used on IDs and actions as well:
`id=*;action=*`, will allow all actions on all resources.
## Referenced By
- [Action]()
- [Role]()