]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/smb: remove embedded join source and users and groups types
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 30 Apr 2024 15:32:12 +0000 (11:32 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 2 May 2024 21:06:34 +0000 (17:06 -0400)
commitc6b03778ffa2f7ca92c4a198be5da59a15da5d28
treeecf4e41b61b34467012d3e8fd01fea0fb568e753
parent00f2f716601637264f43bf758e159ca52ca43082
mgr/smb: remove embedded join source and users and groups types

Drop the embedded versions of the join source and usrers and groups
configs from the cluster resource type. This means that potentially
sensitive information is *always* stored in a separate resource
from the less-sensitive general cluster config. Future changes can
then make security related choices about those specific resources
without worrying about having embedded variants inside the cluster.

For convenience I added a new "emtpy" users and groups source type that
can be used for testing. It defines *no* users and groups (an empty set
basically). This wouldn't be useful in a production scenario today as it
would deploy an smbd that you couldn't log into. But for unit testing
it's extremely handy, and maybe it can be used for integration testing
too.

This is a large change because lots of unit tests relied on embedded
join auths or users-and-groups. I tried to handle all the breaking
changes in one go for bisect-ability.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/pybind/mgr/smb/enums.py
src/pybind/mgr/smb/handler.py
src/pybind/mgr/smb/resources.py
src/pybind/mgr/smb/tests/test_enums.py
src/pybind/mgr/smb/tests/test_handler.py
src/pybind/mgr/smb/tests/test_resources.py
src/pybind/mgr/smb/tests/test_smb.py