How do I give read-only access to my storage bucket?

A read-only key lets a person or tool list and download files from your storage bucket. It can't upload, change or delete anything. You can have up to 3 at a time, and they don't affect your main key.

Downloads made with a read-only key count toward your plan's monthly transfer allowance.

Create a key

  1. Go to Services and open your storage service.
  2. Under Read-only keys, add a label if you like and press Create read-only key.
  3. Copy the access key ID and secret access key somewhere safe, then press I've saved it.

The secret is shown only once. If you lose it, revoke the key and create a new one.

Revoke a key

Press Revoke next to the key and confirm. It can take a minute or two to stop working everywhere. Rotating your main key doesn't change read-only keys, so revoke them separately if you need to.

Use it with rclone

Add this to your rclone config, using the endpoint and bucket name from your storage page:

[sable-readonly]
type = s3
provider = Other
access_key_id = YOUR_ACCESS_KEY_ID
secret_access_key = YOUR_SECRET_ACCESS_KEY
endpoint = YOUR_ENDPOINT
no_check_bucket = true

Then use your bucket name in each command. Listing all buckets with rclone lsd won't work with this key, and that's expected.

rclone lsf sable-readonly:YOUR_BUCKET
rclone copy sable-readonly:YOUR_BUCKET/folder ./local-folder

Use it with restic

restic normally writes a lock file, which a read-only key can't do, so add --no-lock to every command:

export AWS_ACCESS_KEY_ID=YOUR_ACCESS_KEY_ID
export AWS_SECRET_ACCESS_KEY=YOUR_SECRET_ACCESS_KEY
export RESTIC_REPOSITORY=s3:YOUR_ENDPOINT/YOUR_BUCKET/your-repo

restic --no-lock snapshots
restic --no-lock ls latest
restic --no-lock restore latest --target ./restored
restic --no-lock check

Commands that change the repository, such as backup and prune, need your main key. If a backup or prune is running at the same time, a read can give errors. Try again once it has finished.

Keep a second copy of a restic repository

Copy the repository folder to your own computer with rclone, then check it with restic using the same repository password:

rclone copy sable-readonly:YOUR_BUCKET/your-repo ./repo-copy
restic -r ./repo-copy snapshots
restic -r ./repo-copy check

Run the copy when no backup is running, so it captures a complete state.

If your service is suspended or cancelled

While a service is suspended, its access keys stop working and read-only keys are removed. When it's active again, your storage page shows a new main key. Update anything that connects with it, create any read-only keys again, and if the storage is attached to a VPS, detach it and attach it again.

If you cancel a service, you can still download during the grace period (7 days, or 24 hours for cancellations from December 8, 2026) using the key on your storage page, and your read-only keys keep working, but you can't upload.

Was this helpful?
Back to Knowledge Base