How to configure the S3 object store with a proxy?

How to configure the S3 object store with a proxy?

AuthorFullName__c
JFrog Support
articleNumber
000002811
ft:sourceType
Salesforce
FirstPublishedDate
2016-11-21T15:16:01Z
lastModifiedDate
2019-07-29
VersionNumber
7

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 steps. Check 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 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>