Skip to content

Conversation

SasSwart
Copy link
Contributor

closes #18274

This pull request makes system users visible in various group related queries so that they can be added to and removed from groups. This allows system user quotas to be configured. System users are still ignored in certain queries, such as when license seat consumption is determined.

This pull request further ensures the existence of a "coder_prebuilt_workspaces" group in any organization that needs prebuilt workspaces

@SasSwart SasSwart marked this pull request as ready for review August 25, 2025 13:59
Copy link
Contributor

@ssncferreira ssncferreira left a comment

Choose a reason for hiding this comment

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

Overall LGTM, just a question about the Quota Allowance of the prebuilds group as 0.

DisplayName: PrebuiltWorkspacesGroupDisplayName,
OrganizationID: preset.OrganizationID,
AvatarURL: "",
QuotaAllowance: 0, // Default quota of 0, users should set this based on their needs
Copy link
Contributor

Choose a reason for hiding this comment

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

Correct me if I'm wrong, but does this mean that once this change is rolled out, no more prebuilt workspaces will be able to be provisioned until the Quota Allowance is changed? Or is the prebuilds user still part of the Everyone group?
Just asking because, in case there is a need for user action, we might need to consider this a breaking change and explicitly document the steps to set this allowance.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the prebuilds user is still a member of the everyone group, so this shouldn't be too much of a breaking change.

Copy link
Contributor

@ssncferreira ssncferreira Aug 27, 2025

Choose a reason for hiding this comment

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

Ok, thanks for the clarification!

nit(non-blocking): It might be helpful to also add this info to the documentation, that the prebuilds user is a member of the Everyone group (which also has a quota allowance). Maybe also include a section explaining that if the quota is exceeded, the workspace build will fail and the prebuilds group quota allowance should be increased.

Co-authored-by: Susana Ferreira <susana@coder.com>
Copy link
Contributor

@ssncferreira ssncferreira left a comment

Choose a reason for hiding this comment

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

LGTM, let's try it 🤞
Just a small non-blocking nit for documentation

DisplayName: PrebuiltWorkspacesGroupDisplayName,
OrganizationID: preset.OrganizationID,
AvatarURL: "",
QuotaAllowance: 0, // Default quota of 0, users should set this based on their needs
Copy link
Contributor

@ssncferreira ssncferreira Aug 27, 2025

Choose a reason for hiding this comment

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

Ok, thanks for the clarification!

nit(non-blocking): It might be helpful to also add this info to the documentation, that the prebuilds user is a member of the Everyone group (which also has a quota allowance). Maybe also include a section explaining that if the quota is exceeded, the workspace build will fail and the prebuilds group quota allowance should be increased.

@SasSwart SasSwart merged commit 4e9ee80 into main Aug 27, 2025
33 checks passed
@SasSwart SasSwart deleted the jjs/prebuilds-user-group-membership branch August 27, 2025 14:58
@github-actions github-actions bot locked and limited conversation to collaborators Aug 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Workspace prebuilds conform to the site quota, leading many to fail
2 participants