|
| 1 | +// Code generated by rbacgen/main.go. DO NOT EDIT. |
| 2 | + |
| 3 | +// RBACResourceActions maps RBAC resources to their possible actions. |
| 4 | +// Descriptions are included to document the purpose of each action. |
| 5 | +// Source is in 'coderd/rbac/policy/policy.go'. |
| 6 | +export const RBACResourceActions: Record< |
| 7 | + RBACResource, |
| 8 | + Partial<Record<RBACAction, string>> |
| 9 | +> = { |
| 10 | + "*": { |
| 11 | + }, |
| 12 | + "api_key": { |
| 13 | + "create": "create an api key", |
| 14 | + "delete": "delete an api key", |
| 15 | + "read": "read api key details (secrets are not stored)", |
| 16 | + "update": "update an api key, eg expires", |
| 17 | + }, |
| 18 | + "assign_org_role": { |
| 19 | + "assign": "ability to assign org scoped roles", |
| 20 | + "create": "ability to create/delete/edit custom roles within an organization", |
| 21 | + "delete": "ability to delete org scoped roles", |
| 22 | + "read": "view what roles are assignable", |
| 23 | + }, |
| 24 | + "assign_role": { |
| 25 | + "assign": "ability to assign roles", |
| 26 | + "create": "ability to create/delete/edit custom roles", |
| 27 | + "delete": "ability to unassign roles", |
| 28 | + "read": "view what roles are assignable", |
| 29 | + }, |
| 30 | + "audit_log": { |
| 31 | + "create": "create new audit log entries", |
| 32 | + "read": "read audit logs", |
| 33 | + }, |
| 34 | + "debug_info": { |
| 35 | + "read": "access to debug routes", |
| 36 | + }, |
| 37 | + "deployment_config": { |
| 38 | + "read": "read deployment config", |
| 39 | + "update": "updating health information", |
| 40 | + }, |
| 41 | + "deployment_stats": { |
| 42 | + "read": "read deployment stats", |
| 43 | + }, |
| 44 | + "file": { |
| 45 | + "create": "create a file", |
| 46 | + "read": "read files", |
| 47 | + }, |
| 48 | + "group": { |
| 49 | + "create": "create a group", |
| 50 | + "delete": "delete a group", |
| 51 | + "read": "read groups", |
| 52 | + "update": "update a group", |
| 53 | + }, |
| 54 | + "license": { |
| 55 | + "create": "create a license", |
| 56 | + "delete": "delete license", |
| 57 | + "read": "read licenses", |
| 58 | + }, |
| 59 | + "oauth2_app": { |
| 60 | + "create": "make an OAuth2 app.", |
| 61 | + "delete": "delete an OAuth2 app", |
| 62 | + "read": "read OAuth2 apps", |
| 63 | + "update": "update the properties of the OAuth2 app.", |
| 64 | + }, |
| 65 | + "oauth2_app_code_token": { |
| 66 | + "create": "", |
| 67 | + "delete": "", |
| 68 | + "read": "", |
| 69 | + }, |
| 70 | + "oauth2_app_secret": { |
| 71 | + "create": "", |
| 72 | + "delete": "", |
| 73 | + "read": "", |
| 74 | + "update": "", |
| 75 | + }, |
| 76 | + "organization": { |
| 77 | + "create": "create an organization", |
| 78 | + "delete": "delete an organization", |
| 79 | + "read": "read organizations", |
| 80 | + "update": "update an organization", |
| 81 | + }, |
| 82 | + "organization_member": { |
| 83 | + "create": "create an organization member", |
| 84 | + "delete": "delete member", |
| 85 | + "read": "read member", |
| 86 | + "update": "update an organization member", |
| 87 | + }, |
| 88 | + "provisioner_daemon": { |
| 89 | + "create": "create a provisioner daemon", |
| 90 | + "delete": "delete a provisioner daemon", |
| 91 | + "read": "read provisioner daemon", |
| 92 | + "update": "update a provisioner daemon", |
| 93 | + }, |
| 94 | + "provisioner_keys": { |
| 95 | + "create": "create a provisioner key", |
| 96 | + "delete": "delete a provisioner key", |
| 97 | + "read": "read provisioner keys", |
| 98 | + }, |
| 99 | + "replicas": { |
| 100 | + "read": "read replicas", |
| 101 | + }, |
| 102 | + "system": { |
| 103 | + "create": "create system resources", |
| 104 | + "delete": "delete system resources", |
| 105 | + "read": "view system resources", |
| 106 | + "update": "update system resources", |
| 107 | + }, |
| 108 | + "tailnet_coordinator": { |
| 109 | + "create": "", |
| 110 | + "delete": "", |
| 111 | + "read": "", |
| 112 | + "update": "", |
| 113 | + }, |
| 114 | + "template": { |
| 115 | + "create": "create a template", |
| 116 | + "delete": "delete a template", |
| 117 | + "read": "read template", |
| 118 | + "update": "update a template", |
| 119 | + "view_insights": "view insights", |
| 120 | + }, |
| 121 | + "user": { |
| 122 | + "create": "create a new user", |
| 123 | + "delete": "delete an existing user", |
| 124 | + "read": "read user data", |
| 125 | + "read_personal": "read personal user data like user settings and auth links", |
| 126 | + "update": "update an existing user", |
| 127 | + "update_personal": "update personal data", |
| 128 | + }, |
| 129 | + "workspace": { |
| 130 | + "application_connect": "connect to workspace apps via browser", |
| 131 | + "create": "create a new workspace", |
| 132 | + "delete": "delete workspace", |
| 133 | + "read": "read workspace data to view on the UI", |
| 134 | + "ssh": "ssh into a given workspace", |
| 135 | + "start": "allows starting a workspace", |
| 136 | + "stop": "allows stopping a workspace", |
| 137 | + "update": "edit workspace settings (scheduling, permissions, parameters)", |
| 138 | + }, |
| 139 | + "workspace_dormant": { |
| 140 | + "application_connect": "connect to workspace apps via browser", |
| 141 | + "create": "create a new workspace", |
| 142 | + "delete": "delete workspace", |
| 143 | + "read": "read workspace data to view on the UI", |
| 144 | + "ssh": "ssh into a given workspace", |
| 145 | + "start": "allows starting a workspace", |
| 146 | + "stop": "allows stopping a workspace", |
| 147 | + "update": "edit workspace settings (scheduling, permissions, parameters)", |
| 148 | + }, |
| 149 | + "workspace_proxy": { |
| 150 | + "create": "create a workspace proxy", |
| 151 | + "delete": "delete a workspace proxy", |
| 152 | + "read": "read and use a workspace proxy", |
| 153 | + "update": "update a workspace proxy", |
| 154 | + }, |
| 155 | +}; |
0 commit comments