]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: make nvme-of auth keyring more restricted
authorAdam King <adking@redhat.com>
Fri, 28 Jul 2023 20:59:42 +0000 (16:59 -0400)
committerAdam King <adking@redhat.com>
Thu, 31 Aug 2023 17:36:14 +0000 (13:36 -0400)
commit2fd7bbd528d110d2dfebcb33122c21900f72eaef
treee2e92c4fd7bbd98ff6f3f0ee47a2c09496792859
parent1d3a19f94b0324e28941c4463facfc3132ecb5c2
mgr/cephadm: make nvme-of auth keyring more restricted

Rather than giving full admin privileges,
try to be a bit more strict by limiting it
to profile rbd mon caps and full OSD
privileges for rbd tagged pools. I also wanted
to include an OSD cap like

allow all pool="*" object_prefix "nvmeof.state"

but this caused a failure in the nvme-of daemon

RADOS permission error (Failed to operate write op for oid nvmeof.None.state)

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 6aa14a228d47cfccbc2c11a9abdd3e513570af25)
src/pybind/mgr/cephadm/services/nvmeof.py