Spaces:
Sleeping
Sleeping
SECURITY: Remove sensitive API key logging from startup
Browse files- Removed debug logging that exposed API keys and secrets
- Previously logged: GROQ_API_KEY, GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, SECRET_KEY
- Improved security posture for production deployment
- Bump version to 1.2.10
π€ Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
- app.py +1 -7
- pyproject.toml +1 -1
- version.txt +1 -1
app.py
CHANGED
|
@@ -38,13 +38,7 @@ if __name__ == "__main__":
|
|
| 38 |
logger.info(f"π Log file: {log_file}")
|
| 39 |
logger.info(f"π SSH debugging available via Dev Mode")
|
| 40 |
|
| 41 |
-
# Additional startup diagnostics
|
| 42 |
-
logger.debug("π Environment check:")
|
| 43 |
-
required_vars = ["GROQ_API_KEY", "GOOGLE_CLIENT_ID", "GOOGLE_CLIENT_SECRET", "SECRET_KEY"]
|
| 44 |
-
for var in required_vars:
|
| 45 |
-
value = os.environ.get(var, "NOT_SET")
|
| 46 |
-
masked = value[:10] + "..." if len(value) > 10 and value != "NOT_SET" else value
|
| 47 |
-
logger.debug(f" {var}: {masked}")
|
| 48 |
|
| 49 |
try:
|
| 50 |
# Add startup delay to prevent rapid restart loops
|
|
|
|
| 38 |
logger.info(f"π Log file: {log_file}")
|
| 39 |
logger.info(f"π SSH debugging available via Dev Mode")
|
| 40 |
|
| 41 |
+
# Additional startup diagnostics (removed sensitive key logging for security)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
try:
|
| 44 |
# Add startup delay to prevent rapid restart loops
|
pyproject.toml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
[tool.poetry]
|
| 2 |
name = "voicecal-ai"
|
| 3 |
-
version = "1.2.
|
| 4 |
description = "A friendly interactive AI speechbot for booking Google Calendar appointments"
|
| 5 |
authors = ["Peter <pgits.job@gmail.com>"]
|
| 6 |
|
|
|
|
| 1 |
[tool.poetry]
|
| 2 |
name = "voicecal-ai"
|
| 3 |
+
version = "1.2.10"
|
| 4 |
description = "A friendly interactive AI speechbot for booking Google Calendar appointments"
|
| 5 |
authors = ["Peter <pgits.job@gmail.com>"]
|
| 6 |
|
version.txt
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
1.2.
|
|
|
|
| 1 |
+
1.2.10
|