docs(docker): warn that mounting host ~/.claude leaks a billable token; note scoped-credential direction#107
Conversation
…n; note scoped-credential direction Surfaces the credential-leak risk of bind-mounting a human operator's ~/.claude into the agent container (the agent runs as and bills that person; the token can't be scoped or rotated per consumer) and documents the target: authenticate unattended deployments through a central Claude proxy with a scoped, rotatable per-consumer credential. The bind-mount is now framed as a local-only stopgap. Removing the mount outright awaits the proxy auth path being wired up. Refs #100
|
Important Review skippedNo new commits to review since the last review. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthrough
ChangesDocker Credentials Security Documentation
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related issues
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
Summary
Addresses the documentation/safety half of #100.
docs/docker.mdcurrently presents bind-mounting a human operator's~/.claudeas the standard auth method, with no warning that this shares a billable OAuth bearer token into the container (the agent runs as — and bills — that person, and the token can't be scoped or rotated per consumer).Changes
docs/docker.md— adds a prominent warning at the Quick Start and the Claude Credentials section, and a new Authentication direction subsection documenting the target: authenticate unattended/multi-consumer deployments through a central Claude proxy with a scoped, rotatable per-consumer credential — never a human's subscription token. The bind-mount is reframed as a local-only stopgap.Note
Removing the bind-mount outright (and wiring the scoped-credential auth) requires the proxy auth path to exist, so this PR covers the docs/safety portion only.
Refs #100
Summary by CodeRabbit