diff --git a/authentik/root/settings.py b/authentik/root/settings.py index 83764acc4..707fd9c10 100644 --- a/authentik/root/settings.py +++ b/authentik/root/settings.py @@ -419,7 +419,7 @@ if _ERROR_REPORTING: set_tag("authentik.build_hash", get_build_hash("tagged")) set_tag("authentik.env", env) set_tag("authentik.component", "backend") - set_tag("authentik.uuid", sha512(SECRET_KEY.encode("ascii")).hexdigest()[:16]) + set_tag("authentik.uuid", sha512(str(SECRET_KEY).encode("ascii")).hexdigest()[:16]) j_print( "Error reporting is enabled", env=CONFIG.y("error_reporting.environment", "customer"), @@ -439,7 +439,7 @@ if not CONFIG.y_bool("disable_startup_analytics", False): ), }, headers={ - "User-Agent": sha512(SECRET_KEY.encode("ascii")).hexdigest()[:16], + "User-Agent": sha512(str(SECRET_KEY).encode("ascii")).hexdigest()[:16], "Content-Type": "application/json", }, timeout=5,