From 6ca165412931456b5ade238803732b76d1ca1a00 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 2 Dec 2022 12:27:14 +0200 Subject: [PATCH] lifecycle: don't set user/group in gunicorn closes #4098 closes #3236 the user and group are inherited from the parent process so this isnt required Signed-off-by: Jens Langhammer --- lifecycle/gunicorn.conf.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lifecycle/gunicorn.conf.py b/lifecycle/gunicorn.conf.py index e579375b9..48c5f76cd 100644 --- a/lifecycle/gunicorn.conf.py +++ b/lifecycle/gunicorn.conf.py @@ -1,6 +1,5 @@ """Gunicorn config""" import os -import pwd from hashlib import sha512 from multiprocessing import cpu_count from os import makedirs @@ -23,13 +22,6 @@ if TYPE_CHECKING: bind = "127.0.0.1:8000" -try: - pwd.getpwnam("authentik") - user = "authentik" - group = "authentik" -except KeyError: - pass - _tmp = Path(gettempdir()) worker_class = "lifecycle.worker.DjangoUvicornWorker" worker_tmp_dir = str(_tmp.joinpath("authentik_worker_tmp"))