Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] Update topaz templates from display_name #158

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions static/assets/templates/api-auth/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ model:

# object type definitions
types:
### display_name: User ###
# user represents a user that can be granted role(s)
user:
relations:
Expand All @@ -17,16 +18,19 @@ types:
### display_name: user#in_management_chain ###
in_management_chain: manager | manager->in_management_chain

### display_name: Group ###
# group represents a collection of users and/or (nested) groups
group:
relations:
member: user | group#member

### display_name: Identity ###
# identity represents a collection of identities for users
identity:
relations:
identifier: user

### display_name: Service ###
# service represents a set of endpoints
service:
relations:
Expand All @@ -43,6 +47,7 @@ types:
can_post: creator | can_delete
can_delete: deleter | owner

### display_name: Endpoint ###
# endpoint represents a specific API endpoint
endpoint:
relations:
Expand Down
4 changes: 2 additions & 2 deletions static/assets/templates/gdrive/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ types:
### display_name: group#member ###
member: user | group#member


### display_name: Folder ###
# folder represents a collection of documents and/or other folders
folder:
relations:
Expand All @@ -50,7 +50,7 @@ types:
can_write: editor | can_share | parent->can_write
can_read: viewer | can_write | parent->can_read


### display_name: Document ###
# doc represents a document within a folder
doc:
relations:
Expand Down
11 changes: 6 additions & 5 deletions static/assets/templates/github/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ model:
version: 3

types:
### display_name: User ###
# user represents a user that can be granted role(s)
user:
relations:
Expand All @@ -19,24 +20,24 @@ types:
### display_name: user#in_management_chain ###
in_management_chain: manager | manager->in_management_chain


### display_name: Group ###
# group represents a collection of users and/or (nested) groups
group:
relations:
member: user | group#member


### display_name: Identity ###
# identity represents a collection of identities for users
identity:
relations:
identifier: user


### display_name: Team ###
team:
relations:
member: user | team#member | group#member


### display_name: Organization ###
organization:
relations:
member: user
Expand All @@ -52,7 +53,7 @@ types:
can_write: repo_writer | can_administer
can_read: repo_reader | can_write


### display_name: Repository ###
repo:
relations:
owner: organization
Expand Down
7 changes: 6 additions & 1 deletion static/assets/templates/multi-tenant/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ model:

# object type definitions
types:
### display_name: User ###
# user represents a user that can be granted role(s)
user:
relations:
Expand All @@ -15,16 +16,19 @@ types:
permissions:
in_management_chain: manager | manager->in_management_chain

### display_name: Group ###
# group represents a collection of users and/or (nested) groups
group:
relations:
member: user | group#member

### display_name: Identity ###
# identity represents a collection of identities for users
identity:
relations:
identifier: user

### display_name: System ###
# system represents the entire application and grants access to all tenants
system:
relations:
Expand All @@ -35,6 +39,7 @@ types:
permissions:
can_create_tenant: admin

### display_name: Tenant ###
# tenant represents a tenant in a multi-tenant system
tenant:
relations:
Expand Down Expand Up @@ -65,7 +70,7 @@ types:
can_write_resources: can_edit
can_read_resources: can_view


### display_name: Resource ###
# resource represents a resource within a tenant
resource:
relations:
Expand Down
8 changes: 5 additions & 3 deletions static/assets/templates/simple-rbac/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ model:

# object type definitions
types:
### display_name: User ###
# user represents a user that can be granted role(s)
user:
relations:
Expand All @@ -17,18 +18,19 @@ types:
in_management_chain: manager | manager->in_management_chain


### display_name: Group ###
# group represents a collection of users and/or (nested) groups
group:
relations:
member: user | group#member


### display_name: Identity ###
# identity represents a collection of identities for users
identity:
relations:
identifier: user


### display_name: Resource Creator ###
# resource creator represents a user type that can create new resources
resource-creator:
relations:
Expand All @@ -37,7 +39,7 @@ types:
permissions:
can_create_resource: member


### display_name: Resource ###
# resource represents a protected resource
resource:
relations:
Expand Down
4 changes: 2 additions & 2 deletions static/assets/templates/slack/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ types:
### display_name: group#member ###
member: user | group#member


### display_name: Channel ###
channel:
relations:
parent_workspace: workspace
Expand All @@ -48,7 +48,7 @@ types:
can_comment: commenter | can_write
can_read: can_comment


### display_name: Workspace ###
workspace:
relations:
channels_admin: user
Expand Down
7 changes: 4 additions & 3 deletions static/assets/templates/todo/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ model:

# object type definitions
types:
### display_name: User ###
# user represents a user that can be granted role(s)
user:
relations:
Expand All @@ -16,19 +17,19 @@ types:
### display_name: user#in_management_chain ###
in_management_chain: manager | manager->in_management_chain


### display_name: Group ###
# group represents a collection of users and/or (nested) groups
group:
relations:
member: user | group#member


### display_name: Identity ###
# identity represents a collection of identities for users
identity:
relations:
identifier: user


### display_name: Resource Creator ###
# resource creator represents a user type that can create new resources
resource-creator:
relations:
Expand Down