customEngineConfig.storage points at object storage.
With Google Cloud Storage as the backing store, durability does not depend on the per-pod data volumes mounted to each engine. Even a complete loss of those volumes does not cause data loss, because the authoritative copy of managed table data lives in the bucket.
You configure object storage on the engine through customEngineConfig.storage, which the chart passes through unchanged into the engine’s config.yaml. The managed_table_storage and managed_table_bucket_name keys match the Firebolt Core configuration schema, and the chart does not validate them. The engine reads Google Cloud credentials from the pod’s Google identity, which you provide with Workload Identity Federation for GKE.
The chart passes
customEngineConfig.storage through unchanged and does not validate managed_table_storage. The gcs backend requires an engine image that supports it. An unsupported value is written verbatim into the engine config.yaml, so the engine fails at startup rather than at install time.Prerequisites
Before you begin, ensure that you have the following installed and configured:- A Kubernetes cluster running on Google Kubernetes Engine with Workload Identity Federation enabled.
kubectlconfigured to access your cluster.helmv3 installed on your local machine.gcloudconfigured for your project.- A Google Cloud project with permissions to create buckets and IAM service accounts.
- An engine image that supports the
gcsstorage backend.
Use Google Cloud Storage
The following examples use a bucket namedfirebolt-managed in the project my-project, but you can choose any name you like.
Create a bucket
Create a Google Cloud Storage bucket with uniform bucket-level access and public access prevention:Grant the engine a Google identity
Create a Google service account, grant it object access on the bucket, and allow the engine’s Kubernetes ServiceAccount to impersonate it:Point the chart at the bucket
Run the engine pods under the annotated ServiceAccount and set the storage block to the Google Cloud Storage bucket. The default scheme forgcs is gs://.
Confirm that object storage works
Create a table, insert a row, and list the bucket to confirm the engine wrote data through to Google Cloud Storage:Restrict external access with an intermediary service account
The bucket you set undercustomEngineConfig.storage holds the engine’s managed tablet data, and the engine reaches it with the engine pod’s own Google identity. Queries that read from or write to external locations, such as external tables that point at a different bucket, follow a separate credential path.
By default, external access also uses the engine pod’s own Google identity. That identity belongs to this chart release, so it is not a convenient identity for the owner of an external bucket to reference when they grant access.
An intermediary service account gives external access a stable identity instead. When you set one, the engine impersonates the intermediary service account for external access rather than using its own pod identity. Because the service account is stable and known ahead of time, you can share it with third parties and reference it in bucket IAM policies, including on Google Cloud projects outside your own organization. Access to the object storage bucket always uses the engine pod’s own identity, so the intermediary service account applies only to external locations.
A gs:// location that carries AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY (a Google Cloud Storage HMAC key) is the exception: the query authenticates with that key through the S3-compatible XML API, bypassing both the pod identity and the intermediary service account.
Where nothing provides Application Default Credentials to the engine pods, a credential-less gs:// read is sent unauthenticated and reaches publicly readable objects only, and writing needs an identity and fails. That is the case on a cluster outside Google Cloud, and on GKE without Workload Identity and without GOOGLE_APPLICATION_CREDENTIALS.
The pod identity is whatever Application Default Credentials resolve to inside the engine container. Google’s libraries look for them in a fixed order, and the first match wins:
GOOGLE_APPLICATION_CREDENTIALS, if it is set. The file it names is used as given, whether that is a mounted service account key or a credential configuration file for Workload Identity Federation.$HOME/.config/gcloud/application_default_credentials.json, if that file exists. This is wheregcloud auth application-default loginwrites, so it is normally present only on a workstation.- The instance metadata server, which is what Workload Identity Federation for GKE provides.
HOME holds a gcloud login authenticates as that person instead of as the pod identity. To pin the source, set GOOGLE_APPLICATION_CREDENTIALS on the engine container, or set HOME to a directory that only the engine writes to. The engine logs the source it resolved once per process, as Using Google Cloud identity from <source>.
You can also keep external access off the pod identity altogether, with customEngineConfig.storage.gcp.allow_engine_identity: false. A credential-less gs:// read is then sent unauthenticated and reaches publicly readable objects only, and a write fails with an error that asks for credentials, so an external gs:// location needs either an HMAC key or an intermediary service account. The chart renders true for the engines it installs, because the pod identity belongs to this chart release and is your own; the engine itself refuses that identity until a deployment permits it, because it cannot tell whose identity it runs as. When an intermediary service account is set, that account is the principal, so the setting has no effect.
Because a credential-less external location runs as the engine pod’s identity, plan the identity’s bucket access as the boundary. The engine rejects a credential-less URL that names the bucket in managed_table_bucket_name, so managed tablet data is not readable or writable that way. To use that bucket as an external location anyway, supply CREDENTIALS on the location: the query then authenticates as that principal rather than as the engine.
Every other bucket the pod identity can reach stays reachable by URL. An inline gs:// URL carries no location privileges, so any user who can run a query can read, overwrite, or delete objects in those buckets. Grant the pod identity object access only on the managed bucket, and set an intermediary service account for external data so the pod identity itself needs no access to it.
Create the intermediary Google service account, grant the engine’s identity roles/iam.serviceAccountTokenCreator on it, and grant the intermediary the permissions it needs to reach the external data.
Set its ID under customEngineConfig.storage.gcp.intermediary_service_account_id:
storage.gcp block through unchanged, except for allow_engine_identity, which it renders as true unless you set it. The connection settings in the block apply to managed tables when managed_table_storage is gcs; allow_engine_identity governs external gs:// locations, so it applies whatever backs managed tables.
Storage scope
customEngineConfig is global to the release. Multiple engines under the same engines: list share the same customEngineConfig.storage block, and therefore the same bucket. To run engines against different buckets, install the chart twice in separate releases, each with its own customEngineConfig.storage.