How to configure the S3 object store with a proxy?

It is possible to configure the S3 Object storage platform with Artifactory so all traffic will go trough a proxy. To set up Artifactory with S3, you will need to follow these stepsCheck here for more information on S3 Object storage.

 

Below is a basic binarystore.xml file with configuration for S3 with a proxy:

The binarystore.xml is part of the advanced capabilities for filesfilestore managementore management which was introduced on version 4.6. of Artifactory

 

<config version=”v1″>

<chain>

        <provider id=”cache-fs” type=”cache-fs”>

            <provider id=”eventual” type=”eventual”>

                <provider id=”retry” type=”retry”>

                    <provider id=”s3″ type=”s3″/>

                </provider>

            </provider>

     </provider>

</chain>

 

<provider id=”s3″ type=”s3″>

    <identity>XXXXXXXXXX</identity>

    <credential>XXXXXXXXXXXXXXXXX</credential>     

    <endpoint><My S3 server></endpoint>

    <bucketName><My S3 Bucket Name></bucketName>

    <proxyHost><http proxy host name></proxyHost>

    <proxyPort><http proxy port number></proxyPort>

    <proxyIdentity>XXXXX</proxyIdentity>

    <proxyCredential>XXXX</proxyCredential>                          

</provider>

</config>



For example:

<provider id=”s3″ type=”s3″>

    <identity>XXXXXXXXXX</identity>

    <credential>XXXXXXXXXXXXXXXXX</credential>     

    <endpoint>s3.amazonaws.com</endpoint>

    <bucketName><My S3 Bucket Name></bucketName>

    <proxyHost>localhost</proxyHost>

    <proxyPort>8888</proxyPort>

    <proxyIdentity>admin</proxyIdentity>

        <proxyCredential>admin</proxyCredential>                        

</provider>

</config>