How to handle configuration options and namespace prefixes #20
Replies: 2 comments 6 replies
-
@bbockelm, @matyasselmeci We wanted to open this up as a discussion to get your feedback in recognizing that we're probably not far away from being locked into our choices. |
Beta Was this translation helpful? Give feedback.
-
I think I'm back to advocating the proposal I made Friday. s3.path_name my-magic-path I didn't catch your external map file in the first post in this thread. What I like about my proposal is that everything is in one file and the bucket name can be hidden completely from the user if desired. And, of course, if an admin wants to expose it by putting it in my-magic-path they still can do that if they want. |
Beta Was this translation helpful? Give feedback.
-
Right now, the s3 plugin parses a namespace based on its configuration.
The configuration:
results in the namespace
/my-service/my-region
and getting object
foo
from bucketbar
happens by issuing a GET request to the xrootd host at:https://<xrootd host>/my-service/my-region/bar/foo
We are now looking to decouple the namespace from the existing s3 configuration options, as they're overloaded and cannot in general be set to arbitrary values (which is something we might need for creating arbitrary namespaces).
Discussions with @rw2 and @nkissebe landed at a possible configuration file of:
where the authz map (or whatever we end up calling it) is however we decide to handle pairings of access key, secret key, and bucket.
All of the buckets exported by the xrootd instance should belong to the same service url, service name, and region. Then the Pelican federation namespace will be /my-magic-path/bar/foo, which gets converted into a request to
https://<origin url>/my-magic-path/bar/foo
where the origin url is the hostname of this instance of xrootd.What I'm personally uncertain of is whether we need
s3.path_name
or if we should just handle this all viaall.export
, which is how we set the namespace prefix for POSIX origins.Beta Was this translation helpful? Give feedback.
All reactions