diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-04-16 17:06:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-16 17:06:37 +0200 |
commit | c0eec365e2e35afe8162304d065f944ff0c42575 (patch) | |
tree | eeb4ee4e22837ed9453b439a77c155198f655081 /src | |
parent | 42082cba2f0e8c01da006bca45c3fdfa7d85c7ec (diff) | |
parent | aafe22d08bb38a579dd5075fd27a1b88beeca791 (diff) | |
download | vyos-1x-c0eec365e2e35afe8162304d065f944ff0c42575.tar.gz vyos-1x-c0eec365e2e35afe8162304d065f944ff0c42575.zip |
Merge pull request #3315 from Embezzle/T6242
T6242: load-balancing reverse-proxy: Ability for ssl backends to not verify server certificates
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/load-balancing_reverse-proxy.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conf_mode/load-balancing_reverse-proxy.py b/src/conf_mode/load-balancing_reverse-proxy.py index 694a4e1ea..9f895c4e2 100755 --- a/src/conf_mode/load-balancing_reverse-proxy.py +++ b/src/conf_mode/load-balancing_reverse-proxy.py @@ -84,6 +84,10 @@ def verify(lb): if {'send_proxy', 'send_proxy_v2'} <= set(bk_server_conf): raise ConfigError(f'Cannot use both "send-proxy" and "send-proxy-v2" for server "{bk_server}"') + if 'ssl' in back_config: + if {'no_verify', 'ca_certificate'} <= set(back_config['ssl']): + raise ConfigError(f'backend {back} cannot have both ssl options no-verify and ca-certificate set!') + for front, front_config in lb['service'].items(): for cert in dict_search('ssl.certificate', front_config) or []: verify_pki_certificate(lb, cert) |