diff --git a/authentik/root/install_id.py b/authentik/root/install_id.py index ec03da61d47d..f0f319aa7c25 100644 --- a/authentik/root/install_id.py +++ b/authentik/root/install_id.py @@ -7,12 +7,7 @@ from authentik.lib.config import CONFIG -# We need to string format the query as tables and schemas can't be set by parameters -# not a security issue as the config value is set by the person installing authentik -# which also has postgres credentials etc -QUERY = """SELECT id FROM {}.authentik_install_id ORDER BY id LIMIT 1;""".format( # nosec - CONFIG.get("postgresql.default_schema") -) +QUERY = """SELECT id FROM public.authentik_install_id ORDER BY id LIMIT 1;""" @lru_cache