Skip to content
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

feat(deployment): allow "subdomain separator" to be customised #2273

Merged
merged 4 commits into from
Jul 10, 2024

Conversation

theosanderson
Copy link
Member

@theosanderson theosanderson commented Jul 8, 2024

The "logical" way our authentication, backend etc. hosts should be specified is that we should have a main domain (or subdomain) e.g. pathoplexus.org for the website, and the backend should be backend.pathoplexus.org. This can also theoretically work with subdomains, with backend.pathoplexus.loculus.org. However we were running out of certificates with all our preview instances so we created a wildcard certificate for *.loculus.org. You cannot create a wildcard certificate with two wildcards (*.*.loculus.org) and so we have adopted a strategy where we instead use a pattern like authentication-pathoplexus.loculus.org for preview instances. However for the main pathoplexus instance we want to revert to authentication.pathoplexus.org so this PR adds a configurable value subdomainSeparator that can be set to - or . as we wish.

@theosanderson theosanderson reopened this Jul 8, 2024
@theosanderson theosanderson added the preview Triggers a deployment to argocd label Jul 8, 2024
@corneliusroemer corneliusroemer changed the title wip wip: keycloak domain Jul 9, 2024
@corneliusroemer corneliusroemer marked this pull request as draft July 9, 2024 15:57
@theosanderson theosanderson changed the title wip: keycloak domain feat(deployment): allow "subdomain separator" to be customised Jul 10, 2024
@theosanderson theosanderson marked this pull request as ready for review July 10, 2024 16:26
Copy link
Contributor

@corneliusroemer corneliusroemer left a comment

Choose a reason for hiding this comment

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

Thanks this is great!

How have you tested it? Checking the yaml that's rendered or also more?

Maybe we should a) make a preview deployment to see the previews still work and b) make a deployment that explicitly tests the . separator

Don't have any comments on the code. Feel free to merge, just curious about how you tested.

@theosanderson
Copy link
Member Author

theosanderson commented Jul 10, 2024

I tested it doesn't break the current set up by making a preview deployment (I'd done that already, to clarify, but hadn't included the URL). https://kc-rf.loculus.org/

Using the . separator will likely requires additional stuff on certificates. Certificates are not part of our built in deployment architecture.

@theosanderson theosanderson merged commit 46d197e into main Jul 10, 2024
8 checks passed
@theosanderson theosanderson deleted the kc-rf branch July 10, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
preview Triggers a deployment to argocd
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants