You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[RELIABILITY] Default in-memory storage loses the queue, audit logs and org credentials on restart #196
storage/factory.py defaults to STORAGE_PROVIDER=memory, and local also maps to MemoryStorage. On every restart or redeploy, a server started without storage settings silently loses:
the incident queue (pending incidents are never processed),
Nothing warns about it. The README presents local as a storage option, but it isn't persistent.
Proposed fix
Add a real LocalStorage backend (STORAGE_PROVIDER=local, STORAGE_PATH=./data) using atomic write-then-rename, 0600 file permissions and the same key layout.
At startup, log a warning when the provider is memory. Refuse to start with memory when ENVIRONMENT=production, unless ALLOW_EPHEMERAL_STORAGE=true.
Make the Docker and Helm examples mount a volume for local.
Tests: a round trip through LocalStorage; data survives re-instantiation; the production guard works.
Files
storage/factory.py, new storage/local_storage.py, api/server.py (startup), docker-compose.yml, k8s/, README.md
Activity