-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathrbacresourcesGenerated.ts
More file actions
296 lines (294 loc) · 8.88 KB
/
Copy pathrbacresourcesGenerated.ts
File metadata and controls
296 lines (294 loc) · 8.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
// Code generated by typegen/main.go. DO NOT EDIT.
import type { RBACAction, RBACResource } from "./typesGenerated";
// RBACResourceActions maps RBAC resources to their possible actions.
// Descriptions are included to document the purpose of each action.
// Source is in 'coderd/rbac/policy/policy.go'.
export const RBACResourceActions: Partial<
Record<RBACResource, Partial<Record<RBACAction, string>>>
> = {
ai_gateway_key: {
create: "create an AI Gateway key",
delete: "delete an AI Gateway key",
read: "read AI Gateway keys",
update: "update an AI Gateway key",
},
ai_model_price: {
read: "read AI model prices",
update: "update AI model prices",
},
ai_provider: {
create: "create an AI provider",
delete: "delete an AI provider",
read: "read AI provider configuration",
update: "update an AI provider",
},
ai_seat: {
create: "record AI seat usage",
read: "read AI seat state",
},
aibridge_interception: {
create: "create aibridge interceptions & related records",
read: "read aibridge interceptions & related records",
update: "update aibridge interceptions & related records",
},
api_key: {
create: "create an api key",
delete: "delete an api key",
read: "read api key details (secrets are not stored)",
update: "update an api key, eg expires",
},
assign_org_role: {
assign: "assign org scoped roles",
create: "create/delete custom roles within an organization",
delete: "delete roles within an organization",
read: "view what roles are assignable within an organization",
unassign: "unassign org scoped roles",
update: "edit custom roles within an organization",
},
assign_role: {
assign: "assign user roles",
read: "view what roles are assignable",
unassign: "unassign user roles",
},
audit_log: {
create: "create new audit log entries",
read: "read audit logs",
},
boundary_log: {
create: "create boundary log records",
delete: "delete boundary logs",
read: "read boundary logs and session metadata",
},
boundary_usage: {
delete: "delete boundary usage statistics",
read: "read boundary usage statistics",
update: "upsert boundary usage statistics",
},
chat: {
create: "create a new chat",
delete: "delete a chat",
read: "read chat messages and metadata",
share: "share a chat with other users or groups",
update: "update chat title or settings",
},
chat_model_config: {
create: "create a new chat model config",
delete: "delete a chat model config",
read: "read chat model configs",
share: "share a chat model config with other users or groups",
update: "update a chat model config",
},
connection_log: {
read: "read connection logs",
update: "upsert connection log entries",
},
crypto_key: {
create: "create crypto keys",
delete: "delete crypto keys",
read: "read crypto keys",
update: "update crypto keys",
},
debug_info: {
read: "access to debug routes",
},
deployment_config: {
read: "read deployment config",
update: "updating health information",
},
deployment_stats: {
read: "read deployment stats",
},
file: {
create: "create a file",
read: "read files",
},
group: {
create: "create a group",
delete: "delete a group",
read: "read groups",
update: "update a group",
},
group_member: {
read: "read group members",
},
idpsync_settings: {
read: "read IdP sync settings",
update: "update IdP sync settings",
},
inbox_notification: {
create: "create inbox notifications",
read: "read inbox notifications",
update: "update inbox notifications",
},
license: {
create: "create a license",
delete: "delete license",
read: "read licenses",
},
mcp_server_config: {
create: "create a new MCP server config",
delete: "delete MCP server config",
read: "read MCP server config",
share: "share MCP server config with other users or groups",
update: "update MCP server config",
},
notification_message: {
create: "create notification messages",
delete: "delete notification messages",
read: "read notification messages",
update: "update notification messages",
},
notification_preference: {
read: "read notification preferences",
update: "update notification preferences",
},
notification_template: {
read: "read notification templates",
update: "update notification templates",
},
oauth2_app: {
create: "make an OAuth2 app",
delete: "delete an OAuth2 app",
read: "read OAuth2 apps",
update: "update the properties of the OAuth2 app",
},
oauth2_app_code_token: {
create: "create an OAuth2 app code token",
delete: "delete an OAuth2 app code token",
read: "read an OAuth2 app code token",
},
oauth2_app_secret: {
create: "create an OAuth2 app secret",
delete: "delete an OAuth2 app secret",
read: "read an OAuth2 app secret",
update: "update an OAuth2 app secret",
},
organization: {
create: "create an organization",
delete: "delete an organization",
read: "read organizations",
update: "update an organization",
},
organization_member: {
create: "create an organization member",
delete: "delete member",
read: "read member",
update: "update an organization member",
},
prebuilt_workspace: {
delete: "delete prebuilt workspace",
update: "update prebuilt workspace settings",
},
provisioner_daemon: {
create: "create a provisioner daemon/key",
delete: "delete a provisioner daemon/key",
read: "read provisioner daemon",
update: "update a provisioner daemon",
},
provisioner_jobs: {
create: "create provisioner jobs",
read: "read provisioner jobs",
update: "update provisioner jobs",
},
replicas: {
read: "read replicas",
},
system: {
create: "create system resources",
delete: "delete system resources",
read: "view system resources",
update: "update system resources",
},
tailnet_coordinator: {
create: "create a Tailnet coordinator",
delete: "delete a Tailnet coordinator",
read: "view info about a Tailnet coordinator",
update: "update a Tailnet coordinator",
},
template: {
create: "create a template",
delete: "delete a template",
read: "read template",
update: "update a template",
use: "use the template to initially create a workspace, then workspace lifecycle permissions take over",
view_insights: "view insights",
},
usage_event: {
create: "create a usage event",
read: "read usage events",
update: "update usage events",
},
user: {
create: "create a new user",
delete: "delete an existing user",
read: "read user data",
read_personal: "read personal user data like user settings and auth links",
update: "update an existing user",
update_personal: "update personal data",
},
user_secret: {
create: "create a user secret",
delete: "delete a user secret",
read: "read user secret metadata and value",
update: "update user secret metadata and value",
},
user_skill: {
create: "create a user skill",
delete: "delete a user skill",
read: "read user skill metadata and content",
update: "update user skill metadata and content",
},
webpush_subscription: {
create: "create webpush subscriptions",
delete: "delete webpush subscriptions",
read: "read webpush subscriptions",
},
workspace: {
application_connect: "connect to workspace apps via browser",
create: "create a new workspace",
create_agent: "create a new workspace agent",
delete: "delete workspace",
delete_agent: "delete an existing workspace agent",
read: "read workspace data to view on the UI",
share: "share a workspace with other users or groups",
ssh: "ssh into a given workspace",
start: "allows starting a workspace",
stop: "allows stopping a workspace",
update: "edit workspace settings (scheduling, permissions, parameters)",
update_agent: "update an existing workspace agent",
},
workspace_agent_devcontainers: {
create: "create workspace agent devcontainers",
},
workspace_agent_resource_monitor: {
create: "create workspace agent resource monitor",
read: "read workspace agent resource monitor",
update: "update workspace agent resource monitor",
},
workspace_build_orchestration: {
create: "create a workspace build orchestration",
delete: "delete a workspace build orchestration",
read: "read a workspace build orchestration",
update: "update a workspace build orchestration",
},
workspace_dormant: {
application_connect: "connect to workspace apps via browser",
create: "create a new workspace",
create_agent: "create a new workspace agent",
delete: "delete workspace",
delete_agent: "delete an existing workspace agent",
read: "read workspace data to view on the UI",
share: "share a workspace with other users or groups",
ssh: "ssh into a given workspace",
start: "allows starting a workspace",
stop: "allows stopping a workspace",
update: "edit workspace settings (scheduling, permissions, parameters)",
update_agent: "update an existing workspace agent",
},
workspace_proxy: {
create: "create a workspace proxy",
delete: "delete a workspace proxy",
read: "read and use a workspace proxy",
update: "update a workspace proxy",
},
};