Customer bundle storage
Keep your organization's bundles in a Google Cloud Storage, Amazon S3, or Azure Blob Storage bucket you own, with no bundle passing through Flitz.
Enterprise feature
Customer bundle storage is part of Flitz Enterprise, and Flitz sets it up with you. To arrange it, contact support.
By default, Flitz keeps your bundles in its own storage. With customer bundle storage, your organization connects a bucket it owns — in Google Cloud Storage, Amazon S3, or Azure Blob Storage — and every bundle it publishes is uploaded to that bucket and downloaded from it directly:
- No bundle passes through Flitz.
flitz publishuploads the.flitzstraight to your bucket, and the loader downloads it straight from there. Flitz only hands out short-lived URLs to your storage. - Flitz holds no secret for your storage. Your cloud trusts Flitz's Google Cloud service account, and Flitz gets short-lived credentials from that trust each time it needs them. Remove the grant in your cloud and Flitz's access ends.
- Flitz never reads a stored bundle. It uses its access only to sign upload and download URLs, check that a bundle exists, and delete one. Signing a download URL requires read permission on the object, so the access would allow a read; Flitz commits never to use it.
Only the bundle moves. The publish record — its app and track, versions, name, comment, and who published it — and the landing page stay with Flitz.
What changes for your team
Nothing in day-to-day use. Publishing, sharing, opening, and deleting work as they do with Flitz's storage, and no host needs a rebuild.
- Links stay the same. Every link — landing page, deeplink, QR code, track link — points at Flitz, as before; none shows your bucket.
- Opening a build goes to Flitz first. Flitz checks download access, checks that the bundle exists in your storage — its metadata, never its contents — and redirects the loader to a short-lived signed URL at your storage. The loader downloads the bundle from there.
- Deleting a publish, or an app being removed for good 30 days after its delete, deletes its bundles from your bucket. If that fails — for example because you revoked Flitz's access — the publish is deleted anyway and its links stop working; the leftover object is yours to delete.
- Teammates' devices download from your storage directly, so it must stay reachable over HTTPS from their devices and from every machine that publishes — see What breaks it.
How it is set up
Arrange it with support
Customer bundle storage is part of your Enterprise agreement. Contact support to arrange it.
Prepare the bucket and grant access
Your cloud admin creates a bucket, or an Azure container, for Flitz and grants Flitz's service account access to it, as shown for your provider below. They do not need a Flitz account.
Send support the identifiers
They send support the identifiers listed for your provider, and Flitz connects the bucket to your organization. From then on, every new publish of your organization goes to it. No portal page or CLI command shows or changes the connection.
Check it with a test publish
Flitz publishes a test build from an account in your organization, which you invite, and opens it on a device. Anything wrong is fixed with your cloud admin before your developers publish.
The connection has a few fixed rules:
- One bucket per organization, used only by Flitz. It holds the bundles of
every app in your organization, and the access you grant covers the whole
bucket. There are no per-app buckets, and Flitz cannot be pointed at a
folder inside a shared bucket. Flitz stores each bundle as
<organization-id>/<app-key>-<suffix>.flitz. - Connect it before your first publish. Every publish is looked up in your
organization's current storage. Connecting an organization that already has
publishes, or moving to another bucket or provider, is arranged with Flitz by
hand, and publishes stored before the change stop opening: their links
answer
404, and their bundles stay where they were. - Amazon S3 itself only. S3-compatible stores, such as Cloudflare R2 or MinIO, are not supported.
- Your own encryption keys work on every provider.
Grant Flitz access
Flitz reaches your storage as one Google Cloud service account. Grant access to this one:
- Email:
flitz-production-storage@flitz-production.iam.gserviceaccount.com - Unique ID:
116263850343469735855, used by the Amazon S3 and Azure trust below.
For Amazon S3 and Azure, support also gives you <organization-audience>, the
audience that names your organization: flitz-storage: followed by your
organization's ID.
Your cloud admin runs the commands below with the provider's CLI — gcloud,
aws, or az — signed in to the account that will own the bucket. Replace
each <placeholder> with your value.
| Placeholder | Value |
|---|---|
<project> | Your Google Cloud project ID. |
<bucket> | The bucket's name: 3–63 lowercase letters, digits, -, _, and ., starting and ending with a letter or digit. |
<location> | The bucket's location, such as europe-west4 or EU. |
Create a bucket that holds Flitz's bundles only, with public access prevention enforced. Any location and storage class work:
gcloud storage buckets create gs://<bucket> \
--project=<project> \
--location=<location> \
--uniform-bucket-level-access \
--public-access-preventionCreate a custom role with exactly the three permissions Flitz uses — create, read, and delete an object:
gcloud iam roles create flitzBundles \
--project=<project> \
--title="Flitz bundles" \
--permissions=storage.objects.create,storage.objects.get,storage.objects.delete \
--stage=GAGrant the role to Flitz's service account on the bucket, with no condition. The grant covers this bucket only:
gcloud storage buckets add-iam-policy-binding gs://<bucket> \
--member=serviceAccount:flitz-production-storage@flitz-production.iam.gserviceaccount.com \
--role=projects/<project>/roles/flitzBundlesIf your organization restricts which identities can be granted access — domain-restricted sharing, on by default for Google Cloud organizations created since May 2024 — this grant fails until you allow Flitz's service account in that policy.
Google-managed encryption keys need nothing more. To encrypt with your own
Cloud KMS key, let your project's Cloud Storage service agent use the key, then
set it as the bucket's default key. <kms-project>, <key-location>,
<keyring>, and <key> name the key:
agent="$(gcloud storage service-agent --project=<project>)"
gcloud kms keys add-iam-policy-binding <key> \
--keyring=<keyring> --location=<key-location> --project=<kms-project> \
--member="serviceAccount:${agent}" \
--role=roles/cloudkms.cryptoKeyEncrypterDecrypter
gcloud storage buckets update gs://<bucket> \
--default-encryption-key=projects/<kms-project>/locations/<key-location>/keyRings/<keyring>/cryptoKeys/<key>Flitz names no key in its requests. Leave Requester Pays off, as it is by default: Flitz sends no billing project.
Send support: the bucket name.
What breaks it
Teammates' devices and the machines that publish reach your storage directly, over HTTPS. You can limit who reaches it — with IP ranges or VPC endpoints in a bucket policy, an Azure storage firewall or private endpoint, or a Google Cloud VPC Service Controls perimeter — as long as those devices and machines, CI runners included, are let through.
Any of these stops publishes or downloads:
- an S3 bucket name with dots;
- an S3 policy that caps the age of request signatures below one hour;
- an S3 bucket policy that demands a server-side-encryption header;
- an IAM role whose maximum session duration is under one hour;
- Requester Pays on a Google Cloud bucket;
- Google Cloud domain-restricted sharing without an exception for Flitz's service account;
- a disabled or destroyed encryption key.
A retention policy, an object hold, or S3 Object Lock keeps a deleted
publish's bundle in your bucket; the publish is deleted in Flitz anyway. On a
versioned S3 bucket, deleting a bundle adds a delete marker, and earlier
versions stay. A lifecycle rule that deletes bundles breaks their links: they
answer 404.
When something fails
Neither the portal nor flitz status shows whether the connection works.
- A publish fails when the connection breaks — say a bucket policy changed
— with an error that does not name your storage. When Flitz cannot reach your
bucket,
flitz publishstops with a service error before it uploads, and no publish is recorded. When your bucket refuses the upload, it fails withthe bundle upload for <stem> failed: …, and the publish stayspending, thenabandoned. Ask your cloud admin to check the grant, or contact support. - A download fails with Download failed:
HTTP 404when the bundle was deleted from your bucket outside Flitz, andHTTP 500when Flitz's access no longer works. When a network or firewall blocks your storage, the loader shows its usual download error; Flitz cannot see that case. See Loader troubleshooting.
Audit trail
- Every download through a Flitz-signed URL appears in your storage's access
logs under Flitz's identity, with the teammate's device as its source address.
So does every upload by
flitz publish, with the publishing machine as its source address. - Flitz's own requests to your storage are checks that a bundle exists and deletions — never a read of a bundle.
On Google Cloud Storage, turn on Data Access audit logs for Cloud Storage — in the console, IAM & Admin → Audit Logs → Google Cloud Storage, with Data Read and Data Write — then read the requests Flitz's service account authorized:
gcloud logging read \
'protoPayload.serviceName="storage.googleapis.com"
AND protoPayload.authenticationInfo.principalEmail="flitz-production-storage@flitz-production.iam.gserviceaccount.com"' \
--project=<project> --limit=50On Amazon S3, CloudTrail records each time Flitz assumes your role, with the session name and Flitz's unique ID:
aws cloudtrail lookup-events --region <region> \
--lookup-attributes AttributeKey=EventName,AttributeValue=AssumeRoleWithWebIdentityWith S3 data events on for the bucket, CloudTrail also records each object
request under a session of the flitz-bundles role: flitz-org-hub for
uploads, deletions, and the checks made while publishing, and flitz-download
for the checks and downloads made when a build is opened.
To end Flitz's access, remove the grant or the trust in your cloud at any time. New publishes and downloads then fail as described above, and deleting a publish leaves its bundle in your bucket.