diff --git a/pkg/operator/ceph/csi/secrets.go b/pkg/operator/ceph/csi/secrets.go index 8cbe2646f..86739101f 100644 --- a/pkg/operator/ceph/csi/secrets.go +++ b/pkg/operator/ceph/csi/secrets.go @@ -98,7 +98,7 @@ func cephCSIKeyringCephFSNodeCaps() []string { return []string{ "mon", "allow r", "mgr", "allow rw", - "osd", "allow rw tag cephfs *=*", + "osd", "allow rwx tag cephfs metadata=*, allow rw tag cephfs data=*", "mds", "allow rw", } } diff --git a/pkg/operator/ceph/csi/secrets_test.go b/pkg/operator/ceph/csi/secrets_test.go index d76b9db2a..7b3d2116a 100644 --- a/pkg/operator/ceph/csi/secrets_test.go +++ b/pkg/operator/ceph/csi/secrets_test.go @@ -34,7 +34,7 @@ func TestCephCSIKeyringRBDProvisionerCaps(t *testing.T) { func TestCephCSIKeyringCephFSNodeCaps(t *testing.T) { caps := cephCSIKeyringCephFSNodeCaps() - assert.Equal(t, caps, []string{"mon", "allow r", "mgr", "allow rw", "osd", "allow rw tag cephfs *=*", "mds", "allow rw"}) + assert.Equal(t, caps, []string{"mon", "allow r", "mgr", "allow rw", "osd", "allow rwx tag cephfs metadata=*, allow rw tag cephfs data=*", "mds", "allow rw"}) } func TestCephCSIKeyringCephFSProvisionerCaps(t *testing.T) {