oliver-zehentleitner / maity

cli: release output cleaned; git never reads a committed bare repo's config; bounded hub reads

Sign in to report

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:

  1. `release list`/`show` (cli.py _release_summary): inline every field and quote the checklist text, like the other hub text in tsk-2tf7921xpmr8.
  2. git in a committed bare-repo directory (proc.py): pin GIT_DIR/--git-dir and safe.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.sshCommand and the like).
  3. The CLI's own reads from the hub (hub.py): a total deadline and a byte cap on the response body, as the hub's outbound._body does.
  4. Tests for each, and a changelog entry under Security.