Visibility

Each object has exactly one visibility: public, unlisted or private. It decides whether anonymous visitors can see the file in the index and download it from its URL. API keys, signed links and signed-in browsers (within the key's prefix) can always read objects of any visibility.

The three levels

HTML indexDirect URLAPI with keySigned link
publiclisted200yesyes
unlistedhidden200 + noindexyesyes
privatehidden404yesyes

public

Published content. Public files appear in the directory index, and directories exist in the index only while they contain at least one public file. Anyone can download them.

unlisted

Served to anyone who has the URL but never listed, and marked X-Robots-Tag: noindex, nofollow so search engines leave it alone. A directory containing only unlisted files has no index page. Useful for files you share by link that may safely be public.

Unlisted is not access controlURLs leak — through chat previews, browser history, referrers and forwarded messages — and short names can be guessed. If a file must stay confidential, make it private and use a signed link.

private

Only readable with an API key (within its scope and prefix) or a signed link. The public URL answers 404 — not 403, so an outsider cannot even tell that the file exists. Private objects have "url": null in the API. With web sign-in, a browser signed in with a key that covers the file can open it at its usual URL; everyone else still gets the 404.

Headers by visibility

Every content response carries X-Content-Type-Options: nosniff, a Content-Type, a Content-Disposition with the file name and a SHA-256 ETag. The rest depends on how the file is reached:

Access pathCache-ControlX-Robots-TagReferrer-Policy
Public file, direct URLpublic, max-age=300— (or noindex, nofollow under a noindex directory)—
Unlisted file, direct URLpublic, max-age=300noindex, nofollow—
Signed link (any visibility)private, no-storenoindex, nofollowno-referrer
API download (any visibility)private, no-storenoindex, nofollowno-referrer

With web sign-in, anything served to a signed-in browser — of any visibility — is private, no-store instead.

HEAD /shared/notes.md HTTP/1.1
Host: store.example.com

HTTP/1.1 200 OK
Accept-Ranges: bytes
Cache-Control: public, max-age=300
Content-Disposition: inline; filename="notes.md"; filename*=UTF-8''notes.md
Content-Type: text/markdown; charset=utf-8
Etag: "sha256:90f8ec5669cd34183b9b0fdf8b94f5efb4c3672876330f4aa76088c2b4ad17be"
X-Content-Type-Options: nosniff
X-Robots-Tag: noindex, nofollow

Public content is cached for five minutes rather than marked immutable because the same path can be overwritten. Last-Modified is deliberately not sent; the SHA-256 ETag is the only validator.

Default visibility

When a client creates an object without choosing a visibility, the first of these applies:

  1. the CLI flag (--public, --unlisted, --private);
  2. the CLI profile's default_visibility;
  3. the server's VELA_DEFAULT_VISIBILITY — unlisted out of the box.

Overwriting an existing file with vela put --force keeps its visibility unless you pass a flag.

For a store that mostly holds sensitive material, set VELA_DEFAULT_VISIBILITY=private on the server, or default_visibility = 'private' in your profile, so forgetting a flag is always safe.

Changing visibility with vela vis

vela vis PATH... public|unlisted|private [-r]
$ vela vis report.pdf private
1 object(s) now private (1 changed)

$ vela vis -r docs/math/ public
24 object(s) now public (3 changed)

$ vela vis -r docs/internal/ notes/plan.md private
  • The change takes effect on the next request. A file made private answers 404 at once.
  • -r applies to everything below directories; files and directories can be mixed in one call.
  • A path that matches nothing is an error.
  • vela vis --by-tag handout public changes every object with a tag; see Tag Selection.
  • Making a file private hides its symlinks too: they serve the stricter of their own and the file's visibility. vis on a symlink changes only the symlink.
  • Shared caches and browsers may keep a copy of a previously public file for up to five minutes. Under R2 redirect delivery, an already issued bucket grant lasts until its short TTL.

Visibility versus directory policies

Visibility belongs to files and controls access. Directory policies belong to directories and control navigation — whether an index page exists, whether a directory is listed in its parent and what crawlers are told. A policy never makes a private file readable or a public file unreadable.

GoalUse
Nobody without a key may read this filevela vis PATH private
Share it with one person for a dayvela share PATH --ttl 24h
Readable by URL, but not browsablevela vis PATH unlisted
Hide a directory from its parent listingvela dir hide DIR/
No public listing at the rootvela dir private-root
Keep search engines out of a sectionvela dir set DIR/ --noindex on