From 9bd64c04295311d2d415d3fc4b229e67640ffba9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 29 Mar 2026 17:45:02 +0000 Subject: [PATCH] fix: remove clear-text logging of full API key Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/add3a51d-8235-4d29-8020-589bffa8ebb5 Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> --- backend/app/main.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/backend/app/main.py b/backend/app/main.py index 7de006c..93ca5fb 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -241,11 +241,6 @@ def create_app() -> FastAPI: "=" * 80, ) - # In development, also log the full key for convenience - # This should be removed in production or controlled by environment variable - if os.getenv("ENVIRONMENT", "development") == "development": - logger.info("Development Mode - Full API Key: %s", api_key) - # One-time migration: if IMAP_* env vars are set and no mail sources exist, # create an initial MailSource from those settings so existing deployments # continue to work without manual reconfiguration.