]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/smb: add password filter support to ceph smb apply command
authorJohn Mulligan <jmulligan@redhat.com>
Wed, 12 Mar 2025 21:34:27 +0000 (17:34 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 1 Apr 2025 12:02:39 +0000 (08:02 -0400)
commitfd00ab78a772993c00ce4b38bb7580c662325566
treef5333c26dd10e7b3f4aba0f01f03441c37949d1e
parent32c2441cabf928094877d97a2af4e99052784657
mgr/smb: add password filter support to ceph smb apply command

The apply command both takes passwords in the input and can display them
in the results. Add two options --password-filter and
--password-filter-out that control how these passwords are filtered. If
--password-filter is given but --password-filter-out is not, the output
value is assumed to be the same as the input. So for example you could
run `ceph smb apply -i /file --password-filter=base64` which would
assume the password values in the input are base64 encoded and then
the results would include the same values.
`ceph smb apply -i /file --password-filter-out=hidden` would take
a file with unobscured passwords but emit results with passwords
hidden.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/pybind/mgr/smb/module.py