mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-07-10 01:39:12 +00:00
Session directories were created with 0755 (rwxr-xr-x) and session files with 0644 (rw-r--r--), making them readable by any local user on shared systems such as multi-user servers and CI runners. Session JSONL files contain full LLM request and response data, including the complete source code diff, file contents read by the file_read tool, and the model's analysis — all sensitive material. Change MkdirAll mode from 0755 to 0700 and OpenFile mode from 0644 to 0600, restricting access to the file owner only. This matches the 0600 permission already used for the config file (which holds the API key) in cmd/opencodereview/provider_cmd.go. Fixes #144 |
||
|---|---|---|
| .. | ||
| history.go | ||
| persist.go | ||
| persist_test.go | ||