mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: update missing RBAC action descriptions (#15389)
Add missing action descriptions so that these appear when in the frontend when creating/updating custom roles.
This commit is contained in:
+13
-13
@@ -157,29 +157,29 @@ var (
|
||||
|
||||
// ResourceOauth2App
|
||||
// Valid Actions
|
||||
// - "ActionCreate" :: make an OAuth2 app.
|
||||
// - "ActionCreate" :: make an OAuth2 app
|
||||
// - "ActionDelete" :: delete an OAuth2 app
|
||||
// - "ActionRead" :: read OAuth2 apps
|
||||
// - "ActionUpdate" :: update the properties of the OAuth2 app.
|
||||
// - "ActionUpdate" :: update the properties of the OAuth2 app
|
||||
ResourceOauth2App = Object{
|
||||
Type: "oauth2_app",
|
||||
}
|
||||
|
||||
// ResourceOauth2AppCodeToken
|
||||
// Valid Actions
|
||||
// - "ActionCreate" ::
|
||||
// - "ActionDelete" ::
|
||||
// - "ActionRead" ::
|
||||
// - "ActionCreate" :: create an OAuth2 app code token
|
||||
// - "ActionDelete" :: delete an OAuth2 app code token
|
||||
// - "ActionRead" :: read an OAuth2 app code token
|
||||
ResourceOauth2AppCodeToken = Object{
|
||||
Type: "oauth2_app_code_token",
|
||||
}
|
||||
|
||||
// ResourceOauth2AppSecret
|
||||
// Valid Actions
|
||||
// - "ActionCreate" ::
|
||||
// - "ActionDelete" ::
|
||||
// - "ActionRead" ::
|
||||
// - "ActionUpdate" ::
|
||||
// - "ActionCreate" :: create an OAuth2 app secret
|
||||
// - "ActionDelete" :: delete an OAuth2 app secret
|
||||
// - "ActionRead" :: read an OAuth2 app secret
|
||||
// - "ActionUpdate" :: update an OAuth2 app secret
|
||||
ResourceOauth2AppSecret = Object{
|
||||
Type: "oauth2_app_secret",
|
||||
}
|
||||
@@ -242,10 +242,10 @@ var (
|
||||
|
||||
// ResourceTailnetCoordinator
|
||||
// Valid Actions
|
||||
// - "ActionCreate" ::
|
||||
// - "ActionDelete" ::
|
||||
// - "ActionRead" ::
|
||||
// - "ActionUpdate" ::
|
||||
// - "ActionCreate" :: create a Tailnet coordinator
|
||||
// - "ActionDelete" :: delete a Tailnet coordinator
|
||||
// - "ActionRead" :: view info about a Tailnet coordinator
|
||||
// - "ActionUpdate" :: update a Tailnet coordinator
|
||||
ResourceTailnetCoordinator = Object{
|
||||
Type: "tailnet_coordinator",
|
||||
}
|
||||
|
||||
@@ -215,10 +215,10 @@ var RBACPermissions = map[string]PermissionDefinition{
|
||||
},
|
||||
"tailnet_coordinator": {
|
||||
Actions: map[Action]ActionDefinition{
|
||||
ActionCreate: actDef(""),
|
||||
ActionRead: actDef(""),
|
||||
ActionUpdate: actDef(""),
|
||||
ActionDelete: actDef(""),
|
||||
ActionCreate: actDef("create a Tailnet coordinator"),
|
||||
ActionRead: actDef("view info about a Tailnet coordinator"),
|
||||
ActionUpdate: actDef("update a Tailnet coordinator"),
|
||||
ActionDelete: actDef("delete a Tailnet coordinator"),
|
||||
},
|
||||
},
|
||||
"assign_role": {
|
||||
@@ -241,25 +241,25 @@ var RBACPermissions = map[string]PermissionDefinition{
|
||||
},
|
||||
"oauth2_app": {
|
||||
Actions: map[Action]ActionDefinition{
|
||||
ActionCreate: actDef("make an OAuth2 app."),
|
||||
ActionCreate: actDef("make an OAuth2 app"),
|
||||
ActionRead: actDef("read OAuth2 apps"),
|
||||
ActionUpdate: actDef("update the properties of the OAuth2 app."),
|
||||
ActionUpdate: actDef("update the properties of the OAuth2 app"),
|
||||
ActionDelete: actDef("delete an OAuth2 app"),
|
||||
},
|
||||
},
|
||||
"oauth2_app_secret": {
|
||||
Actions: map[Action]ActionDefinition{
|
||||
ActionCreate: actDef(""),
|
||||
ActionRead: actDef(""),
|
||||
ActionUpdate: actDef(""),
|
||||
ActionDelete: actDef(""),
|
||||
ActionCreate: actDef("create an OAuth2 app secret"),
|
||||
ActionRead: actDef("read an OAuth2 app secret"),
|
||||
ActionUpdate: actDef("update an OAuth2 app secret"),
|
||||
ActionDelete: actDef("delete an OAuth2 app secret"),
|
||||
},
|
||||
},
|
||||
"oauth2_app_code_token": {
|
||||
Actions: map[Action]ActionDefinition{
|
||||
ActionCreate: actDef(""),
|
||||
ActionRead: actDef(""),
|
||||
ActionDelete: actDef(""),
|
||||
ActionCreate: actDef("create an OAuth2 app code token"),
|
||||
ActionRead: actDef("read an OAuth2 app code token"),
|
||||
ActionDelete: actDef("delete an OAuth2 app code token"),
|
||||
},
|
||||
},
|
||||
"notification_message": {
|
||||
|
||||
Reference in New Issue
Block a user