Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhancement(core): Only run openssl-probe when no SSL variable is set
This commit only applies the `openssl_probe::init_ssl_cert_env_vars()` function if both `openssl_probe::ENV_CERT_FILE` (typically `SSL_CERT_FILE`) and `openssl_probe::ENV_CERT_DIR` (typically `SSL_CERT_DIR`) are unset in the environment. This allows users to fully disable the openssl-probe functionality by configuring at least one of these variables in the environment when starting Vector. Previously, `init_ssl_cert_env_vars()` would configure both of these variables independently. If the user provides only one of them, the other would still be configured. Furthermore, openssl-prober silently overrides variables if they point to invalid files/directories. All of this can be very confusing for users of the `exec` source, which by default inherits the environment from Vector. Signed-off-by: Hugo Hromic <[email protected]>
- Loading branch information