# Read-only by default

> What HiveBoard runs on your cluster by default — squeue, sacct, ls, cat and a few more — how its reads are confined and cached, and other people's folders.

Source: https://hiveboard.dev/docs/safety/read-only-by-default · Section: Safety and privacy · HiveBoard 0.1.7 · Updated 2026-10-19

## In short

- Until you turn job control on for a server, every command HiveBoard sends it only reads.
- File reads and downloads stay inside the job's own folder, and downloads stream straight to you: nothing is written on the cluster.
- Reads are cached and shared, over one held connection per server, so ten open tabs do not mean ten times the load on a login node.
- Another person's job folder is read only when you open that job, and only if the server says you may.

HiveBoard reads. Until you turn on job control for a server, every command it sends that
server only reads: the queue, the accounting record, a folder's listing, the lines of a
file. Nothing is installed on the cluster, and nothing is written there. The few things it
can change once you allow it are listed in
[what HiveBoard may change](/docs/safety/what-hiveboard-may-change).

## What it runs, and when

By default every command HiveBoard sends is a read, such as `squeue`, `sinfo`, `scontrol`,
`sacct`, `ls`, `cat`, `tail`, `grep`, `stat` and `awk`.

| What | When | Commands |
|---|---|---|
| The queue | every 20 s, each server shown | `squeue`, `sinfo` |
| Connection health | every 30 s, servers hidden or not yet seen | `echo ok` |
| Code tags | after each queue read, your jobs not yet tagged | file names, the first bytes of input and output files |
| Finished jobs | per history window | `sacct -u` for you and the users you highlight |
| One job | when opened, then every 15 s on Overview or Output | `scontrol`, then the code's reads: head, tail, grep, count |
| 3-D structure | on the Structure tab | the geometry and trajectory files |
| Folders and files | when you browse or download | one listing; `cat`, `tar`, `zip` |

A connection test adds `whoami` and `hostname`. Every one of these is bounded: the reads of
a job's files are line ranges, fixed-text searches and counts, and the code tags are found
at most 60 folders and about 20 seconds per request — the rest on the refreshes that follow.
What is learned about a job is kept, so it is not asked again.

## Confined to the job's folder

- File reads and archive downloads are confined to the job's own work directory. Every path
  is resolved first and refused if it leads outside.
- The Folders page reads one directory per request, never a recursive walk — a walk is what
  gets an SSH session reset on a monitored cluster. Its search for calculations goes down
  only into directories you own, and opening a folder requires that you own it. See
  [browsing folders](/docs/folders/browse-folders).

## Downloads stream; nothing is staged

A download comes straight from the cluster: `cat` for a file, or `zip` or `tar` writing the
archive to its output for a folder or a selection. Nothing is staged or written on the
remote host. The archive formats offered are only those the cluster has. See
[the Files tab](/docs/job/files-tab).

## Gentle on login nodes

- **Every read is cached** for a short time, and **single-flight**: callers that ask the same
  thing at once share one SSH command, so ten open tabs do not mean ten times the load. The
  queue is kept for 10 to 60 seconds; finished jobs for 60 seconds with a 7-day window, 5
  minutes with 30 days, 15 minutes with 90.
- **One connection per server**, held open, with a new channel for each command — at most 4
  at once, and 2 for downloads — and a keepalive every 30 seconds. Signing in once serves
  every command after it.
- **Your pace.** The list is read every 20 seconds unless you choose otherwise in Settings
  (10 seconds to 10 minutes). A slower pace is kinder to a busy login node.
- **No retry storms.** A sign-in the server refused is not tried again until you act. See
  [How sign-in is kept safe](/docs/safety/sign-in-safety).

> [!BUILD]
> The Python build keeps a pool of connections with the same sign-in rules; the channel
> figures above are the single-file app's.

## Other people's folders

On large shared clusters, a burst of refused reads across other users' directories gets the
SSH session reset. So HiveBoard is careful there:

- It opens another user's job folder only when **you open that job**.
- It asks the server once whether you may — the setting `foreign_job_files: on-demand`, the
  default — remembers the answer, and stops trying altogether when refusals pile up.
- When you may not read the folder, the job pane shows what the queue says about the job and
  nothing else.
- Finished jobs are asked for only for you and the people you name under **Highlight
  users** — nobody else's.
- Code tags in the list come from your own jobs' folders. (The single-file app can also tag
  other people's jobs, on a server set to `foreign_job_files: always`.)

See [Other people's jobs](/docs/job/other-peoples-jobs).

## When HiveBoard does write

Only through actions you switch on and confirm: cancelling, continuing and deleting files of
your own jobs, once job control is on for that server, and installing your public key when
you press **Install key**. The complete list, with the rules each follows, is in
[what HiveBoard may change](/docs/safety/what-hiveboard-may-change).

## Check yourself

1. How does HiveBoard download a job's whole folder as an archive?
   - It streams zip or tar output straight from the cluster; nothing is written there ← the answer
   - It builds the archive in your home folder on the cluster, then copies it
   - It copies the files into a temporary folder on the login node first
   Why: Downloads stream from the cluster — cat, or zip or tar to standard output — and nothing is staged or written on the remote host.

2. You open a colleague's job. When does HiveBoard read its folder?
   - Only now that you opened it, and only if the server lets you read it ← the answer
   - Every 20 seconds, with the queue
   - Never — other people's jobs cannot be opened
   Why: Another user's job folder is opened only when you open that job, after asking the server once whether you may.

## Try it in the app

- Open a server's **Overview** in Connections and read its **Job control** line: *Off — HiveBoard only watches* means it sends that server nothing but reads.

## Related

- [What HiveBoard may change on a cluster](https://hiveboard.dev/docs/safety/what-hiveboard-may-change.md)
- [Turning on job control](https://hiveboard.dev/docs/job-control/turn-on-job-control.md)
- [Other people's jobs](https://hiveboard.dev/docs/job/other-peoples-jobs.md)
- [Browsing folders](https://hiveboard.dev/docs/folders/browse-folders.md)
- [HiveBoard's guarantees](https://hiveboard.dev/docs/safety/guarantees.md)
