mirror of
https://github.com/kevinveenbirkenbach/docker-volume-backup.git
synced 2026-11-06 02:57:59 +00:00
feat(seed): read the database password from stdin with --password-stdin
baudolo-seed took the database password only as a positional argument, so it showed in the process list of the host that seeds the backup catalog (infinito-nexus/core #1213). --password-stdin reads it from stdin without the trailing newline. The positional argument still works for existing callers but warns on stderr that it is visible in the process list; giving the password both ways, or neither, is rejected with a usage error and writes nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4214d3709a
commit
5817078643
3 files changed
+106
-2
No files matched your search
@@ -164,6 +164,7 @@ class TestSeedMain(unittest.TestCase):
|
||||
ns.database = "db"
|
||||
ns.username = "user"
|
||||
ns.password = "pass"
|
||||
ns.password_stdin = False
|
||||
parse_args.return_value = ns
|
||||
|
||||
seed_main.main()
|
||||
@@ -195,6 +196,7 @@ class TestSeedMain(unittest.TestCase):
|
||||
ns.database = "db"
|
||||
ns.username = "user"
|
||||
ns.password = "pass"
|
||||
ns.password_stdin = False
|
||||
parse_args.return_value = ns
|
||||
|
||||
seed_main.main()
|
||||
|
||||
Reference in new issue
Block a user