borg/docs/usage/general
Thomas Waldmann 73d99578a8
prepare_subprocess_env: remove all passphrase-related env vars, #6480
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.
2026-10-29 11:56:04 +01:00
..
date-time.rst.inc [DOCS] #4587 – Make Sphinx warnings break docs build 2020-03-16 19:22:59 +01:00
environment.rst.inc prepare_subprocess_env: remove all passphrase-related env vars, #6480 2026-10-29 11:56:04 +01:00
file-metadata.rst.inc docs: OS X -> macOS 2023-10-27 20:31:26 +02:00
file-systems.rst.inc docs: remove info about borg 1.0 files per dir 2023-10-27 20:26:27 +02:00
logging.rst.inc [DOCS] #4587 – Make Sphinx warnings break docs build 2020-03-16 19:22:59 +01:00
positional-arguments.rst.inc Use HTTPS everywhere (mechanical edit using util from https-everywhere) 2020-12-22 16:36:40 +01:00
repository-locations.rst.inc [DOCS] #4587 – Make Sphinx warnings break docs build 2020-03-16 19:22:59 +01:00
repository-urls.rst.inc Update repository URLs in docs to use new syntax 2024-09-10 18:08:18 -05:00
resources.rst.inc [DOCS] #4587 – Make Sphinx warnings break docs build 2020-03-16 19:22:59 +01:00
return-codes.rst.inc Refactor return code docs 2026-07-24 12:22:22 +02:00
units.rst.inc [DOCS] #4587 – Make Sphinx warnings break docs build 2020-03-16 19:22:59 +01:00