]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: do not print the secret of osd keyring 46698/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 16 Jun 2022 07:22:18 +0000 (09:22 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 16 Jun 2022 20:59:47 +0000 (22:59 +0200)
commit4b9cc6b303588e0c44443debe4f04c6160adf5a2
tree0c689f3adeeed4781f176b69ab1d8d53f7ffc8be
parent0d97a93faae431f1197d72ee3c4347387f6b1c73
ceph-volume: do not print the secret of osd keyring

during osd preparation, ceph-volume logs the secret of the osd keyring to file
```
[2022-06-15 12:31:17,466][ceph_volume.process][INFO  ] Running command: /usr/bin/ceph-authtool /var/lib/ceph/osd/ceph-0/keyring --create-keyring --name osd.0 --add-key AQAM0aliR5JvDRAAQBu0stWl9ZhZrcjijg2BIQ==
[2022-06-15 12:31:17,481][ceph_volume.process][INFO  ] stdout creating /var/lib/ceph/osd/ceph-0/keyring
added entity osd.0 auth(key=AQAM0aliR5JvDRAAQBu0stWl9ZhZrcjijg2BIQ==)
```

This shouldn't be logged nor printed on terminal.

Fixes: https://tracker.ceph.com/issues/56071
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
src/ceph-volume/ceph_volume/util/prepare.py