spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

Fix devcontainer volume security vulnerabilityBrowse files
Use ${devcontainerId} variable to create project-specific volumes,
preventing cross-container data access. This addresses the security
issue where multiple containers could share sensitive data through
named volumes.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
David Dworken authored on Jul 10, 2025 parent ff15c6f · commit 33e37bd828fb
1 changed file+2 -2compared with ff15c6f
M.devcontainer/devcontainer.json
@@ -38,8 +38,8 @@
3838 },
3939 "remoteUser": "node",
4040 "mounts": [
41- "source=claude-code-bashhistory,target=/commandhistory,type=volume",
42- "source=claude-code-config,target=/home/node/.claude,type=volume"
41+ "source=claude-code-bashhistory-${devcontainerId},target=/commandhistory,type=volume",
42+ "source=claude-code-config-${devcontainerId},target=/home/node/.claude,type=volume"
4343 ],
4444 "remoteEnv": {
4545 "NODE_OPTIONS": "--max-old-space-size=4096",