Browse Source

Merge pull request #6268 from wlallemand/haproxy-fix-secure-debug

haproxy: don't leak private keys when doing --debug
neil 7 tháng trước cách đây
mục cha
commit
f2931163aa
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      deploy/haproxy.sh

+ 1 - 1
deploy/haproxy.sh

@@ -357,7 +357,7 @@ haproxy_deploy() {
         _info "Update existing certificate '${_pem}' over HAProxy ${_socketname}."
         _info "Update existing certificate '${_pem}' over HAProxy ${_socketname}."
       fi
       fi
       _socat_cert_set_cmd="echo -e '${_cmdpfx}set ssl cert ${_pem} <<\n$(cat "${_pem}")\n' | socat '${_statssock}' - | grep -q 'Transaction created'"
       _socat_cert_set_cmd="echo -e '${_cmdpfx}set ssl cert ${_pem} <<\n$(cat "${_pem}")\n' | socat '${_statssock}' - | grep -q 'Transaction created'"
-      _debug _socat_cert_set_cmd "${_socat_cert_set_cmd}"
+      _secure_debug _socat_cert_set_cmd "${_socat_cert_set_cmd}"
       eval "${_socat_cert_set_cmd}"
       eval "${_socat_cert_set_cmd}"
       _ret=$?
       _ret=$?
       if [ "${_ret}" != "0" ]; then
       if [ "${_ret}" != "0" ]; then