mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-17 03:39:33 +01:00
feat(files): let the File Viewer edit workspace dotenv files
The plain preview already serves a workspace dotenv file in full to the same user, so refusing the edit protected nothing. The edit gate now passes allowDotenv to the sensitive-path check, which skips only the two dotenv patterns; every other credential pattern, a dotenv file inside a blocked tree and Codeman's own data-dir login file stay blocked. Downloads and attachments are unchanged.
This commit is contained in:
1 parent
f62c1f7e2f
commit
8b15c96c0f
13 files changed
+417
-34
No files matched your search
@@ -69,6 +69,10 @@ convenient:
|
||||
- **`.git/` is denied outright.** Hooks are executable code, and a corrupted index looks
|
||||
unrecoverable to someone who wanted to fix a typo.
|
||||
- **Non-UTF-8 content is refused**, verified by a round-trip comparison.
|
||||
- **Dotenv files are editable, other credential files are not.** `.env`, `.env.local` and
|
||||
`prod.env` open in the editor like any config file, and a save keeps the file's permissions
|
||||
(a `0600` file stays `0600`). `.npmrc`, `credentials.json`, anything under `.ssh/` and
|
||||
Codeman's own `~/.codeman/.env` stay read-only here.
|
||||
|
||||
## Attachments
|
||||
|
||||
|
||||
Reference in new issue
Block a user