Skip to content

chore: add test to document current behaviour on template ACL revocation#26104

Open
johnstcn wants to merge 4 commits into
mainfrom
cj/test-what-happens-when-you-remove-template-acl
Open

chore: add test to document current behaviour on template ACL revocation#26104
johnstcn wants to merge 4 commits into
mainfrom
cj/test-what-happens-when-you-remove-template-acl

Conversation

@johnstcn
Copy link
Copy Markdown
Member

@johnstcn johnstcn commented Jun 5, 2026

Documents a question raised in #26061 (comment) - I couldn't find the exact answer, so adding a test and accompanying documentation seemed like the prudent move here.

@johnstcn johnstcn self-assigned this Jun 5, 2026
Copilot AI review requested due to automatic review settings June 5, 2026 15:27
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 5, 2026

Docs preview

📖 View docs preview for docs/admin/templates/template-permissions.md

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds coverage and admin-facing documentation for the current behavior when a user loses access to a template after creating a workspace from it (template RBAC/ACL revocation), clarifying that subsequent workspace build transitions fail.

Changes:

  • Added an enterprise integration test that revoking template access prevents starting an existing workspace build.
  • Added a warning to the template permissions admin docs describing the operational impact of removing template access.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
enterprise/coderd/workspacebuilds_test.go Adds a regression/documentation test for workspace build behavior after template access is revoked.
docs/admin/templates/template-permissions.md Documents the impact of losing template access on managing existing workspaces.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread enterprise/coderd/workspacebuilds_test.go Outdated
Comment thread docs/admin/templates/template-permissions.md Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants