Fix #20305
openceph osd new -i should read from stdin
0%
Description
Most ceph osd new users presumably want to pipe the secrets instead of writing them to a file. While this can easily be done with -i /dev/fd/0 there are arguments claiming this is unhortodox and should not be used.
Updated by Willem Jan Withagen almost 7 years ago
Loic Dachary wrote:
Most ceph osd new users presumably want to pipe the secrets instead of writing them to a file. While this can easily be done with -i /dev/fd/0 there are arguments claiming this is unhortodox and should not be used.
'mmm,
I would definitely call that a kludge...
Quite a few security tools actually do read from stdin.
Getting it out of a file is than rather easy with a pipe.
Things get complicated if you need several security parts that stem from different sources.
Than you need to start combining stuff one way or another.