HiveBoard Docs Search the docs… Ctrl K Get HiveBoard
Browse the help centre
  1. Help centre
  2. Settings and your data

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.

5 min read HiveBoard 0.1.7 Updated

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:

  1. the file named with --config;
  2. the file named by the HIVEBOARD_CONFIG environment variable;
  3. config.yaml in the folder HiveBoard was started from — only when the data folder is the default one;
  4. config.yaml in 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

KeyWhat it does
nameThe server’s name inside HiveBoard, used in jump: and in links
labelThe name shown on screen (Display name); the name when empty
hostnameThe address of a self-contained server
portIts SSH port; 22 when left out
userYour user name on it
ssh_hostA host from ~/.ssh/config, for an alias server
jumpThe name of another server to reach it through
schedulerslurm (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

KeyWhat it does
identityThe id of a key in HiveBoard’s keychain
agenttrue: use a key in this computer’s SSH agent
interactive_authtrue: wait for a person — password and code, or key and code
password_onlyWith interactive_auth: a password and nothing else
kerberostrue: sign in with a Kerberos ticket, and no key
kerberos_realmThe 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

KeyWhat it does
allow_job_controltrue: cancel, continue and delete your own jobs; false by default
highlight_usersPeople whose jobs are starred, and whose finished jobs are fetched
appsWhich codes it looks for: [all] (the default) or ids such as [vasp, orca]
foreign_job_filesnever, on-demand (the default) or always
inactivetrue: 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

KeyWhat it does
groupA heading the server is listed under
colorA hue from 1 to 360; 0 picks one by itself
notesFree text that only you see

Settings for HiveBoard itself

KeyWhat it does
refresh_secondsHow often the job list updates; 20 by default
serverhost and port HiveBoard serves its page on
aiThe assistant: enabled, api_key_env, model, max_tokens
  • refresh_seconds is what Settings → General → Updates changes; there it takes 10 to 600.
  • server.host can only be this computer’s own address — 127.0.0.1, localhost or another loopback address: HiveBoard refuses to start on any other, because it has no login of its own. server.port is 8737 unless you change it; --port overrides it.
  • ai.api_key_env is the name of the environment variable that holds the API key — ANTHROPIC_API_KEY by 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.

  1. 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.

  2. 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.

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.

↑ ↓ to moveEnter to openEsc to close