allow the default editor role to create nodes (#29763)

This commit is contained in:
Andrew LeFevre 2023-08-01 12:32:26 -04:00 committed by GitHub
parent db08adca8e
commit 1ca745ca0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -161,6 +161,7 @@ func NewPresetEditorRole() types.Role {
types.NewRule(types.KindBilling, RW()),
types.NewRule(types.KindClusterAlert, RW()),
types.NewRule(types.KindAccessList, RW()),
types.NewRule(types.KindNode, RW()),
// Please see defaultAllowRules when adding a new rule.
},
},
@ -407,6 +408,7 @@ func defaultAllowRules() map[string][]types.Rule {
types.NewRule(types.KindBilling, RW()),
types.NewRule(types.KindInstance, RO()),
types.NewRule(types.KindAssistant, append(RW(), types.VerbUse)),
types.NewRule(types.KindNode, RW()),
},
teleport.PresetAccessRoleName: {
types.NewRule(types.KindInstance, RO()),