diff --git a/authentik/lib/config.py b/authentik/lib/config.py index 9980b5dc8..41f51595e 100644 --- a/authentik/lib/config.py +++ b/authentik/lib/config.py @@ -88,10 +88,10 @@ class ConfigLoader: value = os.getenv(url.netloc, url.query) if url.scheme == "file": try: - with open(url.netloc, "r") as _file: + with open(url.path, "r") as _file: value = _file.read() except OSError: - self._log("error", f"Failed to read config value from {url.netloc}") + self._log("error", f"Failed to read config value from {url.path}") value = url.query return value diff --git a/outpost/pkg/ak/global.go b/outpost/pkg/ak/global.go index 6e73c9a09..51ee640cd 100644 --- a/outpost/pkg/ak/global.go +++ b/outpost/pkg/ak/global.go @@ -52,6 +52,7 @@ func doGlobalSetup(config map[string]interface{}) { defer sentry.Flush(2 * time.Second) } +// GetTLSTransport Get a TLS transport instance, that skips verification if configured via environment variables. func GetTLSTransport() http.RoundTripper { value, set := os.LookupEnv("AUTHENTIK_INSECURE") if !set {