haproxy/reg-tests/checks
William Dauchy f63704488e MEDIUM: cli/ssl: configure ssl on server at runtime
in the context of a progressive backend migration, we want to be able to
activate SSL on outgoing connections to the server at runtime without
reloading.
This patch adds a `set server ssl` command; in order to allow that:

- add `srv_use_ssl` to `show servers state` command for compatibility,
  also update associated parsing
- when using default-server ssl setting, and `no-ssl` on server line,
  init SSL ctx without activating it
- when triggering ssl API, de/activate SSL connections as requested
- clean ongoing connections as it is done for addr/port changes, without
  checking prior server state

example config:

backend be_foo
  default-server ssl
  server srv0 127.0.0.1:6011 weight 1 no-ssl

show servers state:

  5 be_foo 1 srv0 127.0.0.1 2 0 1 1 15 1 0 4 0 0 0 0 - 6011 - -1

where srv0 can switch to ssl later during the runtime:

  set server be_foo/srv0 ssl on

  5 be_foo 1 srv0 127.0.0.1 2 0 1 1 15 1 0 4 0 0 0 0 - 6011 - 1

Also update existing tests and create a new one.

Signed-off-by: William Dauchy <wdauchy@gmail.com>
2020-11-18 17:22:28 +01:00
..
1be_40srv_odd_health_checks.vtc MEDIUM: cli/ssl: configure ssl on server at runtime 2020-11-18 17:22:28 +01:00
4be_1srv_health_checks.vtc MEDIUM: cli/ssl: configure ssl on server at runtime 2020-11-18 17:22:28 +01:00
4be_1srv_smtpchk_httpchk_layer47errors.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
40be_2srv_odd_health_checks.vtc MEDIUM: cli/ssl: configure ssl on server at runtime 2020-11-18 17:22:28 +01:00
agent-check.vtc REGTEST: make agent-check.vtc require 1.8 2020-09-29 10:58:04 +02:00
common.pem
http-check-expect.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
http-check-send.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
http-check.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
http-monitor-uri.vtc MINOR: http-ana: Match on the path if the monitor-uri starts by a / 2020-02-18 16:29:29 +01:00
ldap-check.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
mysql-check.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
pgsql-check.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
redis-check.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
smtp-check.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
spop-check.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
ssl-hello-check.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
tcp-check_min-recv.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
tcp-check_multiple_ports.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
tcp-check-ssl.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
tcp-checks-socks4.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
tls_health_checks.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00