150 Commits

Author SHA1 Message Date
Joao Morais 58373808bf Merge pull request #228 from jcmoraisjr/jm-ssl-pass-http-port
Add http-port on ssl-passthrough
2018-10-22 21:58:18 -03:00
Joao Morais f12c34785a Add http-port on ssl-passthrough 2018-10-22 21:47:05 -03:00
Joao Morais 8149e7298f Add OAuth2 support
Starting implementation of OAuth2 support. An oauth2 proxy should be configured as a deployment+service to make the OAuth handshake and sign a token. The current implementation uses Bitly’s `oauth2_proxy`.
2018-10-22 21:44:51 -03:00
Joao Morais 3af8b5fe1f Add proxy-protocol annotation
Add `ingress.kubernetes.io/proxy-protocol` annotation for backends. Supported protocols are `v1`, `v2`, `v2-ssl`, `v2-ssl-cn`, falling back to not using the protocol if not specified.
2018-10-22 21:11:02 -03:00
Joao Morais b3fac1c9ca Add per directory TLS configuration of shared frontend
A single HAProxy frontend can handle several domains using a single `bind` keyword and a single `crt` configuration. This change create a directory that receives (hard link) all certificates used on the shared frontend.

This will change again on v0.8 after create an array of frontends, each one with their array of servers/crt/key.
2018-10-20 18:29:10 -03:00
Joao Morais d31d82be9d Revert "Use a multi pem file instead the ssl dir on shared frontend"
This reverts commit bbc0001e9f.
2018-10-20 18:10:15 -03:00
Joao Morais 932307ff7b Fix SSL redirect if no TLS config is used
Template trust only in the SSLRedirect attribute to configure the redirect itself and the URL rewrite.
So turn SSLRedirect off despite of its original configuration if the server doesn’t have a certificate.
2018-10-16 20:59:03 -03:00
Joao Morais d1a64e4755 Merge pull request #231 from jcmoraisjr/jm-fix-redirect
Fix redirect of non TLS hosts
2018-10-12 16:30:40 -03:00
Joao Morais 79e82de105 Override stop signal from upstream image
The upstream image is used to start HAProxy itself as pid1. Its stop signal was changed to SIGUSR1 which does a soft reload. Our pid1 is the controller which only listen SIGTERM (docker stop) and SIGINT (^C).

Changing the stop signal in the container image as a way to document what the controller process is expecting.
2018-10-12 15:57:31 -03:00
Joao Morais cd57503d07 Fix redirect of non TLS hosts 2018-10-11 21:47:07 -03:00
Joao Morais ab62cfe38c Merge pull request #222 from jcmoraisjr/jm-backend-crt
Add client cert auth for backend
2018-09-30 09:12:33 -03:00
Joao Morais 791c1557ac Merge pull request #223 from jcmoraisjr/jm-multi-pem-file
Use a multi pem file instead the ssl dir on shared frontend
2018-09-30 09:11:05 -03:00
Joao Morais 1359e29dd1 Add client cert auth for backend 2018-09-30 09:06:53 -03:00
Joao Morais af653b1d5b Add strict-host configmap option 2018-09-30 08:45:39 -03:00
Joao Morais bbc0001e9f Use a multi pem file instead the ssl dir on shared frontend 2018-09-29 17:33:01 -03:00
Joao Morais 0a9d97bb20 Reuse backend server config 2018-09-19 16:27:20 -03:00
Aleks b553064ff8 Updated as wished 2018-08-19 22:04:46 +02:00
Aleks 5f0bbadda2 Add /ingress-controller
Add the directory `/ingress-controller` because in OpenShift can't the pod create the root dir
fix #205
2018-08-14 22:23:22 +02:00
Joao Morais 332d780471 Merge pull request #202 from jcmoraisjr/jm-rate-limit-http
Fix host match of rate limit on shared frontend
2018-08-06 21:09:43 -03:00
Joao Morais 7eb08d2c0d Show CA-PEM checksum 2018-08-05 22:33:28 -03:00
Joao Morais c1dfa015d8 Fix host match of rate limit on shared frontend 2018-08-05 22:20:52 -03:00
Joao Morais dfc8eeb1e7 Remove ssl/https acl on ssl-only process 2018-07-27 21:41:24 -03:00
Joao Morais 1f57540ac9 Add SSL/TLS support on multi process config 2018-07-27 21:39:38 -03:00
Joao Morais 2c410f288f add multi process and multi thread support 2018-07-27 21:37:48 -03:00
Joao Morais 0587083ed8 Configure per location web application firewall 2018-07-25 21:54:18 -03:00