Skip to main content

Storage

The Storage category configures where Hawkra stores uploaded files such as report attachments, evidence screenshots, and other workspace file uploads. You can choose between local disk storage (the default) or S3-compatible object storage for scalability and external backups.

Storage configuration panel

Settings Reference

SettingKeyTypeDefaultDescription
Storage Backendstorage_backendDropdownlocallocal stores files in the file_storage Docker volume. s3 stores files in an S3-compatible bucket.
S3 Bucket Namestorage_s3_bucketStringEmptyName of the S3 bucket. Must already exist.
S3 Regionstorage_s3_regionStringEmptyAWS region of the bucket (e.g., us-east-1, eu-west-1)
S3 Endpoint URLstorage_s3_endpointStringEmptyCustom endpoint for S3-compatible services. Leave empty for AWS S3.
AWS Access Key IDaws_access_key_idStringEmptyAccess key for S3 authentication
AWS Secret Access Keyaws_secret_access_keyStringEmptySecret key paired with the access key ID

Local Storage

Files are stored in the file_storage Docker volume (path configurable via STORAGE_LOCAL_PATH, defaults to ./data/files). No additional configuration required.

S3 Storage Setup

Set Storage Backend to s3 and configure the S3 settings above. For S3-compatible providers, set the S3 Endpoint URL accordingly:

ProviderEndpoint FormatDocs
AWS S3Leave empty (uses default)docs.aws.amazon.com/s3
MinIOhttp://minio:9000min.io/docs
DigitalOcean Spaceshttps://<region>.digitaloceanspaces.comdocs.digitalocean.com/products/spaces
Backblaze B2https://s3.<region>.backblazeb2.combackblaze.com/docs/cloud-storage

Example IAM Policy (AWS)

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:DeleteObject",
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::hawkra-files",
"arn:aws:s3:::hawkra-files/*"
]
}
]
}

Configuration via Environment Variables

SettingEnvironment Variable
Storage BackendSTORAGE_BACKEND
S3 Bucket NameSTORAGE_S3_BUCKET
S3 RegionSTORAGE_S3_REGION
S3 Endpoint URLSTORAGE_S3_ENDPOINT
AWS Access Key IDAWS_ACCESS_KEY_ID
AWS Secret Access KeyAWS_SECRET_ACCESS_KEY
caution

Switching the storage backend from local to s3 (or vice versa) does not migrate existing files. Files uploaded under the previous backend remain in their original location. Only new uploads use the new backend. If you need to migrate existing files, you must copy them manually between storage locations.