Commit 11a2de2
security(cli): fix config file permissions and login alias api_key dest
1. Config file now written with 0600 permissions (owner read/write only)
instead of default 0644. Prevents other users on shared systems from
reading stored API keys from ~/.config/roboflow/config.json.
2. Login alias --api-key flag now uses dest="login_api_key" to match
what _login() handler reads, fixing a dead code path where the
alias's --api-key value was silently ignored.
278 tests pass, all linting clean.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent a06a059 commit 11a2de2
2 files changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
84 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
85 | 88 | | |
86 | 89 | | |
87 | 90 | | |
| |||
0 commit comments