Skip to content

bug: auto-generated task name is too long preventing Task from starting #20224

Closed

Description

@david-fraley

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Description

We've gotten reports from a customer of failure to start/spin up a task because the domain name is too long. Note I changed the domain name in the error below to not include specific customer information. See the linked Slack thread for specifics.

It was brought up potentially using Subject Alternative Name (SAN) instead of CN.

Relevant Log Output

ValueError: Domain name [task-turquoise-elephant-71-name-redacted.direct.coder.dev.redacted.ab](http://task-turquoise-elephant-71-name-redacted.direct.coder.dev.redacted.ab/) is too long. Must be 64 characters or less. Please create a new workspace with a shorter name.

Expected Behavior

Tasks, regardless of the character count of the task name, should spin up without issue.

Steps to Reproduce

  1. Create a test user with a super long username
  2. Setup a deployment with a long domain name
  3. Create a task

Environment

tbd

Additional Context

No response

Activity

  1. added theissue type on Oct 8, 2025
  2. johnstcn commented on Oct 15, 2025

    @johnstcn
    Member

    @DanielleMaywood to close this out with the solution

  3. DanielleMaywood commented on Oct 16, 2025

    @DanielleMaywood
    Contributor

    The issue isn't with Coder but with the customer's template/provisioning script when they generate X.509 certificates using OpenSSL. The solution is for them to use SAN for the FQDN instead of CN, since CN has a 64-character limit per RFC 5280.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

needs-triageIssue that require triagepapercutlabel for papercuts

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions