From 8d2a3b67b91f0d1ad64e736e4f52c3917b14adc3 Mon Sep 17 00:00:00 2001 From: Tom Pansino <2768420+tpansino@users.noreply.github.com> Date: Sun, 16 May 2021 12:10:31 -0700 Subject: [PATCH] lib: Fix config loading of secrets from files (#887) --- authentik/lib/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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