public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH backup v4 0/4] fix #7054: client: remove trailing newlines from credentials
@ 2026-07-06  8:02 Maximiliano Sandoval
  2026-07-06  8:02 ` [PATCH backup v4 1/4] " Maximiliano Sandoval
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Maximiliano Sandoval @ 2026-07-06  8:02 UTC (permalink / raw)
  To: pbs-devel

See the first commit for more details.

This was tested with proxmox-backup-client making a login/backup using different
credentials with and without newlines. The commands were similar to the
systemd-run commands at the Backup Client Usage docs.

I did not find a way to create the keyfile with newlines in its password using
proxmox-backup-client since it reads from the tty stdin, but surely it could be
created manually. Perhaps it is safe-ish to also remove trailing control
characters from the encryption password but this seems a safer approach for now.

Differences from v3:
 - Move trim_end calls to get_password, get_repository, get_fingerprint
 - Remove "in general" from the documentation
 - Rename get_secret_impl to get_secret_string

Diferences from v2:
 - Reworded commit messages following feedback form v1.

Diferences from v1:
 - Always do an extra allocation to keep the code clean
 - Rename password to blob
 - Only strip newlines on passwords

Maximiliano Sandoval (4):
  fix #7054: client: remove trailing newlines from credentials
  docs: client: document further password constrains
  client: rename password to blob
  client: Rename get_secret_impl method

 docs/backup-client.rst      |  7 ++++---
 pbs-client/src/tools/mod.rs | 17 ++++++++++-------
 2 files changed, 14 insertions(+), 10 deletions(-)

-- 
2.47.3





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-07-06  8:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-06  8:02 [PATCH backup v4 0/4] fix #7054: client: remove trailing newlines from credentials Maximiliano Sandoval
2026-07-06  8:02 ` [PATCH backup v4 1/4] " Maximiliano Sandoval
2026-07-06  8:02 ` [PATCH backup v4 2/4] docs: client: document further password constrains Maximiliano Sandoval
2026-07-06  8:02 ` [PATCH backup v4 3/4] client: rename password to blob Maximiliano Sandoval
2026-07-06  8:02 ` [PATCH backup v4 4/4] client: Rename get_secret_impl method Maximiliano Sandoval

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal