S3 Storage for Documenten API

By default, Open Zaak stores the contents (inhoud) of documents (EnkelvoudigInformatieObject in the API) on disk. In addition, Open Zaak also supports S3 Storage.

Note

S3 Storage is a standard supported by multiple storage systems:

  • AWS S3

  • Backblaze B2

  • Cloudflare R2

  • Digital Ocean

  • Oracle Cloud

  • Scaleway

Configuration

Warning

When switching from filesystem storage to S3 Storage for an Open Zaak instance that already contains documents, the existing documents must be migrated to the new storage manually, as Open Zaak currently does not provide an automatic migration feature.

In order to use S3 Storage, several environment variables must be configured:

Authentication Settings:

  1. S3_ACCESS_KEY_ID: Access key ID used to authenticate with S3 storage.

  2. S3_SECRET_ACCESS_KEY: Secret access key used together with S3_ACCESS_KEY_ID to authenticate to S3 storage.

For more information, please refer to the documentation of the S3-compatible system for authentication configuration: django-storages S3-compatible systems.

Storage Settings:

  1. S3_STORAGE_BUCKET_NAME: The name of the S3 bucket that will host the files.

  2. S3_LOCATION: A path prefix that will be prepended to all uploads.

Additional Information

When this integration is configured, the inhoud of documents will be stored on S3. However, the following files are still stored on the local filesystem:

  • inhoud of bestandsdelen: temporary parts of files that are stored locally until merged into a single large file; temporary files are then deleted.

  • Metadata and report files for bulk imports (see Importing documents in bulk).