chore(harness): 프로젝트 settings.json — git/docker/pytest allowlist + 민감파일 deny
체크인되는 프로젝트 권한 설정. read-only 명령(status/diff/logs/ps 등)을 사전 승인하여 권한 프롬프트 감소. .env / *.pem / *.key / lotto.db / stock.db deny로 비밀·DB 직접 읽기 차단. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
41
.claude/settings.json
Normal file
41
.claude/settings.json
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
{
|
||||||
|
"permissions": {
|
||||||
|
"allow": [
|
||||||
|
"Bash(git status:*)",
|
||||||
|
"Bash(git diff:*)",
|
||||||
|
"Bash(git log:*)",
|
||||||
|
"Bash(git show:*)",
|
||||||
|
"Bash(git branch:*)",
|
||||||
|
"Bash(git stash list:*)",
|
||||||
|
"Bash(git remote -v)",
|
||||||
|
"Bash(docker ps:*)",
|
||||||
|
"Bash(docker logs:*)",
|
||||||
|
"Bash(docker compose ps:*)",
|
||||||
|
"Bash(docker compose logs:*)",
|
||||||
|
"Bash(docker compose config:*)",
|
||||||
|
"Bash(docker images:*)",
|
||||||
|
"Bash(pytest:*)",
|
||||||
|
"Bash(python -m pytest:*)",
|
||||||
|
"Bash(python -V)",
|
||||||
|
"Bash(python -c:*)",
|
||||||
|
"Bash(pip list:*)",
|
||||||
|
"Bash(pip show:*)",
|
||||||
|
"Bash(pip freeze:*)",
|
||||||
|
"Bash(uvicorn --version)",
|
||||||
|
"Bash(ls:*)",
|
||||||
|
"Bash(cat docker-compose.yml)"
|
||||||
|
],
|
||||||
|
"deny": [
|
||||||
|
"Read(.env)",
|
||||||
|
"Read(.env.*)",
|
||||||
|
"Read(**/.env)",
|
||||||
|
"Read(**/.env.*)",
|
||||||
|
"Read(**/credentials*)",
|
||||||
|
"Read(**/secrets*)",
|
||||||
|
"Read(**/*.pem)",
|
||||||
|
"Read(**/*.key)",
|
||||||
|
"Read(**/lotto.db)",
|
||||||
|
"Read(**/stock.db)"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user