]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/smb: add a new hosts_access field to the Share resource
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 22 Sep 2025 18:44:30 +0000 (14:44 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 29 Jan 2026 17:07:04 +0000 (12:07 -0500)
commit7e5fea1b25d27069cdb73ef655ab9e46ffeb10f3
tree279a6cd2c6002db5abd5bacbe9fe588874905b58
parent1546d4463c6d22026e6c3e61bd585286ce802996
mgr/smb: add a new hosts_access field to the Share resource

This access list can be used to allow or deny access to hosts by
IP address or network (IP/prefixlen-style). It partially borrows
from the previous work to do ip address binds.
The structure would look something like the following:
```
  hosts_access:
    - address: 192.168.7.200
      access: allow
    - address: 192.168.7.202
      access: allow
    - network: 10.10.220.0/24
      access: allow
```
or
```
  hosts_access:
    - access: deny
      network: 10.10.220.0/24
``

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