Skip to content

Conversation

DanielleMaywood
Copy link
Contributor

The previous logic verified a generated name was valid, and then appended a suffix to it. This was flawed as it would allow a 32 character name, and then append an extra 5 characters to it.

Instead we now append the suffix and then verify it is valid.

@DanielleMaywood DanielleMaywood force-pushed the danielle/fix/taskname-length branch from f5b3be7 to 16031b2 Compare August 28, 2025 11:31
@DanielleMaywood DanielleMaywood changed the title fix(coderd/taskname): ensure generated name is under 32 bytes fix(coderd/taskname): ensure generated name is with 32 bytes limit Aug 28, 2025
@DanielleMaywood DanielleMaywood changed the title fix(coderd/taskname): ensure generated name is with 32 bytes limit fix(coderd/taskname): ensure generated name is within 32 bytes limit Aug 28, 2025
@DanielleMaywood DanielleMaywood changed the title fix(coderd/taskname): ensure generated name is within 32 bytes limit fix(coderd/taskname): ensure generated name is within 32 byte limit Aug 28, 2025
@DanielleMaywood DanielleMaywood marked this pull request as ready for review August 28, 2025 11:40
@johnstcn johnstcn added the cherry-pick/v2.26 Needs to be cherry-picked to the 2.26 release branch label Aug 28, 2025
@DanielleMaywood DanielleMaywood merged commit 347ab5b into main Aug 28, 2025
59 of 61 checks passed
@DanielleMaywood DanielleMaywood deleted the danielle/fix/taskname-length branch August 28, 2025 11:58
@github-actions github-actions bot locked and limited conversation to collaborators Aug 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cherry-pick/v2.26 Needs to be cherry-picked to the 2.26 release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants