The project Files tab is a straightforward file manager over a private bucket. It’s the right home for artifacts a build shouldn’t contain: things that change at runtime, are too large to commit, or are produced by the app itself.
Managing files
Open the Files tab on a project to upload a file, download it again, or delete it. The list shows each object’s key, size, and last modified time. Individual uploads are capped by plan, and total bucket usage counts against your plan’s storage quota — Plans & limits has the numbers. When usage reaches the cap, uploads pause until you free space or upgrade, rather than failing unpredictably.
Deleted files and older versions
Deleting a file, or uploading over it, does not destroy the old bytes at once. The Deleted tab on the Files page lists deleted files and files that have older versions, with the date each will be purged. Restore brings a deleted file back (without using extra space), Versions lets you restore an older version of an overwritten file, and Delete forever or Empty deleted removes them immediately and frees the space.
They are kept for 30 days by default. Change it per project on the Deleted tab (1 to 365 days); it is never shorter than the project’s longest database backup or point-in-time window, so a database restored to any retained moment still finds its files. Kept versions count toward your storage, and the meter shows them as their own segment. This applies to files your own code writes with the S3 credentials too. Restoring and purging are recorded in the audit log.
Encryption at rest
Turn on Encrypt files at rest on the Files page and every file uploaded from then on is stored encrypted (AES-256, with a key Canner holds). It covers all your projects, including ones created later, reads and downloads work as before, and nothing changes in your code. Files already stored are not rewritten, and older versions of a file keep the form they were saved in until they expire. Backups and off-site copies are encrypted either way. You can turn it off again; encrypted files stay encrypted.
Virus scan
Every file in your storage is scanned with ClamAV. A file uploaded from the dashboard or the API is scanned before it is stored, and one that matches is refused. A file your own app writes with its storage credentials is scanned within seconds of landing: if it matches, that version is removed from your storage, a copy is kept for 7 days in quarantine, and your organization’s admins get an email (one per hour at most). An older, clean version of the same file becomes the current one again. If it was a false alarm, reply to the email within the 7 days and we put it back.
- Files up to 1 GB are scanned. Change the limit with Virus scan up to on the Files page: 128 MB, 512 MB, 1 GB, or All, which scans everything up to 4 GB, ClamAV’s own ceiling. A larger file is stored unscanned.
- If the scanner is down, a file is stored and scanned when it is back, for up to a few minutes of retries; after that it stays unscanned.
- The scan cannot read what it cannot open: an encrypted ZIP or a password-protected PDF is scanned as the opaque file it is.
Checking that a file passed
A file that passes gets object tags, a few seconds after it is stored (longer for a large file or a busy queue). Your storage key can read them with GetObjectTagging:
canner-scan:cleancanner-scan-db: the ClamAV signature database versioncanner-scan-at: when it was scanned (UTC)
No tag means not verified: not scanned yet, over the size limit, or the scanner was unavailable. Tags belong to one version, so an overwritten file is untagged until it is scanned. These three tags are Canner’s: your key cannot add them to a stored file, and one sent with an upload is refused, or removed when the file is scanned.
Backing up your files
The Backups tab on the Files page works like database backups: turn on a schedule (how often, how long to keep them, how many) or press Back up now. A file backup lists every file in the project with the version of each, its size and its sha256, and keeps those versions from being purged while the backup exists. Nothing is copied, so a backup adds no storage; the versions it holds show in the meter as their own segment.
Restore puts a version back under the file’s own name, so a reference to the file in your database (its key) keeps working, with no need to restore the database at the same moment. Choose to put back what is missing or changed (nothing is deleted; files made since stay), to restore exactly as of the backup (files made since move to Deleted, where they can be restored), or to copy everything into a _restored folder to look first. Compare with now shows what is missing, changed and added since. Backups are verified on a schedule by reading a sample of the files back and checking each against its sha256; Verify all files reads every one.
Files manifest (.json) downloads the list (key, version, size, sha256, no content), so you can compare it with the file references in your own database. Deleted files are kept at least as long as your longest database backup, so a database restored to any retained moment still finds its files. To remove a file for good, including from backups, use Delete forever in Deleted and choose Also erase from backups; otherwise a version a backup holds is kept until the backup expires. A backup is stored on the same server as the files, so it protects against deletion and overwrites, not against losing the server.
All of this is also available from the terminal and to agents. With the CLI: canner files put, get, ls, rm, deleted and restore for the files, and canner files backup, backups (with --compare, --verify, --restore, --manifest and --offsite) and backup-policy for backups. Over MCP an agent can list files and backups, take, compare and verify a backup, copy one into a _restored folder and bring deleted files back; restoring over live files, deleting and purging stay in the dashboard and the CLI. A token needs the storage:read scope to read and storage:write to change anything.
For a copy that survives the loss of this server, choose an off-site destination (one of your own S3-compatible buckets, the same ones database backups can use) under Copy off-site to. Each backup is also copied there, encrypted (AES-256-GCM) with a key Canner holds for that bucket and project: each distinct file is stored once, and the manifest that maps file names to content is encrypted too, so the bucket alone reveals neither your files nor their names. Restoring from it goes through Canner. Only content the bucket does not hold yet is uploaded, deleting a backup removes its manifest and any file no other backup needs, and if a file is ever missing here a restore (and a verification) uses the off-site copy.
Private by default
The bucket is private — objects aren’t served on a public URL just because they exist. Files are stored in a Canadian-owned, S3-compatible object store (MinIO), so data residency matches the rest of your app. Keep anything sensitive here rather than in your repository or build output.
Connecting from your own runtime
This is for your app’s server code running on Canner. The bucket’s endpoint sits on the same host your project runs on, so these credentials work from your deployed app’s runtime — not from your laptop, your CI, or any machine outside Canner. There is no public endpoint to point an external S3 client at.
Your app’s own server code connects to the bucket directly — real, S3-compatible credentials, not just the dashboard file manager. Open the Files tab and create a credential under API access. Creating it reveals a ready-to-paste block of environment variables — endpoint, bucket, region, access key ID, and the secret access key — shown once. Add them to your project’s environment variables (they are not injected automatically), then read them as below. The secret cannot be retrieved again — if you lose it, rotate the credential for a new one.
Every credential is scoped to your project only, enforced by MinIO’s own access policy, not just a client-side convention — it cannot list, read, write, or delete objects belonging to any other project, including other projects in your own organization. Object keys must start with your project’s slug; the credential’s policy rejects anything outside that prefix.
import { S3Client, PutObjectCommand, GetObjectCommand } from '@aws-sdk/client-s3';
const s3 = new S3Client({
endpoint: process.env.CANNER_STORAGE_ENDPOINT,
region: process.env.CANNER_STORAGE_REGION,
credentials: {
accessKeyId: process.env.CANNER_STORAGE_ACCESS_KEY_ID,
secretAccessKey: process.env.CANNER_STORAGE_SECRET_ACCESS_KEY,
},
forcePathStyle: true, // MinIO uses path-style addressing, not virtual-hosted-style
});
const bucket = process.env.CANNER_STORAGE_BUCKET;
// Keys must start with your project's slug — that's the prefix your
// credential is scoped to. A key outside it is rejected, not just hidden.
const key = `your-project/certificates/${userId}.pdf`;
await s3.send(new PutObjectCommand({
Bucket: bucket,
Key: key,
Body: pdfBuffer,
ContentType: 'application/pdf',
}));
// Serving it back: the endpoint is only reachable from your app, so a
// browser downloads the file through one of your routes (check the user
// first), not from a presigned URL.
const obj = await s3.send(new GetObjectCommand({ Bucket: bucket, Key: key }));
res.setHeader('Content-Type', obj.ContentType ?? 'application/octet-stream');
obj.Body.pipe(res);To let a browser download a private file, serve it through a route in your app, as above: check that the user may see it, then stream the object. Presigned URLs made with these credentials point at the internal endpoint, so a browser cannot open them. Uploads work the same way: the browser sends the file to your app, which writes it to the bucket.
Path-style, not virtual-hosted-style: set forcePathStyle: true on your S3 client, or the equivalent option for the SDK you’re using. The connection itself is plain HTTP — it never leaves the host your app runs on, so there’s no public network hop to secure with TLS.
Check that storage is reachable with a list, not HeadBucket: HeadBucket asks about the whole bucket, which your credential is deliberately not allowed to do (the bucket holds your organization’s other projects too), so it answers 403 AccessDenied. Use ListObjectsV2 with Prefix: "your-project-slug/" and MaxKeys: 1 instead; that is allowed and proves the endpoint, the bucket name and the credential are all right. A 400 from a bucket call usually means the bucket name was mistyped: copy it from the credential panel.
Revoke or rotate a credential any time from the same panel — a rotated credential’s old secret stops working immediately, and a revoked one is rejected on its very next request.
Apps that write at the bucket root (Rails Active Storage)
Some libraries name their objects themselves and put them at the root of the bucket, with no way to add a folder in front. Rails Active Storage is the common one. The shared bucket can’t hold those, so turn on Own bucket in the credentials panel: the project then gets a bucket of its own, and its credentials can use all of it. It works like the shared one: versioned, the same retention and backups, counted in your organization’s storage, and listed in the Files tab.
Switch while the project has no files and no credentials (purge any deleted files too), then create a credential, add its values under Environment and point Active Storage at it:
# config/storage.yml canner: service: S3 endpoint: <%= ENV["CANNER_STORAGE_ENDPOINT"] %> bucket: <%= ENV["CANNER_STORAGE_BUCKET"] %> region: <%= ENV["CANNER_STORAGE_REGION"] %> access_key_id: <%= ENV["CANNER_STORAGE_ACCESS_KEY_ID"] %> secret_access_key: <%= ENV["CANNER_STORAGE_SECRET_ACCESS_KEY"] %> force_path_style: true # config/environments/production.rb config.active_storage.service = :canner
The build log says when a Rails app uses an S3 service for Active Storage and the project has no bucket of its own yet. Deleting the project deletes its bucket.
What belongs here vs. in your build
- Object storage: user-uploaded images, generated PDFs and CSVs, backups, anything created or changed after deploy.
- Your build: static assets that are part of the app itself (logos, bundled JS/CSS) — ship those in the deploy, not the bucket.
- Structured records: use a Postgres database for rows you query, not files in a bucket.