oliver-zehentleitner / maity
cli: release output cleaned; git never reads a committed bare repo's config; bounded hub reads
tsk-km8q7rznrtrr Open
Hardening of the CLI from the security rounds (tsk-v9kheekgq115). Do it after tsk-2tf7921xpmr8 and tsk-bg81webs911m, which touch the same files.
To do:
- `release list`/`show` (
cli.py_release_summary):inlineevery field andquotethe checklist text, like the other hub text in tsk-2tf7921xpmr8. - git in a committed bare-repo directory (
proc.py): pinGIT_DIR/--git-dirandsafe.bareRepository=explicit(or the equivalent) for every git call the CLI makes, so a directory laid out as a bare repo inside a work tree can't supply its own config (core.sshCommandand the like). - The CLI's own reads from the hub (
hub.py): a total deadline and a byte cap on the response body, as the hub'soutbound._bodydoes. - Tests for each, and a changelog entry under Security.