Commit 69fb5f2
fix: enforce file permissions on credential overwrite
`Filesystem.write()` passes `mode` to `writeFile()`, but Node.js only
applies the mode on file creation — not when overwriting an existing file.
Add explicit `chmod()` after write to ensure `0o600` permissions are
always enforced on `~/.altimate/altimate.json`, even on subsequent logins.
Addresses Sentry review finding on PR #162.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent d75957c commit 69fb5f2
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
| |||
0 commit comments