Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bug: fail to autostop dormant workspace - RBAC error inserting agent #20711

Closed
Labels
Area: rbacregressionSomething that used to work but no longer workss2Broken use cases or features (with a workaround). Only humans may set this.
@spikecurtis

Description

@spikecurtis

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Autostop builds of dormant workspaces fail if the workspace template includes agents without a

count  = data.coder_workspace.me.start_count

field.

This occurs becauseworkspace_dormant is a separate RBAC resource than regular workspaces, and the Provisioner Daemon subject doesn't have permission to create agents on dormant workspaces. It seems that we (incorrectly) assumed that since dormant workspaces can only be stopped, not started, that we would not need to create agents. However, there is nothing in the data model actuallypreventing the creation of agents on stop builds, so autostops of dormant workspaces can get into a failure loop.

Relevant Log Output

error:complete job: execute transaction: insert provisioner job: insert agent: unauthorized: rbac: forbidden

Expected Behavior

Autostop builds of dormant workspaces should succeed, even withcoder_agent resources.

Steps to Reproduce

  1. Create a template with acoder_agent and nocount.
  2. Start the workspace with an autostop
  3. Mark the workspace dormant while still started
  4. Allow an automatic stop build

Environment

  • Coder version: 2.28, likely introduced by3e7ff9d

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: rbacregressionSomething that used to work but no longer workss2Broken use cases or features (with a workaround). Only humans may set this.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp