10000 feat: allow suffix after wildcard in wildcard access URL by deansheather · Pull Request #4524 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Oct 14, 2022

Conversation

deansheather
Copy link
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 code-asher, presleyp and BrunoQuaresma and removed request for a team, code-asher and presleyp October 14, 2022 18:00
Copy link
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 78FC 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
0