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
When CLAUDE_MEM_WORKER_HOST is set to 0.0.0.0, the web viewer becomes accessible to anyone on the network without any authentication. This exposes sensitive data including:
Session observations and learnings
User prompts
Project structure information
Timeline of all coding activities
Proposed Solution
Add optional authentication when the viewer is exposed beyond localhost:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
When
CLAUDE_MEM_WORKER_HOSTis set to0.0.0.0, the web viewer becomes accessible to anyone on the network without any authentication. This exposes sensitive data including:Proposed Solution
Add optional authentication when the viewer is exposed beyond localhost:
Option 1: Token-based Auth (Recommended)
{ "CLAUDE_MEM_WORKER_HOST": "0.0.0.0", "CLAUDE_MEM_AUTH_ENABLED": "true", "CLAUDE_MEM_AUTH_TOKEN": "auto" // or user-defined token }autogenerates a random token on first start, stored in settings?token=xxx) or header (Authorization: Bearer xxx)Option 2: Basic Auth
{ "CLAUDE_MEM_AUTH_USERNAME": "claude", "CLAUDE_MEM_AUTH_PASSWORD": "secret" }Implementation Details
Middleware in worker-service.ts:
CLAUDE_MEM_WORKER_HOST !== '127.0.0.1'AND auth is enabled/healthAuto-enable suggestion:
WORKER_HOSTto0.0.0.0, show warning in logsWeb Viewer UI:
Use Cases
Security Considerations
Alternatives Considered
🤖 Generated with Claude Code
Beta Was this translation helpful? Give feedback.
All reactions