[Gluster-users] Export a gluster volume read-only to some clients but not all

Tom van Leeuwen tom.van.leeuwen at saasplaza.com
Fri Oct 3 04:49:03 UTC 2014


I already have a hosts.allow in place, but have a requirement to export 
the volume read-only on servers side for some clients.
The data must not be tampered with, so I must restrict it server side as 
I am not in control of the client.

On 03-10-14 06:39, James wrote:
> On 3 October 2014 00:30, Tom van Leeuwen <tom.van.leeuwen at saasplaza.com> wrote:
>> I'm running gluster 3.4.2 and have the requirement to export a glusterfs
>> volume read-only to some hosts, but definitely not all.
>> Is there any way to achieve this without having to introduce a frontend nfs
>> server?
>
> You should only allow hosts access to your GlusterFS servers that you
> trust. Firewall off the rest, and use auth.allow and auth.reject for
> the others.
>
> This is needed because GlusterFS doesn't have built in authentication.
> So the answer is that you must mount the volume readonly with standard
> mount 'ro' vs. 'rw' options.
>
> If there is a better solution than this, I don't know it, and maybe
> someone will let me know.
>
> Cheers,
> James

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20141003/8cbaa0e1/attachment.html>


More information about the Gluster-users mailing list