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

Allow st2web to serve HTTPS #264

Merged
merged 8 commits into from
Nov 25, 2021
Merged

Conversation

cognifloyd
Copy link
Member

The Docker image allows serving HTTPS when environment var ST2WEB_HTTPS=1. Setting ST2WEB_HTTPS: "1" in st2web.env, however, breaks the st2web k8s deployment & service because the livenessProbe and the service are still trying to access HTTP on port 80.

To make ST2WEB_HTTPS=1 work correctly, 2 things are required:

  1. change the protocol and port if ST2WEB_HTTPS=1.
  2. add extra_volumes (like several other deployments) so users can mount ssl certs that they provide. Managing any kubernetes secrets for those certs is out-of-scope for this chart, similar to anything else provided via extra_volumes.

This PR makes those changes, but retains the current HTTP-by-default behavior.

Closes: #236

@cognifloyd cognifloyd self-assigned this Nov 11, 2021
@pull-request-size pull-request-size bot added the size/S PR that changes 10-29 lines. Very easy to review. label Nov 11, 2021
Copy link
Contributor

@ericreeves ericreeves left a comment

Choose a reason for hiding this comment

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

Elegantly introduced feature, and backward-compatible. This is a solid feature for those running in stacks who can't just shovel the work off to a cloud load balancer.

Copy link
Member

@arm4b arm4b left a comment

Choose a reason for hiding this comment

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

I thought about discussing more the approach in this PR as we've removed it before in favor of LoadBalancer or Ingress Controller which is more K8s native and flexible.

Because we have this functionality still present in the Docker images and enabling it really easy, - let's do it!

Thanks for the PR 👍

values.yaml Outdated Show resolved Hide resolved
@pull-request-size pull-request-size bot added size/M PR that changes 30-99 lines. Good size to review. and removed size/S PR that changes 10-29 lines. Very easy to review. labels Nov 25, 2021
@cognifloyd cognifloyd merged commit c832db4 into StackStorm:master Nov 25, 2021
@cognifloyd cognifloyd deleted the st2web-https branch December 2, 2021 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docker feature K8s security size/M PR that changes 30-99 lines. Good size to review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Allow serving https from the st2web pod
3 participants