Skip to content

[RELIABILITY] Default in-memory storage loses the queue, audit logs and org credentials on restart #196

Backlog

Description

@OkiriGabriel

Problem

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:

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

  1. added
    bug
    enhancement
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions