]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: do not print the secret of osd keyring 46729/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 16 Jun 2022 07:22:18 +0000 (09:22 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 23 Jun 2022 07:01:47 +0000 (09:01 +0200)
commit1f4d6510350db86fd77b9b205f876c01b9a0759a
tree6c2732bca5dbfe50827f7d315eb875f98801b81e
parente3d626cd53d917a0e977e3c60509bb995f21e737
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>
(cherry picked from commit 4b9cc6b303588e0c44443debe4f04c6160adf5a2)
src/ceph-volume/ceph_volume/util/prepare.py