Storing OpenProject attachments in S3-compatible storage

Moving OpenProject attachments from local disk to S3-compatible object storage is a configuration and data-copy task with backup and storage-choice consequences. This page covers how it works and what to plan.

On this page

Why teams move OpenProject attachments to S3-compatible storage

A self-hosted OpenProject keeps attachments on the local filesystem by default, which works well for a single server. Moving those files to S3-compatible storage makes sense once the attachments need to be shared across several application nodes, scaled independently of the application servers, or handled as cloud-native objects. OpenProject can use fog for Amazon S3 or any S3-compatible store, so the application writes uploads to a bucket instead of a disk path. The change is a configuration decision with consequences for backups, access control and the migration of files you already hold, so it should be planned before the first production upload lands in the bucket.

The usual triggers are concrete. If you run more than one web or worker node, every node must see the same attachments, and a shared bucket removes the need for a network file share. On Kubernetes, pods are replaced during upgrades and rescheduling, so local volumes become a bottleneck and a single point of loss. Some organizations also have an object storage standard already approved and operated by a platform team, and want OpenProject to use it rather than a separate disk layout. Separate backup is the last common driver: when attachments live in a bucket with its own versioning and retention, the database and the file store can be protected on different schedules. Each trigger changes which parts of the deployment you must size, so write down which of them applies to your setup.

Before you commit, confirm three things with the team that will run the store: which S3-compatible product you will use and its current maintenance status, whether the team or a vendor will support it, and who holds the access keys. The product choice matters more than it appears. The MinIO community repositories are archived, so a MinIO deployment needs a conscious decision about source-only builds and support. The practical next step is to read the advanced configuration documentation for fog settings and then test a copy of your attachments in a non-production environment before cutover.

How the storage backend choice changes the deployment

On a single host, the S3 access key and secret are usually stored in the OpenProject configuration on that machine, next to the rest of the installation settings. The bucket can be hosted by a cloud provider, by a storage appliance in your data center or by a self-hosted object store on the same network. Your team typically operates the host, the keys and the bucket together, so one group owns every change.

  • Credentials: Static keys sit in the configuration file or container environment, so anyone with root on the host can read them. Restrict file permissions and set a rotation schedule that your team actually follows.
  • Bucket location: The bucket can sit in a cloud region or on premises. Network latency and egress between the host and the bucket affect upload and download times for large attachment volumes.
  • Operator: Your platform or application team owns the bucket policy, lifecycle rules and key rotation, usually the same people who maintain the host.
  • Compose specifics: Storage settings reach the containers through environment variables or mounted configuration. Confirm which mechanism your Compose version reads before you change anything.
  • Browser access: Direct uploads send files from user browsers to the storage endpoint, so the endpoint needs a DNS name, valid TLS and any cross-origin rules that the browser requires.

Before go-live, confirm that the endpoint is reachable from both the OpenProject containers and user browsers, and that the stored keys have only the bucket access the installation needs.

Configuration options for fog and S3 keys

This table compares the main storage choices for OpenProject attachments: fog against Amazon S3 or an S3-compatible endpoint, keys from a secret or an IAM role on EKS, direct browser uploads, and lifecycle cleanup of staged uploads. Read each row as a decision, then check the trade-off before you settle on a setup.

OptionWhat it doesTrade-offChoose it when
fog for Amazon S3Stores attachments in an AWS bucket through the fog storage adapterTies attachment storage to AWS account, region and bucket policyThe organization already runs on AWS and wants native bucket controls
fog for an S3-compatible endpointPoints the same adapter at a self-hosted or third-party object storeYour team owns endpoint availability, TLS, erasure coding and object store upgradesData must stay in your own data center or an air-gapped network
S3 keys from a secretThe Helm chart reads access keys from a Kubernetes secretKeys must be created, stored, rotated and revoked by your teamThe cluster runs outside EKS or IAM roles are not available
IAM roles for service accounts on EKS (s3.useIamProfile)The pod receives temporary AWS credentials through its service account, with no static keys in the chartNeeds an EKS cluster, correct IAM trust configuration and a policy scoped to the bucketThe deployment runs on EKS and security policy forbids long-lived access keys
Direct browser uploads (on by default with fog)Files go from the user's browser straight to the object store instead of through OpenProjectBrowsers need network reach to the storage endpoint, and CORS and allowed origins must match the host nameLarge attachments are common and you want to reduce load on the application pods
Staged upload cleanup with a bucket lifecycle ruleExpires abandoned staged uploads automatically after a set ageRule age must be longer than the longest upload in progress, or active uploads can failUsers often start uploads and abandon them, so storage would otherwise grow unchecked
Attachment backupsObject storage holds attachment data that the database backup does not containBackup plans must cover the bucket or its replicas, not only PostgreSQLAny production setup, whichever endpoint you choose

Setup sequence for moving attachments to S3

This sequence moves OpenProject attachments from local disk to an S3-compatible bucket in a controlled order, so each change is verified before the next one depends on it. The result is a tested storage path, a copied attachment set with matching counts, and local storage switched off only after a successful restore check.

  1. Confirm the storage product and its licence

    Your platform or storage team confirms which S3-compatible product will hold the attachments and reads its licence and support terms before any configuration is written. For MinIO, the community server is under the GNU AGPL v3.0, the community repository is archived and distributed as source only, and the README states that support for the community software is best effort, with SLA-backed support only through AIStor. Confirm with the vendor whether your intended use is compatible with those obligations and who will patch the product. The step is done when the product, licence review and support owner are written into the change record.

  2. Create the bucket and access policy

    The storage administrator creates a dedicated bucket for OpenProject attachments and a service identity that can read and write only that bucket. Keep the bucket private, enable versioning or backup at the storage layer if your platform offers it, and confirm the region or endpoint values that OpenProject will use. If you plan to use direct uploads, note that staged files need a bucket lifecycle rule so abandoned uploads are cleaned up. The step is done when a test request signed with the service identity can list, write and delete an object in that bucket, and is refused for any other bucket.

  3. Configure fog in the OpenProject configuration

    The administrator adds the fog storage settings for Amazon S3 or your S3-compatible endpoint in the OpenProject configuration, using the advanced configuration reference for the exact keys that match your install method. Keys are placed in the configuration file or environment variables and the service is restarted so the change loads. Credentials should come from a secret store rather than plain text in a shared file. The step is done when the application starts cleanly with no storage errors in its logs and the administration pages load for an administrator account.

  4. Verify direct uploads and browser access

    Direct uploads send files from the user's browser straight to the bucket, so the browser must be able to reach the storage endpoint over HTTPS and the bucket must accept the cross-origin requests that come from the OpenProject host name. Your network or platform engineer checks the required CORS rules on the bucket against the upgrade and host names in use, and confirms that the endpoint is reachable from user networks, not only from the application server. If direct uploads are not needed for your setup, disable them in configuration and record that decision. The step is done when a browser session on a test account completes an upload with no blocked requests in the developer console.

  5. Run a test upload and download

    A tester attaches a small file and a larger file to a work package, then downloads both and compares checksums with the originals. The test is repeated with a user who has only the project role that should see the attachment, to confirm that access still follows OpenProject permissions and not bucket access. The tester also checks that the object appears under the expected bucket prefix. The step is done when both files download intact, the object is present in the bucket, and the permission check behaves as the project roles dictate. Any failure stops the sequence here and the configuration is reverted.

  6. Copy existing attachments with the rake task

    Before running the copy, the administrator takes a full backup of the database and the local files directory, and schedules a maintenance window so no one uploads files during the copy. The administrator then runs the rake task for copying attachments to fog, following the advanced configuration documentation for the command syntax in your version. Record the start and end time and the console output. The step is done when the task exits without errors and the output reports the expected number of files processed.

  7. Verify attachment counts and sample files

    Compare the number of attachment records in the database with the number of objects in the bucket under the attachments prefix. Then download a random sample of older attachments from different projects and compare their checksums with the local originals. Confirm that large files, files with unusual names and attachments on archived projects are included in the sample. Any mismatch in counts or checksums means the copy is incomplete, and the copy should be rerun from the backup before anything else changes. The step is done when counts match and the sample checksums agree.

  8. Switch off local storage and keep a rollback path

    Once counts and samples match, the administrator removes the local attachment directory from the active configuration path and stops writing to it, keeping the old files in read-only storage for an agreed retention period set by your backup policy. Document the rollback path: restore the previous storage setting, restart the service, and confirm that the local copy is intact. Update backup jobs so they capture the bucket and the database together, since the database alone no longer contains the file contents. The step is done when a new upload lands in the bucket, the backup job covers both stores, and the rollback steps have been written and reviewed.

How browser uploads reach object storage

The flow starts in the user's browser, which asks the OpenProject web pod for a direct upload. OpenProject records the attachment metadata in PostgreSQL and then hands the file bytes to the S3-compatible bucket, so the file does not pass through the application for the bulk of the transfer. Check that the browser can reach the storage endpoint, that the bucket's CORS settings allow uploads from your OpenProject host name, and that a lifecycle rule removes staged uploads that never get attached to a work package.

Browser uploads go straight to the bucket, while metadata stays in PostgreSQL inside the cluster.

Choosing an S3-compatible store that is still maintained

Before you point OpenProject's fog configuration at a bucket, confirm that the S3-compatible store behind it is still maintained, because the most common community choice has changed status. The MinIO community repositories, minio/minio, minio/operator and minio/mc, are archived and read-only according to GitHub's repository metadata. The minio/minio README states that the repository is no longer maintained and that the community edition is distributed as source code only, with no further pre-compiled binary releases and no updates for legacy binaries. The last tagged community release is RELEASE.2025-10-15T17-29-55Z, published on October 16, 2025. A deployment built on that release will not receive security fixes from the project unless someone in your organization or a partner maintains a fork.

The same README points to two commercial alternatives from the vendor: AIStor Free, a standalone edition under a free license, and AIStor Enterprise, a distributed edition with commercial support. The community server is licensed under the GNU AGPL v3.0, and the README says any commercial or proprietary use must be validated against AGPLv3 obligations. Ask your legal or licensing team to review how your use of the store, including any modifications and network-facing access, fits those obligations before you build on it. Support for the community software is best effort through GitHub and Slack, and SLA-backed support is available only through AIStor. Confirm the exact license terms and support scope of AIStor Free and AIStor Enterprise with the vendor, since those terms are not set out in the sources used here.

Treat this as a selection exercise rather than a single answer. Other S3-compatible stores, including ones your cloud provider or data center platform already runs, may fit your support model better. For each candidate, check that it supports the S3 API calls the fog configuration uses, that its maintainers publish security fixes on a schedule you can plan around, that its license permits your intended use, and that you have a named support path. Verify the choice with a test upload, a direct browser upload and a restore from your chosen backup method before migrating existing attachments into it.

Security and access controls for attachment buckets

Moving attachments to object storage moves a sensitive data store out of the OpenProject host and into a bucket that other systems can reach. The cards below cover the controls that decide who can read, write and delete those files, and what evidence you can show afterward. Each one names a decision to make and a setting to confirm in your own store, because the controls differ between AWS S3, Ceph and MinIO-compatible stores.

Scope bucket policies to OpenProject

Grant the OpenProject identity only the object actions it uses, on the attachment bucket and its prefix, and nothing else. Keep administrative rights, bucket policy changes and key management with a separate operator group. Review any wildcard principals or public access settings, since a broad policy can expose every attachment regardless of OpenProject's own permission model. Confirm the exact action set with your store's documentation and test it against a non-production bucket before cutover.

Advanced configuration docs

Choose IAM roles or static keys

On EKS, the Helm chart can use IAM roles for service accounts through s3.useIamProfile, which avoids storing long-lived access keys in a Kubernetes secret. Outside EKS, or with stores that lack a workload identity mechanism, OpenProject reads keys from a secret. Decide which model applies before go-live, record who owns each credential, and confirm that your store issues short-lived credentials for the chosen path.

Helm chart docs

Confirm encryption at rest and in transit

Encryption depends on the store you run, not on OpenProject's fog configuration alone. Ask whether the bucket enforces TLS for every request, whether server-side encryption is on by default, and which key system holds the keys (provider-managed, customer-managed or your own KMS). For self-hosted stores, confirm certificate handling, since OpenProject's outbound calls may need your internal root CA. Record the answers as evidence for your security review.

Control direct-upload exposure

With direct uploads enabled by default for fog, browsers send files straight to the bucket, so the bucket endpoint and the signing path must be reachable from user networks. Review which origins can reach the bucket, how presigned requests are scoped and how long they last. Test that a presigned URL for one upload cannot be reused to read or overwrite other objects in the bucket.

Expire staged objects with lifecycle rules

Direct uploads can leave staged objects behind when a user abandons a form or a request fails. The docs say a bucket lifecycle rule can clean these staged uploads, so set one on the staging prefix and keep it separate from the rule for finished attachments. Confirm the expiry window with your data owner, and test that a deleted attachment in OpenProject does not leave its object behind when the bucket keeps versions.

Enable access logging and rotation

Turn on server access or audit logging for the attachment bucket so reads, writes and deletes can be traced to a principal, and send those logs to a store your security team controls. Set a rotation schedule for any static keys and document how a leaked key is revoked without taking OpenProject offline. Confirm log retention with your compliance owner and check that logs do not contain file contents or presigned URLs.

Questions teams ask before moving attachments to S3

What does it cost to move OpenProject attachments to S3-compatible storage?

The software itself has no license fee in the Community edition, so cost comes from the work and the storage. Expect one-time costs for planning, configuration, validation and the copy of existing files, plus recurring costs for the bucket, the storage capacity, request traffic, backups and the team that runs it. Cost rises with the store you choose, the volume of attachments, the number of environments (production, staging, test) and how much validation you require before cutover. Ask any quote to split one-time work from recurring operations, to list the environments in scope and to state which store it assumes.

How long does an attachment migration to S3 take?

Duration depends on the size of the existing attachment store, the number of environments, how many integrations or proxy settings must be checked, and how long your team needs to approve test results. The copy itself runs through the rake task attachments:copy_to[fog], so the data volume and network path between the server and the store set the run time for that step. Ask for a timeline that separates configuration, test migration, the production copy and the cutover window, and confirm what happens if a test run exposes a problem.

What must our team provide before the migration starts?

Plan to provide a bucket or equivalent container in the target store, credentials or an IAM role with the access the application needs, DNS or host names for the endpoint, a representative set of test data and an approver for the cutover. On EKS, the Helm chart can use IAM roles for service accounts through s3.useIamProfile, which means the role must be created and attached to the right service account. Confirm each item in writing before work begins so the schedule does not depend on access requests.

Can our own team move OpenProject attachments to S3 without a partner?

Yes, if your team has administrative access to the OpenProject installation, the target store and the network path between them, and can test the result. The configuration is documented for fog-based storage, direct uploads and the copy task. The work becomes harder when several environments, a Kubernetes deployment, a custom proxy or a backup policy must change together. Decide whether your team can carry validation and rollback, because those steps determine whether the change is safe to run in production.

How do we move existing attachments that are already on local disk?

Set the fog configuration first so OpenProject knows where new files go, then run the rake task attachments:copy_to[fog] to copy existing attachments into the store. Run the copy against a test environment with a realistic data set, compare file counts and sample downloads, and only then repeat it in production during an agreed window. Keep the local copies until you have verified the result and your backups reflect the new location, because removing them early leaves no fallback.

What changes for backups and restores when attachments live in S3?

Backups must now cover two places: the database, which holds attachment metadata, and the bucket, which holds the files. A restore that brings back only one of them can leave records pointing at missing files or files with no record. Confirm your backup tool can capture the bucket, whether the store keeps versions or replicas, and how long staged direct uploads remain before a bucket lifecycle rule removes them. Ask for a tested restore procedure that covers both sources.

What security settings should we review for S3 attachment storage?

Review how credentials reach the application, whether keys sit in a Kubernetes secret or come from an IAM role, the bucket policy and whether it blocks public access, encryption at rest and in transit, and who can read or delete objects. Direct browser uploads send files straight to the store, so check the cross-origin settings and the network path that browsers use. Confirm which store you are using, because MinIO's community server is distributed as source only and receives no updates for legacy binaries, while AIStor offers commercial support.

How DeployOpen works on this

DeployOpen plans and implements self-hosted OpenProject inside your own cloud accounts, data centers or air-gapped networks. For attachment storage, we scope the bucket, identity model and upload path first, then build, test and document the change so your team can review and operate it.

How we scope

  • Written scope lists the OpenProject version, the S3 or compatible store, and the buckets in use.
  • Scope records whether access uses stored keys, a secret, or IAM roles for service accounts on EKS.
  • Scope states whether direct browser uploads stay enabled and how staged uploads will be cleaned up.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we build

  • We configure fog for your storage target and test attachment upload, download and deletion end to end.
  • We plan the copy of existing attachments with the rake task and verify file counts and checksums afterward.
  • We confirm the bucket lifecycle rule for staged uploads and check that proxy body size limits allow uploads.
  • We review the chosen S3-compatible product's license and support terms before it goes into production.

How we hand over

  • Handover includes configuration records, the bucket policy, and the IAM or key rotation procedure.
  • We document the backup approach covering both the database and the object store, with a tested restore procedure.
  • Your team receives a runbook for adding storage capacity, rotating credentials and troubleshooting failed uploads.
  • Your security and compliance staff receive the evidence they need to review the storage setup.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Retainers can cover OpenProject upgrades, so storage settings are rechecked against each new release.
  • Support can include periodic restore tests to confirm that database and object storage backups still match.
  • Ask us to confirm any storage or backup detail that your own environment or vendor documentation sets.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.