The config.yaml file
Everything Connections changes is written to config.yaml. Where the file is, the backups kept on each save, and every key a server and the file may have.
In short
- Your servers and HiveBoard's settings live in one plain file, config.yaml, in the data folder; Connections edits it for you.
- Every save keeps the previous file as a timestamped backup (the newest ten are kept) and replaces the file in one step.
- HiveBoard reads the file when it starts, so edit it by hand only while HiveBoard is not running.
- No password is ever written to it; a server's key is named by its id in HiveBoard's keychain.
Everything Connections does is written to one plain file, config.yaml, in
HiveBoard’s data folder: your servers, how each
signs in, and a few settings for HiveBoard itself. You never have to open it —
but it is a plain YAML file, and you can read or edit it by hand.
No password is ever written to it. A server that signs in with a key names
that key by its id in HiveBoard’s keychain; the key
itself is a file in the keys/ folder beside it.
Where it is
Settings → General → Where HiveBoard keeps things → Settings file shows the
path, with Copy. Normally it is config.yaml in the data folder. HiveBoard
takes the first of these that exists:
- the file named with
--config; - the file named by the
HIVEBOARD_CONFIGenvironment variable; config.yamlin the folder HiveBoard was started from — only when the data folder is the default one;config.yamlin the data folder.
When there is none, HiveBoard writes a starter file with no servers in the data folder, and opens on its first-run page. Saves always go back to the file that was read.
How HiveBoard writes it
- A backup on every save. The file as it was is copied to
config.yaml.bak.<date>-<time>first, never over an earlier backup. The newest ten backups are kept. - In one step. The new file is written beside the old one and then put in its place, so a half-written file never replaces a good one.
- Afresh. A save writes the whole file again, with HiveBoard’s own comment at the top. Comments you added are not kept, except in the backup.
An example
refresh_seconds: 20
clusters:
- name: ember
label: Ember
hostname: ember.example.edu
user: zoe
identity: k261008-3fa9c2d1
highlight_users: [zoe]
allow_job_control: false
group: Campus
color: 145
notes: "Allocation ends in December"
- name: quartz
hostname: quartz.example.edu
user: zoe
identity: k261008-3fa9c2d1
jump: ember
- name: nimbus
ssh_host: nimbus
interactive_auth: true
inactive: true
- name: cedar
hostname: cedar.example.edu
user: zoe
kerberos: true
kerberos_realm: HPC.EXAMPLE.EDU
Ember is self-contained, with a key from the keychain. Quartz is reached
through Ember, like ssh -J. Nimbus is an alias from ~/.ssh/config that asks
for a password and a one-time code, and is set aside. Cedar signs in with a
Kerberos ticket.
The keys of a server
Each server is one entry under clusters:. It needs a name, and either
ssh_host or hostname. Two servers with the same name stop HiveBoard from
starting.
Who it is and how it is reached
| Key | What it does |
|---|---|
name | The server’s name inside HiveBoard, used in jump: and in links |
label | The name shown on screen (Display name); the name when empty |
hostname | The address of a self-contained server |
port | Its SSH port; 22 when left out |
user | Your user name on it |
ssh_host | A host from ~/.ssh/config, for an alias server |
jump | The name of another server to reach it through |
scheduler | slurm (the default), or auto to look it up at start-up |
For a server with hostname, HiveBoard fills ssh_host in by itself
(user@host, with :port when the port is not 22). Leave it out when you
write such a server by hand. See
Hosts from your SSH config for the
difference between the two kinds, and
Jump servers.
How it signs in
| Key | What it does |
|---|---|
identity | The id of a key in HiveBoard’s keychain |
agent | true: use a key in this computer’s SSH agent |
interactive_auth | true: wait for a person — password and code, or key and code |
password_only | With interactive_auth: a password and nothing else |
kerberos | true: sign in with a Kerberos ticket, and no key |
kerberos_realm | The realm, when the address does not imply it |
You do not set these one by one in the app: the sign-in choice on a server’s Connection tab writes them. See Sign-in methods.
What HiveBoard does there
| Key | What it does |
|---|---|
allow_job_control | true: cancel, continue and delete your own jobs; false by default |
highlight_users | People whose jobs are starred, and whose finished jobs are fetched |
apps | Which codes it looks for: [all] (the default) or ids such as [vasp, orca] |
foreign_job_files | never, on-demand (the default) or always |
inactive | true: set aside, never contacted |
foreign_job_files decides how far HiveBoard goes in reading other people’s
job folders: never opens none, on-demand reads one only when you open that
job and the server says you may, and always also tags other people’s jobs in
the list (single-file app). The app does not change it: the server’s
General tab shows it, and only the file sets it. See
Other people’s jobs.
highlight_users never widens what job control may touch: that is always your
own jobs, as the server’s whoami says. See
Turning on job control.
How it looks in Connections
| Key | What it does |
|---|---|
group | A heading the server is listed under |
color | A hue from 1 to 360; 0 picks one by itself |
notes | Free text that only you see |
Settings for HiveBoard itself
| Key | What it does |
|---|---|
refresh_seconds | How often the job list updates; 20 by default |
server | host and port HiveBoard serves its page on |
ai | The assistant: enabled, api_key_env, model, max_tokens |
refresh_secondsis what Settings → General → Updates changes; there it takes 10 to 600.server.hostcan only be this computer’s own address —127.0.0.1,localhostor another loopback address: HiveBoard refuses to start on any other, because it has no login of its own.server.portis 8737 unless you change it;--portoverrides it.ai.api_key_envis the name of the environment variable that holds the API key —ANTHROPIC_API_KEYby default. The key itself is never written to the file. See The assistant.
Check yourself
2 quick questions on this page. Nothing is sent anywhere.
-
You edit config.yaml while HiveBoard is running, then change a server's colour in Connections. What happens to your edit?
- The save writes what HiveBoard holds, so your edit survives only in the backup
- HiveBoard merges your edit with its change
- HiveBoard refuses to save until you restart
Show the answer
The save writes what HiveBoard holds, so your edit survives only in the backup HiveBoard reads config.yaml only when it starts; a save writes what it holds, after keeping the old file as a backup.
-
Which key turns on cancel, continue and delete for your own jobs on a server?
- allow_job_control
- interactive_auth
- foreign_job_files
Show the answer
allow_job_control allow_job_control is false by default; the Job control switch on a server's General tab sets it.
Try it in the app
On your own computer, with HiveBoard open. Tick them off as you go.
Related
Written for HiveBoard 0.1.7, the version on the download page. Examples use a made-up cluster (Ember) and person (zoe). Something here not what you see? Report it from the app.