<div dir="ltr"><div>I didn&#39;t understand how the brick process point is relevant here ? Can you elaborate pls ?<br></div>If we are failing the GETSPEC itself there shouldn&#39;t be any question of client connecting to the brick process, no ?<br><br>I don&#39;t have much insights into the code but I am just thinking logically and saying the above<br><br>thanx,<br>deepak<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 21, 2015 at 2:03 PM, Niels de Vos <span dir="ltr">&lt;<a href="mailto:ndevos@redhat.com" target="_blank">ndevos@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, Jan 21, 2015 at 11:19:14AM +0530, Deepak Shetty wrote:<br>
&gt; Good point and I agree to the below.<br>
&gt; So all we need here is a way to differentiate trusted Vs non-trusted<br>
&gt; clients and fail GETSPEC if it comes from non-trusted client provided the<br>
&gt; disable glusterfs protocol option has been set ?<br>
<br>
</span>Not only that.<br>
<br>
I would expect that the brick processes only allow access when the<br>
trusted-*.vol file is used to connect. That .vol file (obtained through<br>
GlusterD) contains a user/passwd (both UUIDs). If the connecting client<br>
does not pass the user/passwd to the brick process on connect,<br>
connections should be denied.<br>
<br>
I must admit that I have never looked at how/when the client passes<br>
these credentials to the bricks.<br>
<br>
Niels<br>
<div><div class="h5"><br>
&gt;<br>
&gt; On Wed, Jan 21, 2015 at 8:42 AM, Vijay Bellur &lt;<a href="mailto:vbellur@redhat.com">vbellur@redhat.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; On 01/19/2015 06:22 PM, Deepak Shetty wrote:<br>
&gt; &gt;<br>
&gt; &gt;&gt; Hi All,<br>
&gt; &gt;&gt;    I had opened this feature request sometime back<br>
&gt; &gt;&gt; <a href="http://www.gluster.org/community/documentation/index" target="_blank">http://www.gluster.org/community/documentation/index</a>.<br>
&gt; &gt;&gt; php/Features/turn-off-glusterfs-proto-access<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I wanted to know what would be the right way to implement this ?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; The goal here is to have a volume set option to turn off glusterfs/fuse<br>
&gt; &gt;&gt; protocol access<br>
&gt; &gt;&gt; just like how we have it today for NFS ( volume set nfs.export-volumes<br>
&gt; &gt;&gt; off)<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; 1) Does GETSPEC allow passing the protocol being requested at mount, so<br>
&gt; &gt;&gt; that glusterd can return success/failure and mount.gluster can error<br>
&gt; &gt;&gt; accoridngly ?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; 2) Another way is to introduce another handshake after GETSPEC is<br>
&gt; &gt;&gt; successfull, where client can request permission to mount using the said<br>
&gt; &gt;&gt; protocol and glusterd returns success/failure based on the volume set<br>
&gt; &gt;&gt; option being set or unset ?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Thoughts ?<br>
&gt; &gt;&gt;<br>
&gt; &gt;<br>
&gt; &gt; I think unconditionally disabling glusterfs protocol for trusted clients<br>
&gt; &gt; (clients local to the storage pool) also would not be ideal. An<br>
&gt; &gt; administrator might still want to access volumes through a trusted<br>
&gt; &gt; glusterfs client for maintenance, repair activities. Geo-replication, quota<br>
&gt; &gt; etc. do rely on the ability to access volumes from the trusted storage pool<br>
&gt; &gt; through the native glusterfs protocol for proper functioning.<br>
&gt; &gt;<br>
&gt; &gt; Given this, we could implement this feature by serving volfiles to only<br>
&gt; &gt; trusted clients in glusterd and fail requests from everywhere else if an<br>
&gt; &gt; option to disable glusterfs protocol has been set. This way all services<br>
&gt; &gt; accessing volumes locally from the trusted storage pool will continue to<br>
&gt; &gt; function without any problems.<br>
&gt; &gt;<br>
&gt; &gt; HTH,<br>
&gt; &gt; Vijay<br>
&gt; &gt;<br>
&gt; &gt;<br>
<br>
</div></div>&gt; _______________________________________________<br>
&gt; Gluster-devel mailing list<br>
&gt; <a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
&gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-devel" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-devel</a><br>
<br>
</blockquote></div><br></div>