-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
Current State
- Services may not handle shutdown signals gracefully
- In-flight requests may be dropped
- No cleanup on shutdown
Issues
- Data loss on shutdown
- Incomplete operations
- Resource leaks (connections, file handles)
- Abrupt termination causes errors
Required
- Implement graceful shutdown handlers (SIGTERM, SIGINT)
- Wait for in-flight requests to complete (with timeout)
- Clean up resources:
- Close database connections
- Close HTTP connections
- Flush logs
- Release TPM resources
- Add shutdown timeout (e.g., 30 seconds)
- Document shutdown behavior
- Add shutdown metrics
Location
- All Python services
- SPIRE Agent/Server
- Keylime components
Related
From PRODUCTION_READINESS_ANALYSIS.md - Section 6.3