mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
feat: allow auditors to read template insights (#10860)
- Adds a template_insights pseudo-resource - Grants auditor and template admin roles read access on template_insights - Updates existing RBAC checks to check for read template_insights, falling back to template update permissions where necessary - Updates TemplateLayout to show Insights tab if can read template_insights or can update template
This commit is contained in:
6
coderd/apidoc/docs.go
generated
6
coderd/apidoc/docs.go
generated
@ -9673,7 +9673,8 @@ const docTemplate = `{
|
||||
"deployment_stats",
|
||||
"replicas",
|
||||
"debug_info",
|
||||
"system"
|
||||
"system",
|
||||
"template_insights"
|
||||
],
|
||||
"x-enum-varnames": [
|
||||
"ResourceWorkspace",
|
||||
@ -9697,7 +9698,8 @@ const docTemplate = `{
|
||||
"ResourceDeploymentStats",
|
||||
"ResourceReplicas",
|
||||
"ResourceDebugInfo",
|
||||
"ResourceSystem"
|
||||
"ResourceSystem",
|
||||
"ResourceTemplateInsights"
|
||||
]
|
||||
},
|
||||
"codersdk.RateLimitConfig": {
|
||||
|
Reference in New Issue
Block a user