How best to hide directories in a storage-gateway?

21 views
Skip to first unread message

Chandin Wilson - NOAA Affiliate

unread,
Jun 30, 2023, 4:58:27 PM6/30/23
to dis...@globus.org
Hey Globus-folk,

I'm not having much success hiding directories that start with a $__ string from a posix storage gateway.  Shouldn't this work as a [file] argument to --restrict-paths? 
 
{
    "DATA_TYPE": "path_restrictions#1.0.0",
    "read": ["/data" ],
    "none": ["/", "$__CFN__", "$__NDMP__"]
}


Thanks for any insight!

--Chan

Jason Alt

unread,
Jul 7, 2023, 10:38:01 AM7/7/23
to Chandin Wilson - NOAA Affiliate, dis...@globus.org
Hi Chan-

What problems are you seeing? I'm not able to duplicate any issues with this configuration (tested with GCS v5.4.63+). Feel free to contact sup...@globus.org if problems persist.

A couple of comments though. Paths should be absolute paths except when prefixed with wildcards (exceptions to this are $HOME and ~). And saying '"read": ["/data" ]' implies '"none": ["/"]' so you should get the results you wanted with just the 'read' field.

Jason

Chandin Wilson

unread,
Jul 12, 2023, 7:18:16 PM7/12/23
to jaso...@globus.org, dis...@globus.org
From: Jason Alt <jaso...@globus.org>
Subject: Re: [Globus Discuss] How best to hide directories in a storage-gateway?
Date: Fri, 7 Jul 2023 09:37:46 -0500

> Hi Chan-
>
> What problems are you seeing? I'm not able to duplicate any issues with this configuration (tested with GCS v5.4.63+). Feel free to contact
> sup...@globus.org if problems persist.

The problem is I'm still seeing those directories in the web file browser for that collection.

I'll try the "*$__CFN__", "*$__NDMP__" wildcard style, and see where that goes.

thanks,

--Chan
Reply all
Reply to author
Forward
0 new messages