Description
Noticed on main
, but should be reproducible on released versions. If you assign a custom role to a user and that user attempts to build a workspace then the agent will fail to establish a connection to the control plane.
You'll see messages similar to
2025-01-22 22:54:28.431 [info] connecting to coderd
2025-01-22 22:54:28.504 [warn] run exited with error ...
error= GET https://domain/api/v2/workspaceagents/me/rpc?version=2.3: unexpected status code 400: Internal error fetching workspace.
Error: unauthorized: convert input to value: subject: expand roles: get role permissions: role "template-auditors:703f72a1-76f6-4f89-9de6-8a3989693fe5" not found
cc @Emyrk I know you're on the case