Skip to main content
Version: 3.9

Storage Providers

R-COM Gateway supports configurable external storage providers for storing and managing file data. This allows attachments and file-based data to be stored outside the Gateway database using Amazon S3 or an S3-compatible system.

This feature is currently available for Object Schema attachments. When attachments are enabled for an Object Schema, the selected storage provider determines where all attachments for objects in that Object Schema are stored.


Overview​

Previously, attachments were stored using the internal Gateway storage mechanism. With storage provider support, R-COM Gateway can now use different storage backends depending on the client or project requirement.

Supported storage provider types include:

Provider TypeDescription
DatabaseStores files using the Gateway database/internal storage mechanism.
Amazon S3Stores files in an Amazon S3 bucket.
S3-compatible storageStores files in S3-compatible systems such as MinIO, Ceph, Wasabi, or other compatible object storage services.

Purpose​

External storage providers are useful when file data should be stored outside the main Gateway database. This is especially relevant for larger attachments, scalable deployments, cloud-native environments, and projects where the customer already has an approved storage system.

Common use cases include:

Use CaseBenefit
Object attachmentsStore uploaded files linked to objects in a dedicated storage backend.
Large file storageAvoid unnecessary growth of the Gateway database.
Customer-managed storageUse customer-owned Amazon S3 or compatible storage.
Scalable deploymentsUse storage systems designed for large file volumes.
Cloud and on-premise flexibilitySupport both cloud-native and self-hosted object storage systems.

Storage Provider Management​

Storage providers are managed from:

Administration > System Config > Storage Providers

From this page, users can create, view, edit, filter, and delete storage provider configurations.

Manage Storage Providers

Manage Storage Providers

The Storage Provider list displays the configured providers with details such as:

ColumnDescription
Provider IDUnique identifier of the storage provider.
NameDisplay name of the storage provider.
Provider TypeType of storage backend, for example Amazon S3 or S3-compatible.
BucketTarget bucket or container name.
Path-style addressingIndicates whether path-style access is enabled.
ActionsAvailable actions such as view, edit, or delete.

Creating a Storage Provider​

To create a new storage provider:

  1. Go to Administration > System Config > Storage Providers.
  2. Select Add Storage Provider.
  3. Enter the required provider details.
  4. Use Test connection to verify the configuration.
  5. Click Save.
Create Storage Provider

Create Storage Provider

The available fields may differ depending on the selected provider type.

Common Fields​

FieldRequiredDescription
NameYesName used to identify the storage provider in Gateway.
Provider TypeYesStorage backend type, such as AmazonS3 or an S3-compatible provider.
Service Endpoint URLDepends on providerEndpoint of the storage service. Required for S3-compatible providers.
BucketYesName of the bucket or container where files will be stored.
Access KeyYes, for key-based providersAccess key used to authenticate with the storage backend.
Secret KeyYes, for key-based providersSecret key used to authenticate with the storage backend.
RegionDepends on providerStorage region, commonly required for Amazon S3.
Path-style addressingOptionalEnables path-style access for S3-compatible providers.
tip

Always use Test Connection to validate the endpoint, bucket, and credentials before selecting the provider in an Object Schema.


Using Storage Providers in Object Schemas​

Storage providers can currently be used with Object Schemas to store object attachments.

To configure an Object Schema to use a storage provider:

  1. Go to Data → Object Schemas.
  2. Create a Create Object Schema or edit an existing one.
  3. Enable Allow Attachment.
  4. Select the required Storage Provider.
  5. Save the Object Schema.
Allow Attachment in Object Schema

Enable Allow Attachment and select a Storage Provider

Once a storage provider is selected, all attachments added to objects in that Object Schema are stored using the selected provider.


Attachment Storage Behavior​

When Allow Attachment is enabled for an Object Schema, Gateway uses the selected storage provider for attachment storage.

Example:

If an Object Schema is configured with the storage provider Garage S3, then all attachments uploaded for objects in that Object Schema are saved in the configured Garage S3 backend.

The Object Schema keeps the attachment reference and metadata inside Gateway, while the actual file content is stored in the selected storage provider.


Changing the Storage Provider​

Changing the storage provider does not migrate existing attachments

If an Object Schema already has attachments and the storage provider is changed, the existing attachments are not transferred to the new provider. As a result, those attachments may no longer be accessible from the Object Schema.

Changing the storage provider of an Object Schema does not automatically migrate existing attachments.

The files are not necessarily deleted immediately. However, Gateway will no longer resolve them through the Object Schema because the Object Schema now points to a different storage provider.

Depending on the configured data cleanup and retention settings, the old attachment data may still be recoverable for a limited time. Existing attachments can be manually migrated or retrieved from the previous storage location before they are removed by the cleanup process.

Before changing the storage provider of an Object Schema that already contains attachments:

  1. Check whether the Object Schema has existing attachments.
  2. Export or migrate the existing attachments from the current storage provider.
  3. Confirm the retention period configured in the Gateway data cleanup settings.
  4. Update the Object Schema to use the new storage provider.
  5. Upload or relink the migrated attachments if needed.
  6. Verify that attachments can be opened or downloaded after the change.
warning

Do not change the storage provider in production without confirming how existing attachments will be handled.


Data Cleanup and Retention​

Gateway may retain temporary or old attachment data based on the retention period configured in the data cleanup section.

This retention period is important when a storage provider is changed, because existing attachment data may still be available in the old storage location for a limited time.

After the cleanup process removes the old data, recovery may no longer be possible through Gateway.

info

Administrators should review the data cleanup configuration before making storage provider changes.


Permissions and Access​

Storage provider configuration should only be managed by authorized users.

Users must have the required permissions to create or modify storage providers and Object Schemas. If attachment storage is enabled for an Object Schema, the selected storage provider must be valid and accessible for the current client.

If the user does not have the required permission to use or configure a storage provider, Gateway may prevent the operation or show an authorization error.


Operational Notes​

AreaRecommendation
Connection testingAlways test the storage provider connection before using it in an Object Schema.
Production changesAvoid changing storage providers for active Object Schemas without a migration plan.
BackupEnsure the external storage backend is included in the customer backup strategy.
CredentialsUse dedicated access credentials with only the required permissions.
RetentionReview data cleanup settings before changing storage providers.
MonitoringMonitor failed uploads/downloads after enabling external storage.
NamingUse clear provider names, especially when multiple storage providers exist for the same client.

Example Configuration Flow​

A typical setup flow is:

  1. Administrator creates a storage provider named Production S3.
  2. The provider is configured with the required endpoint, bucket, access key, secret key, and region.
  3. The administrator tests the connection.
  4. An Object Schema is created or updated.
  5. Allow Attachment is enabled.
  6. Production S3 is selected as the Object Schema storage provider.
  7. Users upload attachments to objects in that Object Schema.
  8. Gateway stores the attachment file content in the configured storage provider.

Limitations​

The current implementation supports storage providers for Object Schema attachments.

Current limitations:

LimitationDescription
No automatic migrationChanging the storage provider does not move existing files to the new provider.
Object Schema scopeStorage provider usage is currently linked to Object Schema attachments.
Cleanup dependencyOld attachment data may only be available until the configured cleanup retention period expires.
Manual recoveryExisting files may need to be manually migrated or fetched from the previous storage backend.