Skip to content

fix(security): tighten mem0 runtime defaults#73

Merged
JSONbored merged 1 commit into
mainfrom
codex/security-hardening-2026-05-09
May 10, 2026
Merged

fix(security): tighten mem0 runtime defaults#73
JSONbored merged 1 commit into
mainfrom
codex/security-hardening-2026-05-09

Conversation

@JSONbored
Copy link
Copy Markdown
Owner

Summary

  • Harden mem0-aio runtime, template, Dockerfile, and submodule defaults against the reported exposure and supply-chain findings.

What changed

  • Restore OpenMemory submodule origin to https://github.com/mem0ai/mem0.
  • Treat LLM_PROVIDER=auto and EMBEDDER_PROVIDER=auto as unset before persisting runtime env.
  • Default Elasticsearch/OpenSearch TLS certificate verification to true.
  • Restore HTTPS apt source enforcement before the first apt-get update and seed apt with a verified CA store.
  • Default the API/MCP service to 127.0.0.1, stop publishing host port 8765 by default, and document the explicit opt-in path.
  • Update Docker integration tests that intentionally map the direct API port to set MEM0_API_HOST=0.0.0.0.

Why

  • These changes close the default API/MCP exposure, insecure TLS backend defaults, provider sentinel persistence, HTTP apt transport regression, and OpenMemory fork provenance risk.

Validation

  • /Users/shadowbook/.codex/worktrees/security-2026-05-09/aio-fleet/.venv/bin/python -m pytest -q tests/template -> 11 passed
  • docker build --progress=plain --platform linux/amd64 -t mem0-aio:pytest . -> passed
  • /Users/shadowbook/.codex/worktrees/security-2026-05-09/aio-fleet/.venv/bin/python -m pytest -q -> 22 passed
  • aio-fleet validate-repo --repo mem0-aio against this worktree -> passed

Notes

  • Catalog sync is handled separately in awesome-unraid after this source XML change.

@JSONbored JSONbored merged commit 5930331 into main May 10, 2026
3 checks passed
@JSONbored JSONbored deleted the codex/security-hardening-2026-05-09 branch May 10, 2026 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant