feat(sandbox): add project-level credential deny entries#260
Conversation
Create .claude/settings.json with sandbox.credentials.envVars deny entries for 16 credential env vars across GCP, Anthropic/Vertex AI, GitHub, and AWS categories. When contributors enable the sandbox, these vars are stripped from Bash subprocesses while Claude Code retains access for API authentication. JIRA_API_TOKEN intentionally omitted (requires mask mode, which is only available in user/managed settings). Implements TC-5365 Assisted-by: Claude Code
Reviewer's guide (collapsed on small PRs)Reviewer's Guide.claude/settings.json is introduced to configure sandbox credential denials for a set of sensitive environment variables so that when the sandbox is enabled, these variables are stripped from Bash subprocesses while preserving Claude Code API access, extending CI-level protections to local development. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
mrizzi
left a comment
There was a problem hiding this comment.
I think some instructions on how to use this would help a lot.
|
[sdlc-workflow/verify-pr] Re: @mrizzi review — Classified as code change request (upgraded from suggestion) — this matches project convention: CONVENTIONS.md §Documentation (lines 100-103) states README.md should be updated when installation steps change; adding |
Verification Report for TC-5365 (commit af090e0)
Overall: WARNReview feedback identified missing README.md documentation for the sandbox credential isolation feature. Sub-task TC-5369 created to add usage instructions. Root-cause analysis traced the gap to plan-feature (missing heuristic for config-directory documentation triggers) and implement-task (directory-scoped README search too narrow). This comment was AI-generated by sdlc-workflow/verify-pr v0.13.5. |
Add a Sandbox Credential Isolation section to README.md explaining the .claude/settings.json deny entries, how to enable the sandbox with /sandbox, verification steps, and JIRA_API_TOKEN mask mode guidance for user-level settings. Implements TC-5369 Assisted-by: Claude Code
Verification Report for TC-5365 (commit 2faa32e)
Overall: PASSAll checks pass. The Scope Containment WARN is justified — This comment was AI-generated by sdlc-workflow/verify-pr v0.13.5. |
Summary
.claude/settings.jsonwithsandbox.credentials.envVarsdeny entries for 16 credential env vars (GCP, Anthropic/Vertex AI, GitHub, AWS)/sandbox, these vars are stripped from Bash subprocesses while Claude Code retains API accesseval-pr-run.ymlby extending protection to local developmentImplements TC-5365
Test plan
python3 -m json.tool .claude/settings.json)denymodeJIRA_API_TOKENabsent (requiresmaskmode, user-level only)sandbox.enablednot set (opt-in via/sandbox)Summary by Sourcery
Introduce a Claude sandbox settings file that enforces project-level denial of selected credential environment variables during sandboxed execution, extending credential protection to local development.
New Features:
Enhancements: