Skip to content

Non URL-safe characters in app names cause them to be inaccessible over subdomains #4571

Closed
@ntimo

Description

@ntimo

Description

When using coder_apps with subdomain=true every time you try to open the app using the button in the ws dashboard coder shows a 404 - Application not found page.

Steps to reproduce

  1. Define a coder app in your main.tf like this:

resource "coder_app" "codeserver" {
  agent_id  = coder_agent.dev.id
  name      = "Code Server"
  url       = "http://localhost:8080/?folder=/home/coder/workspace"
  icon      = "/icon/code.svg"
  subdomain = true
  healthcheck {
    url	  = "http://localhost:8080/healthz"
    interval  = 2
    threshold = 10
  }
}
  1. Push the template change
  2. Start the workspace
  3. Try to open codeserver

Addition Infos

Coder Version: Coder v0.9.10+574e5d3

Coder has a CODER_WILDCARD_ACCESS_URL configured to *.coder.example.com

Metadata

Metadata

Assignees

Labels

s0Major regression, all-hands-on-deck to fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions