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 index | Direct URL | API with key | Signed link | |
|---|---|---|---|---|
| public | listed | 200 | yes | yes |
| unlisted | hidden | 200 + noindex | yes | yes |
| private | hidden | 404 | yes | yes |
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 path | Cache-Control | X-Robots-Tag | Referrer-Policy |
|---|---|---|---|
| Public file, direct URL | public, max-age=300 | — (or noindex, nofollow under a noindex directory) | — |
| Unlisted file, direct URL | public, max-age=300 | noindex, nofollow | — |
| Signed link (any visibility) | private, no-store | noindex, nofollow | no-referrer |
| API download (any visibility) | private, no-store | noindex, nofollow | no-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:
- the CLI flag (
--public,--unlisted,--private); - the CLI profile's
default_visibility; - the server's
VELA_DEFAULT_VISIBILITY—unlistedout 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.
-rapplies 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 publicchanges 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.
vison 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.
| Goal | Use |
|---|---|
| Nobody without a key may read this file | vela vis PATH private |
| Share it with one person for a day | vela share PATH --ttl 24h |
| Readable by URL, but not browsable | vela vis PATH unlisted |
| Hide a directory from its parent listing | vela dir hide DIR/ |
| No public listing at the root | vela dir private-root |
| Keep search engines out of a section | vela dir set DIR/ --noindex on |