Skip to content

feat: allow suffix after wildcard in wildcard access URL#4524

Merged
deansheather merged 6 commits into
mainfrom
dean/app-wildcard-suffix
Oct 14, 2022
Merged

feat: allow suffix after wildcard in wildcard access URL#4524
deansheather merged 6 commits into
mainfrom
dean/app-wildcard-suffix

Conversation

@deansheather
Copy link
Copy Markdown
Member

@deansheather deansheather commented Oct 12, 2022

Allows --wildcard-access-url to be set to values like *-apps.coder.example.com. This is support in Coder v1 (and depended on by a large customer), and has been requested in v2 also. This enables using a single SAN to serve both coder and app URLs by issuing a single wildcard cert.

  • The /applications/host endpoint now returns the full app hostname as specified by the admin including the *. or *-suffix. prefix. The new preferred way of forming an app URL is to do `${scheme}//${host}`.replace("*", subdomain)

TODO:

  • Helm chart changes to support this in the ingress object (will be copied from v1 helm chart)
  • Tests that ensure app URLs work with suffixed wildcard access URL

@deansheather deansheather marked this pull request as ready for review October 14, 2022 17:37
@deansheather deansheather requested a review from coadler October 14, 2022 17:37
@deansheather deansheather requested a review from a team as a code owner October 14, 2022 18:00
@deansheather deansheather requested review from BrunoQuaresma, code-asher and presleyp and removed request for a team, code-asher and presleyp October 14, 2022 18:00
Comment thread cli/deployment/flags.go Outdated
Copy link
Copy Markdown
Contributor

@presleyp presleyp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@deansheather deansheather enabled auto-merge (squash) October 14, 2022 18:19
@deansheather deansheather merged commit a029817 into main Oct 14, 2022
@deansheather deansheather deleted the dean/app-wildcard-suffix branch October 14, 2022 18:25
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants