]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/mgr: document the new smb share option hosts_access
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 6 Jan 2026 15:44:07 +0000 (10:44 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 29 Jan 2026 17:07:04 +0000 (12:07 -0500)
Add documentation for the new `hosts_access` option on the smb
share resource.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
doc/mgr/smb.rst

index fa88c11036de587cdd0bf15d64a502dda7f3a88a..526a6ac42c47c4b3cdadf72ee0fdd023ba7e64f6 100644 (file)
@@ -804,6 +804,23 @@ login_control
         or ``admin``. Specific access level to grant to the user or group when
         logging into this share. The ``none`` value denies access to the share
         regardless of the ``restrict_access`` value.
+hosts_access
+    Optional list of objects. Items in the ``hosts_access`` list are used to
+    restrict the share to use by specific client addresses. If any ``allow``
+    entries are found all other hosts will be denied. Fields:
+
+    access
+        Required string. One of ``allow`` or ``deny``.
+    address
+        Optional string. Required if ``network`` field is not supplied. The
+        string value must be either an IPv4 address or an IPv6 address. The
+        specific host will be allowed or denied access to the share.
+    network
+        Optional string. Required if ``address`` field is not supplied. The
+        string value must be either an IPv4 network or an IPv6 network (for
+        example ``192.0.2.0/24``). If the client's IP address is found within
+        the specified network that host will be allowed or denied access to the
+        share.
 custom_smb_share_options
     Optional mapping. Specify key-value pairs that will be directly added to
     the ``smb.conf`` (or equivalent) of a Samba server.  Do *not* use this