Skip to content

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

@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

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy