Skip to content

Using a custom role prevents agent from establishing connection with control plane #16240

Closed
@sreya

Description

@sreya

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

Metadata

Metadata

Assignees

Labels

enterpriseEnterprise-license / premium functionalitys1Bugs that break core workflows. Only humans may set this.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions