From 7f9b4ad9a88dcf500498bd9074bdd41d7e1a10c1 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Wed, 4 Oct 2023 13:37:25 -0500 Subject: [PATCH] fix: allow auditors to query deployment stats and insights (#10058) This is a customer request. --- coderd/rbac/roles.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coderd/rbac/roles.go b/coderd/rbac/roles.go index 4f159480a0..a54d8db381 100644 --- a/coderd/rbac/roles.go +++ b/coderd/rbac/roles.go @@ -169,6 +169,9 @@ func ReloadBuiltinRoles(opts *RoleOptions) { ResourceAuditLog.Type: {ActionRead}, ResourceUser.Type: {ActionRead}, ResourceGroup.Type: {ActionRead}, + // Allow auditors to query deployment stats and insights. + ResourceDeploymentStats.Type: {ActionRead}, + ResourceDeploymentValues.Type: {ActionRead}, // Org roles are not really used yet, so grant the perm at the site level. ResourceOrganizationMember.Type: {ActionRead}, }),