mirror of
https://github.com/borgbackup/borg.git
synced 2026-11-29 08:21:25 +01:00
Only BORG_PASSPHRASE was removed from the environment given to subprocesses (the command given in BORG_PASSCOMMAND, --paths-from-command / --content-from-command commands, tar filter commands, borg with-lock commands, fusermount/umount, fakeroot detection, ssh). Now also remove: - BORG_NEW_PASSPHRASE: secret, like BORG_PASSPHRASE. - BORG_PASSCOMMAND: often embeds secrets or paths to them. - BORG_PASSPHRASE_FD: the file descriptor is not inherited by the subprocess (Popen closes it), so the number would be dangling and misleading there. The other borg env vars (BORG_REPO, BORG_KEY_FILE, ...) are not secrets and with-lock scripts may rely on them, so they are kept. Also document this in the BORG_PASSPHRASE help text and add tests. Backport of #10341. |
||
|---|---|---|
| .. | ||
| date-time.rst.inc | ||
| environment.rst.inc | ||
| file-metadata.rst.inc | ||
| file-systems.rst.inc | ||
| logging.rst.inc | ||
| positional-arguments.rst.inc | ||
| repository-locations.rst.inc | ||
| repository-urls.rst.inc | ||
| resources.rst.inc | ||
| return-codes.rst.inc | ||
| units.rst.inc | ||