Skip to main content

Google Cloud Storage (GCS)

A Google Cloud Storage Remote Server connects Files.com to one named bucket. The connection authenticates through a Service Account Key (JSON), HMAC keys, or OAuth, depending on the access its administrator provides. That method affects credential ownership, permissions, and the available direct-transfer directions.

Choose mounted access or a separate copy according to where the application needs its working files.

Bucket and Authentication

Select Google Cloud Storage when adding a Remote Server, provide the Google Cloud Storage Bucket name, and give the connection an identifiable internal name.

Authentication Information

Files.com supports three authentication methods for connecting to Google Cloud Storage. The Google Cloud Storage Authentication Method option allows Service Account Key (JSON), HMAC, and OAuth.

With the Service Account Key (JSON) method, enter the Google Cloud project ID and JSON key supplied for the service account. The Credentials (JSON) field must contain a JSON object that includes the access key and other required authentication details.

Open the JSON key file in a text editor and copy its entire contents into this field. The service account's administrator creates the key in the Google Cloud Console, following Google's documentationExternal LinkThis link leads to an external website and will open in a new tab.

With the HMAC (XML / S3-compatible API) method, Files.com connects through Google's S3-compatible API. Use it when JSON credentials are not preferred or feasible. This method requires an access key and a secret key. The Google Cloud administrator can create them by following Google's HMAC setup guideExternal LinkThis link leads to an external website and will open in a new tab.

You can store JSON credentials or HMAC keys in the Remote Server Credential Manager and select that credential when configuring the Remote Server.

With the OAuth method, there are no keys to create or manage. Provide the bucket name and choose whether the connection gets Read Only or Read/Write access. Read/Write is the default.

When you create the Remote Server using the web interface, Google's sign-in and consent flow starts immediately. Approve the connection with a Google account that has access to the bucket.

A Remote Server created another way, such as through the API, an SDK, or Terraform, shows an Inactive status until the sign-in is completed. Use the Connect action on the Remote Server in the web interface to start the sign-in flow.

We recommend using OAuth only when the Service Account Key and HMAC methods are not available to you. An OAuth connection is tied to the associated Google account.

If the authorizing account is disabled or loses access, the connection stops working, which makes personal credentials a poor fit for long-term connections. An organization policy that prevents service account key creation can be a reason to choose OAuth.

Permissions for Files.com Access

Service Account Key and HMAC connections use the permissions of the associated service account. The bucket administrator grants access to the bucket and objects needed by the workflow, rather than bucket administration or IAM policy management. The permission sets below describe what that administrator configures, or what your team needs to request when another party controls the bucket. Files.com folder permissions separately govern each user's access through a mount.

OAuth uses the associated Google user's permissions, further restricted by the Remote Server's Read Only or Read/Write choice. The service-account permission sets below do not define the OAuth account's rights.

Full Access

For a connection that reads, writes, replaces, and deletes objects, the predefined Storage Object Admin role (roles/storage.objectAdmin) supplies object permissions. Grant storage.buckets.get separately when the connection requires bucket metadata; object roles do not include it.

A custom role for the same work includes:

storage.buckets.get
storage.objects.create
storage.objects.delete
storage.objects.get
storage.objects.list

Replacement of an existing GCS object requires create and delete permissions. This matters for recurring deliveries that reuse a filename as well as explicit delete operations.

Read-Only Access

For a source that Files.com may list and download but must not change, use Storage Object Viewer (roles/storage.objectViewer). Grant bucket metadata access separately when required. A custom role includes:

storage.buckets.get
storage.objects.get
storage.objects.list

This permits collection or mounted read access without granting upload, replacement, or deletion rights to the connection.

Write-Only Access

For delivery of new objects without permission to read their contents back, use a custom role containing:

storage.buckets.get
storage.objects.create
storage.objects.list

Files.com needs list access as well as create permission to inspect the destination and complete its upload handling. Listing exposes object names and listing metadata, even though the connection cannot download existing contents.

Without object delete permission, this connection cannot replace or delete existing objects. Deliveries therefore need new names. The restriction applies to this identity; it does not make the bucket immutable to other identities with broader permissions.

Network Access

The connection can use Files.com's dedicated outbound addresses. The selected route determines the source addresses the bucket's network rules need to allow for operations from Files.com. Direct client transfers instead originate on the client's network.

Storage Classes and Encryption

GCS Standard, Nearline, Coldline, and Archive objects remain immediately readable. Unlike offline archive tiers on some other providers, GCS Archive needs no restore before a download. Nearline, Coldline, and Archive instead charge for retrieval and impose minimum billable storage durations. The bucket administrator selects the class; Storage Classes and Costs explains how the workload's reads and replacements affect cost, including repeated reads and early replacements.

GCS encrypts stored data automatically. For a customer-managed Cloud KMS key, the storage administrator configures the bucket's default key, and the key administrator grants Google's Cloud Storage service agent access to it. Files.com's service account or OAuth identity separately needs the object permissions for the workflow. The key owner maintains access to keys needed by existing objects and recoverable versions; the encryption guidance explains this dependency.

Incomplete Multipart Uploads

The HMAC authentication method uses GCS's S3-compatible API, including XML multipart uploadsExternal LinkThis link leads to an external website and will open in a new tab that send a file in parts before assembling the completed object.

Service Account Key (JSON) and OAuth connections use GCS's JSON API: single-request uploads for smaller files and resumable uploadsExternal LinkThis link leads to an external website and will open in a new tab for larger files. The cleanup rule below applies to XML multipart uploads from HMAC connections.

If XML multipart uploads are not completed or aborted, the uploaded parts can remain stored indefinitely, consuming storage space and potentially incurring costs.

The bucket administrator can prevent this buildup with a GCS Object Lifecycle ManagementExternal LinkThis link leads to an external website and will open in a new tab rule that automatically aborts incomplete multipart uploads after a set period.

The following is an example GCS Lifecycle Rule:

{
  "rule": [
    {
      "action": { "type": "AbortIncompleteMultipartUpload" },
      "condition": { "age": 7 }
    }
  ]
}

This bucket-level rule automatically aborts incomplete XML multipart uploads older than seven days and deletes their parts, including uploads from other tools. The administrator chooses an age that allows expected uploads enough time to finish.

Transfer Paths

With HMAC authentication or a Service Account Key (JSON), eligible client downloads use Direct Routing automatically, while uploads use Files.com's network. OAuth connections use Files.com's network for uploads and downloads.

Directly transferred contents do not count toward Files.com Transfer Usage. Required processing, buffering, and network routing also affect a particular operation. The Direct Routing reference lists the client and operation requirements.

Case Sensitivity

Be aware of case sensitivity differences when copying, moving, or syncing files and folders between Google Cloud Storage and other storage locations. Google Cloud Storage is a case sensitive system, whereas other systems may not be. Files can be overwritten, and folders can have their contents merged, if their case insensitive names match.

Versioning

Google Cloud Storage supports object versioning. When versioning is enabled on a bucket, GCS retains previous versions of each object. Files.com's standard file listing shows only the current version. Noncurrent versions are not visible in the file browser.

For details on how deletions, renames, and moves behave on versioned buckets, see Object Storage Behavior.

GCS also offers soft delete and retention policies. Coordinate protection and lifecycle rules for live and noncurrent objects: a retention policy can prevent a replacement or deletion even when the connection has the required object permissions.

Folder Representation Using Slash Files

For flat-namespace buckets, Files.com presents object prefixes as folders and creates slash-file placeholders when needed, including for empty folders. Google Cloud Storage also offers hierarchical-namespace buckets, with different directory and feature behavior. Google's namespace documentationExternal LinkThis link leads to an external website and will open in a new tab explains the storage choice; object versioning is not supported on hierarchical-namespace buckets.