Final code review fixes: move import, remove empty tests, add production warning

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-09 11:53:43 +00:00
parent 8550799bf8
commit 494ef135d5
3 changed files with 13 additions and 64 deletions
+9
View File
@@ -43,6 +43,15 @@ logger.warning(
"Not suitable for production multi-instance deployments."
)
# Check if running in production mode and warn
import os
if os.getenv("ENVIRONMENT", "development").lower() == "production":
logger.error(
"CRITICAL: Running in PRODUCTION mode with in-memory API key storage! "
"This is NOT recommended for production. "
"Implement database-backed or Redis-based key storage for production deployments."
)
def generate_api_key() -> str:
"""