[v9.3.x] Plugins: add option to proxy ds connections through a secure socks proxy (#59254) (#60643)

Plugins: add option to proxy ds connections through a secure socks proxy (#59254)

* Plugins: add feature to proxy data source connections

(cherry picked from commit 6805c951e9)
This commit is contained in:
Stephanie Hingtgen
2023-01-04 20:05:18 +05:30
committed by GitHub
parent 41ce629a25
commit a4b7019ff0
10 changed files with 343 additions and 1 deletions
+9
View File
@@ -468,6 +468,8 @@ type Cfg struct {
Search SearchSettings
SecureSocksDSProxy SecureSocksDSProxySettings
// Access Control
RBACEnabled bool
RBACPermissionCache bool
@@ -1070,6 +1072,13 @@ func (cfg *Cfg) Load(args CommandLineArgs) error {
cfg.Storage = readStorageSettings(iniFile)
cfg.Search = readSearchSettings(iniFile)
cfg.SecureSocksDSProxy, err = readSecureSocksDSProxySettings(iniFile)
if err != nil {
// if the proxy is misconfigured, disable it rather than crashing
cfg.SecureSocksDSProxy.Enabled = false
cfg.Logger.Error("secure_socks_datasource_proxy unable to start up", "err", err.Error())
}
if VerifyEmailEnabled && !cfg.Smtp.Enabled {
cfg.Logger.Warn("require_email_validation is enabled but smtp is disabled")
}