Back

Blog details

Public vs Private Buckets and What Sharing One Exposes

AIOZ Network
7 min readNovember 10, 2026
aioz-storage
AIOZ Storage: Public vs Private Buckets, What Sharing One Exposes

Public vs private bucket comes down to who can read your files: a public bucket serves objects to anyone with the URL, while a private bucket answers only signed requests. Every new AIOZ Storage bucket starts private, the same default Amazon S3 uses.

TL;DR:

  • A public bucket gives anonymous read access to its objects; a private bucket needs a signature from valid keys, or a presigned link, for every request.
  • AWS, Google Cloud and AIOZ Storage create buckets private by default, because buckets opened by mistake still cause data leaks.
  • To share one file for a short time, a presigned URL or a short-lived access grant exposes far less than a public bucket.
  • On AIOZ Storage you switch a bucket to Public from its action menu with your passphrase, get a bucket URL and a bucket path, and can switch back to Private at any time.

What Is the Difference Between a Public and a Private Bucket?

A bucket is the container that holds your objects, and its access setting decides whether a request has to prove who sent it. In a private bucket, every read carries a signature made with an access key and a secret key, and the server checks it before returning a single byte.

A public bucket skips that check for reads, so a browser, a curl command or a crawler can fetch an object with no keys at all. Supabase describes its public buckets the same way: anyone who has the asset URL can access the file.

Private bucketPublic bucket
Who can readHolders of valid credentials or a presigned linkAnyone who knows the URL
How a read is authorisedA signature checked on every requestNo check for reads
Typical contentBackups, user uploads, invoices, datasetsWebsite assets, product images, public downloads
Who pays for downloadsYouYou, for every visitor

The last row is easy to forget, since the provider bills every download from a public bucket to the bucket owner.

What a Public Bucket Opens Up, and What It Doesn't

"Public" is not one standard setting across providers, so read your provider's definition before you flip it. In Supabase, a public bucket opens reads only, while uploads, deletes, moves and copies still pass through access control.

In Amazon S3, public access is whatever a bucket policy or ACL grants to anonymous users, which can include listing or, with a careless policy, even writes. AWS's security guidance says to keep a bucket non-public unless you explicitly need anyone on the internet to read or write to it.

Anonymous listing raises the risk further. With reads alone, a visitor needs the exact key of each file, but with listing open the same visitor can see every key in the bucket, including files you never linked. Our guide to bucket policies, IAM policies and ACLs shows how AWS separates those permissions.

Public reads also cost money, because every anonymous download is bandwidth on your bill. Our explainer on egress fees walks through how download charges add up.

Why Are Buckets Private by Default?

Buckets start private because accidental public buckets keep leaking data. The UK's National Cyber Security Centre wrote that it seems every month brings news of a leak from an improperly secured S3 bucket. In each case, someone made the bucket public or opened it to any authenticated AWS user.

The NCSC also points out that S3 buckets can only be accessed by their owner by default. A leak therefore means someone changed that setting, which is why providers now add guardrails on top of the private default:

  • Amazon S3: new buckets and objects don't allow public access, and the four S3 Block Public Access settings (BlockPublicAcls, IgnorePublicAcls, BlockPublicPolicy, RestrictPublicBuckets) override any policy or ACL that tries to open them.
  • Google Cloud Storage: with public access prevention enforced, requests authorised through allUsers or allAuthenticatedUsers fail with a 401 or 403. Signed URLs keep working, because they carry scoped permissions.

So treat Public as an exception you switch on for one bucket, and keep only content in it that you would happily post on a website.

Public Bucket, Presigned URL or Access Grant: Which Should You Use?

Most sharing needs are smaller than "the whole bucket, forever", so pick the option that opens the least for the shortest time. The diagram compares the three ways to share files from an AIOZ Storage bucket, the sharing layer of object storage security.

Diagram comparing three ways to share files from an AIOZ Storage bucket: public bucket, presigned URL and access grant, by who can read, what each covers, how it ends and what it suits
  • Public bucket: right for website images, product photos and open downloads. Anyone with the bucket URL reads everything in it until you switch it back to Private.
  • Presigned URL: right for one invoice or one browser upload. The link covers a single object and a single operation (get_object or put_object) and stops working when its expiry passes; on AWS, a link signed with IAM user keys lasts at most 7 days. Our presigned URL guide for AIOZ Storage covers both directions in Python.
  • Access grant: right for a partner, a script or a teammate who needs repeated access, scoped to one bucket with Read, Write, List or Delete and an end date. Our post on macaroons and access grants explains how that scoping works underneath.

To serve a whole site rather than loose files, there is a fourth option, static website hosting, covered in the AIOZ section below.

Check These Before You Make a Bucket Public

  1. Put publishable files in their own bucket. AIOZ Storage allows 100 buckets per account, so a dedicated public bucket costs you nothing extra.
  2. Search the bucket for .env files, database dumps, logs and old backups before anything goes public.
  3. Estimate download traffic, because you pay for every visitor's download, including bots and hotlinking sites.
  4. Name who switches the bucket back to Private, and when.
  5. Remember that making a bucket private again stops new reads but cannot recall files people already downloaded.

How AIOZ Storage Handles Public and Private Buckets

We keep every bucket private by default, and the Manage Buckets tutorial documents a two-way switch. Open the Bucket page, open the action menu, choose Public, enter your passphrase and click Submit. The bucket then gives you two links, a bucket URL and a bucket path, and choosing Private and confirming closes it again.

The passphrase step exists because AIOZ never stores bucket passphrases, as our encryption explainer describes. The dashboard guide to renaming, moving and deleting files lists the other bucket actions in the same menu.

For a full website, static website hosting is a separate feature: you enable it per bucket, set index and error documents, and visitors reach https://<bucket>.sites.aiozstorage.app. Bucket names should not contain dots, because SSL certificates can't be issued for them, and our static website hosting setup guide covers the rest.

For private files, the docs' file manager tutorial generates presigned download URLs with boto3 and sets the expiry to 600 seconds. It warns that a link which lasts too long is no longer secure, and here is the same call as a standalone client:

import boto3
from botocore.config import Config

s3 = boto3.client(
    "s3",
    endpoint_url="https://s3.aiozstorage.network",
    region_name="us-east-1",
    aws_access_key_id="YOUR_ACCESS_KEY",
    aws_secret_access_key="YOUR_SECRET_KEY",
    config=Config(
        request_checksum_calculation="when_required",
        response_checksum_validation="when_required",
        s3={"addressing_style": "path"},
    ),
)

url = s3.generate_presigned_url(
    "get_object",
    Params={"Bucket": "my-bucket", "Key": "reports/q3.pdf"},
    ExpiresIn=600,  # 10 minutes, the value in AIOZ's file manager tutorial
)
print(url)

Keep both settings in the config, because bucket subdomains like my-bucket.s3.aiozstorage.network have no DNS record and only path-style links resolve. The checksum setting protects uploads from the same client, since the endpoint rejects the chunked uploads that current AWS SDKs send by default (checked Oct 19, 2026). We haven't run this snippet with real keys, because no credentials were available for this post.

What the docs don't cover yet:

  • The format of the bucket URL and the bucket path.
  • Whether a public bucket also allows anonymous listing.
  • How the passphrase you enter is used once the bucket is public.
  • The longest expiry AIOZ Storage accepts for a presigned URL.

Next step: follow the Manage Buckets tutorial in the AIOZ Storage docs to switch a bucket between Public and Private.

Frequently Asked Questions

Is it safe to make an S3 bucket public?
It is safe only for files you would publish anyway, such as website assets, and only after you check the bucket for secrets and backups.

Can anyone upload files to a public bucket?
That depends on the provider: Supabase keeps uploads under access control, while an S3 bucket policy can grant anonymous writes if someone writes it that way.

How do I make an AIOZ Storage bucket private again?
Open the bucket's action menu, choose Private and confirm, as the Manage Buckets tutorial describes.

What is the difference between a public bucket and static website hosting on AIOZ Storage?
Public exposes the bucket's files through a bucket URL and path, while static website hosting serves them as a site with an index document and error pages.

Do downloads from a public bucket cost money on AIOZ Storage?
The billing docs charge 0.005 USD per GB downloaded and do not list any exemption for public traffic, so plan for it.

References

We only send updates when meaningful changes ship, and you can unsubscribe anytime

Related Content

blog thumbnail

Full vs Incremental vs Differential Backup Types Explained

Full vs incremental vs differential backup: what each run copies, how restore chains work, storage and time trade-offs, synthetic fulls and RPO/RTO fit.

aioz-storage
8 min readDecember 04, 2026
blog thumbnail

RAID vs Erasure Coding: Two Ways to Survive Disk Failure

RAID vs erasure coding: RAID guards the disks of one array, while erasure coding spreads k data and m parity pieces over nodes. Compare overhead and rebuilds.

aioz-storage
9 min readDecember 01, 2026
blog thumbnail

What Is Reed-Solomon Coding? The Math Behind Erasure Codes

Reed-Solomon coding turns k data pieces into n, and any k of them rebuild the original. See the polynomial math, GF(2^8), a demo and how AIOZ Storage uses it.

aioz-storage
7 min readNovember 27, 2026
blog thumbnail

RPO vs RTO Explained, With Backup and Restore Examples

RPO vs RTO: RPO caps how much data you can lose, RTO caps how long you can stay down. See how to calculate both, MTD, and the DR strategies that meet them.

aioz-storage
7 min readNovember 24, 2026
blog thumbnail

What Is AWS Signature Version 4? How S3 Requests Are Signed

AWS Signature Version 4 signs each S3 request with an HMAC key derived from your secret. See the four steps, a worked example and the errors that break it.

aioz-storage
7 min readNovember 20, 2026
blog thumbnail

Encryption at Rest vs in Transit, and What Each Protects

Encryption at rest vs in transit: at rest guards stored bytes from stolen disks, in transit guards requests on the network with TLS. See what each one misses.

aioz-storage
7 min readNovember 17, 2026