Skip to content

Support HTTPS internal server schema in coder_app #5891

@bpmct

Description

@bpmct

In Coder v1, we supported both http and https servers via dev URLs. If the user was running an app in their workspace with a self-signed certificate, Coder would essentially ignore/replace it with the valid certificate for dev URLs.

Screen Shot 2023-01-27 at 9 32 51 AM

We should do something similar for v2. Perhaps magically supporting https URLs in coder_app?

When I tried this, it didn't work

resource "coder_app" "backstage" {
  agent_id     = coder_agent.main.id
  slug         = "backstage"
  display_name = "backstage"
  url          = "https://localhost:4443"
  icon         = "/icon/code.svg"
  subdomain    = false
  share        = "owner"
}
coder@ok:~$ curl --insecure https://localhost:4443
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

Screen Shot 2023-01-27 at 9 35 06 AM

Metadata

Metadata

Assignees

Labels

must-doIssues that must be completed by the end of the Sprint. Or else. Only humans may set this.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions