runboat icon indicating copy to clipboard operation
runboat copied to clipboard

Support https in build ingresses

Open mileo opened this issue 2 years ago • 8 comments

Some features depends of the use of HTTPS, for example service workers.

image

mileo avatar Oct 14 '22 13:10 mileo

Interesting. Is that a issue new in 16?

If there is no workaround in the browser, then we'll need to find a way to deploy and maintain a wildcard certificate.

sbidoul avatar Oct 17 '22 11:10 sbidoul

Before, it seems nginx did use a default self signed certificate if used forced an https URL. haproxy does not do that, it would seem.

See also https://github.com/OCA/hr-attendance/pull/80#issuecomment-1308690046

sbidoul avatar Nov 09 '22 12:11 sbidoul

Interesting. Is that a issue new in 16?

If there is no workaround in the browser, then we'll need to find a way to deploy and maintain a wildcard certificate.

It's a issue on https://github.com/OCA/pos/pull/835

But could apply to other features too.

mileo avatar Nov 10 '22 09:11 mileo

@sbidoul we use rancher+k8s+nginx some example:

https://github.com/mileo/runboat/commit/0f0a10bc2bafa136aca619660b2840ffa3f7ac82

mileo avatar Nov 10 '22 09:11 mileo

Yeah, but I'm not sure that generating a new letsencrypt certificate for each commit we do in OCA is going to be ok with the letsencrypt usage policies.

sbidoul avatar Nov 10 '22 09:11 sbidoul

Yeah, but I'm not sure that generating a new letsencrypt certificate for each commit we do in OCA is going to be ok with the letsencrypt usage policies.

May be some guys of our team can awnser this one: @kardeco @ananiasfilho

mileo avatar Nov 10 '22 09:11 mileo

Let's encrypt have many limitations as certs per IP, certs per domains and others. The best and single way maybe will run with a wildcard ssl certificate.

ananiasfilho avatar Nov 11 '22 00:11 ananiasfilho

I agree using a wildcard ssl certificate is the best solution. It's a bit of a burden to set up and maintain, though.

So in the meantime I enabled a default self-signed certificate on the OCA runboat instance.

So you can manually change the build URL to https, and manually accept the default certificate. Not perfect but probably good enough for now.

sbidoul avatar Nov 11 '22 09:11 sbidoul