We do not want the key to show up on the command line (it may appear in
the process list or sudo log file).
Fixes: http://tracker.ceph.com/issues/22283
Signed-off-by: Sage Weil <sage@redhat.com>
]
if keyring is not None:
- base_command.extend(['--key', keyring])
+ base_command.extend(['--keyfile', '-'])
if wal:
base_command.extend(
command = base_command + supplementary_command
- process.run(command, obfuscate='--key')
+ process.call(command, stdin=keyring)
def osd_mkfs_filestore(osd_id, fsid):