Closed bpmct closed 10 months ago
@deansheather mind taking this one?
This seems highly niche.
We also output the appropriate values when you do coder wsproxy create
CODER_PROXY_SESSION_TOKEN=<token> coder wsproxy server --primary-access-url https://<host>.com --http-address=0.0.0.0:3001
I am having trouble even setting this up. When you create a new proxy, it requests the /buildinfo
endpoint, which doesn't return a json payload, so you get:
$ go run main.go wsproxy server --primary-access-url=https://filebrowser--dev--coder--emyrk--apps.dev.coder.com/ ...
#...
Encountered an error running "coder workspace-proxy server"
create workspace proxy: failed to fetch build info from "https://filebrowser--dev--coder--emyrk--apps.dev.coder.com/": invalid character '<' looking for beginning of value
So you can't even start the workspace proxy here to set it up in the first place.
Hey - I'm down to close this as not planned if this is a very unlikely setup. I don't know how to reproduce it.
@bpmct I have already spent some time on this path, and I found some little things I can improve. I'll put up a PR or two, but I don't think I have the setup for this specific situation.
Cli error improvements: https://github.com/coder/coder/pull/11584
Found the way to reproduce, had it backwards. Fixed
Background
A customer may mistakenly put a proxy in the same DNS path as wildcard apps, where the wildcard app somehow takes priority.
e.g.
*.demo.coder.com
vsproxy.demo.coder.com
Proposal
Show a unique error in the health check to explain the conflict and resolution