Skip to main content
Version: 14.x

Bucket Connection Configuration

This page explains how to connect the Bucket Storage Support services to the two different kinds of supported buckets. The guide is equivalent for all the services belonging to the Bucket Storage Support feature.

In order to connect to a Google bucket, after setting the environment variable BUCKET_TYPE to google, a secret will have to be created, containing the credentials of the service account necessary for connecting to the Google bucket. Once done, the environment variable GOOGLE_APPLICATION_CREDENTIALS has to be set with the same value of the mount path defined in the secret. The JSON document is a Google Service Account key file, which can be obtained as follows:

  • Navigate to the Google Cloud Project
  • Go to "IAM & Admin" → "Service Accounts"
  • Create or Select a Service Account
  • If you don't have one, create a new service account
  • Grant it the necessary GCS permissions (typically "Storage Object Admin" or "Storage Admin")
  • Go to the "Keys" tab of the Service Account
  • Click "Add Key" → "Create new key" → "JSON"
  • Download the JSON file

The json should have the following format:

{
"type": "<type>",
"project_id": "<projectId>",
"private_key_id": "<privateKeyId>",
"private_key": "<privateKey>",
"client_email": "<clientEmail>",
"client_id": "<clientId>",
"auth_uri": "<authUri>",
"token_uri": "<tokenUri>",
"auth_provider_x509_cert_url": "<authProviderCertUri>",
"client_x509_cert_url": "<clientCertUrl>"
}