Configuring for the Cloud |
The following example explains how to modify aspera.conf for AWS S3 transfers. You must meet the following prerequisites before modifying aspera.conf:
<?xml version='1.0' encoding='UTF-8'?> <CONF version="2"> <server> <server_name>aspera.example.com</server_name> </server> <aaa> <realms><realm><users> <user> <name>UserName</name> <authorization> <transfer> <in> <value>token</value> </in> <out> <value>token</value> </out> </transfer> <token> <encryption_key>YourSuperSecretKey</encryption_key> </token> </authorization> <file_system> <access> <paths> <path> <absolute></absolute> <read_allowed>true</read_allowed> <!-- Read Allowed: boolean true or false --> <write_allowed>true</write_allowed> <!-- Write Allowed: boolean true or false --> <dir_allowed>true</dir_allowed> <!-- Browse Allowed: boolean true or false --> <restrictions> <!-- File access restrictions. Multiple entries are allowed. --> <restriction>s3://*</restriction> <restriction>!azu://*</restriction> </restrictions> </path> </paths> </access> </file_system> </user> </users></realm></realms> </aaa> </CONF>
A configuration with both a docroot absolute path (docrooted user) and a restriction is not supported.
The primary purpose of restrictions is to allow access to certain storage (for example, Amazon S3) for clients that have their own storage credentials. In this case, instead of using docroots in aspera.conf, use a docroot restriction.
Configuration:
<paths>
<path>
<restrictions>
<restriction>s3://*</restriction>
</restrictions>
</path>
</paths>
You can also configure restrictions once for all users by setting <restriction> in the default section.
Functionality: