diff --git a/authentik/admin/api/system.py b/authentik/admin/api/system.py index 51c2adf1f..ef411469e 100644 --- a/authentik/admin/api/system.py +++ b/authentik/admin/api/system.py @@ -45,7 +45,7 @@ class SystemSerializer(PassiveSerializer): def get_env(self, request: Request) -> dict[str, str]: """Get Environment""" - return os.environ + return os.environ.copy() def get_http_headers(self, request: Request) -> dict[str, str]: """Get HTTP Request headers"""