Home › Docs › CDPStorage – Overview

Docs

CDPStorage – Overview

CDPStorage is the S3-compatible object storage of CDPShare.
Programs, scripts and backup tools store and fetch files over the S3 API with access keys, while the same files are also visible in the CDPDrive web interface and can be delivered through CDPCDN.
On this page, <STORAGE_HOST>, <DRIVE_HOST> and <CDN_HOST> stand for the addresses of your own installation, for example storage.example.com, drive.example.com and cdn.example.com.

What CDPStorage is

CDPStorage is the Storage module of one self-written application that also contains CDPDrive (web interface and sharing) and CDPCDN (delivery and image sizes).
All three modules share the same projects, files, users and storage nodes.
CDPStorage is the part that speaks the S3 protocol: every project is a bucket, every file is an object, and every request is authenticated with Signature Version 4.

The endpoint is always https://<STORAGE_HOST> on port 443.
Buckets are addressed path-style (https://<STORAGE_HOST>/<BUCKET>/<path>).
Any region string is accepted;
the installation reports eu-fra as the bucket location.

Place under CDPShare

CDPShare is the umbrella label for the three products at cdpshare.com:

  • CDPStorage – S3 API for programs and servers (this product).
  • CDPDrive – web interface with file browser, preview and share links.
  • CDPCDN – public delivery of files and automatically built image sizes.

Each module can be switched on or off separately by the administrator.
If the Storage module is off, the S3 endpoint answers with HTTP 503;
the stored data is kept.

Main functions

  • Bucket operations: list, create, delete, check (HEAD) and location query.
  • Object operations: upload, download with byte ranges and conditional requests, metadata query, delete, batch delete of up to 1000 keys, server-side copy.
  • Multipart uploads for large files, including listing of parts and open uploads.
  • Listing in version 1 and version 2 with prefix, delimiter, max-keys, continuation token and start-after.
  • Presigned URLs (query authentication) valid for 1 second up to 7 days.
  • Access keys with rights (read, write, delete), scope per project or prefix, optional bucket creation, expiry and IP allow list.
  • Storage on several nodes with replication, deduplication and encryption at rest.
  • Deleted objects go to the trash of the project and can be restored in CDPDrive.

Limits and defaults

The values below are the defaults of the installation.
Administrators can change most of them under Settings.

ItemValue
Maximum size per upload request5120 MB (setting max_object_mb, web server limit 5120 MB)
Copies per file2 (setting replica_count, per project 1–9)
Trash retention30 days (setting trash_days)
Quota per projectoptional, in MB (project setting, empty = no quota)
Multipart parts1 to 10000 parts, each at least 5 MB except the last
Keys per list responseat most 1000
Keys per batch deleteat most 1000
Object key lengthup to 1024 bytes
Bucket name3–63 characters: lower-case letters, digits, dots, hyphens
Presigned URL validity1 to 604800 seconds (7 days)
Allowed clock difference±15 minutes
Request rate (reference web server setup)120 requests per second per IP, burst 200, then HTTP 429

How it relates to CDPDrive and CDPCDN

A project created in CDPDrive is immediately a bucket in CDPStorage and a zone in CDPCDN.
A file uploaded over S3 appears in the CDPDrive file browser, can be shared with a link and –
if CDN delivery is enabled for the project –
is reachable at https://<CDN_HOST>/<BUCKET>/<path>.
For raster images uploaded over S3, the image sizes for the CDN are built in the background.
The other way round, a file uploaded in the web interface can be read over S3 with a suitable key.

Objects on the S3 endpoint are never public: every request needs a valid signature.
Public delivery is the job of CDPCDN, personal sharing the job of CDPDrive share links.