Switching to v2:

ARTIFACTORY: How should I switch to using the Google native client?

AuthorFullName__c
Amit Turgeman
articleNumber
000005332
ft:sourceType
Salesforce
FirstPublishedDate
2022-07-17T15:51:15Z
lastModifiedDate
2023-01-22T11:06:24Z
VersionNumber
2

v1

v2

chain template="google-storage"

chain template="google-storage-v2"

provider id="google-storage" type="google-storage"

provider id="google-storage-v2" type="google-storage-v2"

chain template="cluster-google-storage"

chain template="cluster-google-storage-v2"


After updating the file, a restart of Artifactory will kick-in these changes, and it will switch to use the Google native client.

Note! If you used any of the dedicated JetS3t properties in the google-stoarge provider, these will not be honored by the new Google native client.

However, check if the parameter is exposed in the documentation, and if so, set it in the “google-storage-v2” provider section.

For example:
Using dedicated JetS3t properties:
<provider id="google-storage" type="google-storage">
        <endpoint>commondatastorage.googleapis.com</endpoint>
        <bucketName>BUCKET_NAME</bucketName>
        <property name="httpclient.max-connections" value="300"/>
        <identity>XXXXXX</identity>
        <credential>XXXXXX</credential>
    </provider>

Moving to google-storage-v2:
<provider id="google-storage-v2" type="google-storage-v2">
        <endpoint>commondatastorage.googleapis.com</endpoint>
        <bucketName>BUCKET_NAME</bucketName>
        <maxConnections>300</maxConnections>
    </provider>
In the above case, useInstanceCredentials is not defined.

Therefore, the default value will be assigned, false, and the below flow of the authentication resolution order follows
‘useInstanceCredentials’ == false && save creds file under the default path [arti_home_full_path]/etc/gcp.credentials.json.