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

The data folder

Where HiveBoard keeps your servers, keys, trusted hosts and logs, what each file in that folder is for, and how HiveBoard decides which folder to use.

4 min read HiveBoard 0.1.7 Updated Make it yours · lesson 2 of 8

In short

  • Everything HiveBoard keeps is in one folder, normally .hiveboard in your user folder — the server list, its own SSH keys, the servers it trusts, the connection log and more.
  • Connections → Settings → General shows the folder in use, why it was chosen, and the settings file, each with a Copy button.
  • The folder is the first of — --data-dir, the HIVEBOARD_HOME environment variable, a hiveboard-data folder beside the app, ~/.hiveboard.
  • No password, one-time code or passphrase is ever written to it. The private keys of HiveBoard's keychain are, so guard a copy of it like your ~/.ssh.

HiveBoard keeps everything it owns in one folder on your computer: the servers you added, the SSH keys it made or imported, the servers whose identity it trusts, the log of every connection, the finished jobs it saved. Nothing of this is kept on the clusters, and no password is ever written into it.

Unless you choose another, the folder is .hiveboard in your user folder — ~/.hiveboard on macOS and Linux, %USERPROFILE%\.hiveboard on Windows. It is created the first time HiveBoard starts.

Finding it

Open Connections → Settings → General. Under Where HiveBoard keeps things:

  • Data folder — the path, a Copy button, and why this folder is the one in use: “In your user profile (the default).”, “Chosen with —data-dir when HiveBoard was started.”, “Chosen with the HIVEBOARD_HOME environment variable.” or “Portable — beside the app. Move the folder and everything comes along.”
  • Settings file — the config.yaml in use, with Copy.
  • In the folder — what the main files are.

Copy details on the About tab puts the version, the build, your system and the data folder on the clipboard in one line, for a problem report.

The folder’s name starts with a dot, so macOS Finder and many Linux file managers hide it; paste the copied path into the file manager instead.

What is in it

PathWhat it is
config.yamlYour servers and settings. Connections edits it; you can too
config.yaml.bak.<time>A copy from before each save; the newest 10 are kept
keys/HiveBoard’s own SSH keys (below)
known_hostsThe servers whose identity HiveBoard trusts
connections.logEvery connect, drop and key install, with the reason
terms-accepted.jsonWhich version of the Terms of Use you accepted, and when
engines/Your own simulation codes, if you add any
cache.gob.gzFacts that do not change: who you are on each server, who owns a job, a job’s code and kind
archive/Your finished jobs, kept for the Saved jobs tab
cm/macOS and Linux only: sockets of the system ssh, when a server from ~/.ssh/config is reached through it

A few details:

  • keys/ holds, for each key, <id> (the private key), <id>.pub (its public half), <id>-cert.pub (a certificate, if you added one) and keys.json (names and dates). A key you gave a passphrase stays locked by it on disk (the keychain).
  • config.yaml is saved whole or not at all: a half-written file never replaces a good one. Its format is on config.yaml.
  • connections.log moves to connections.log.1 when it passes 1 MiB, so the two together stay near 2 MiB. It never holds a password, a code or a passphrase; Diagnostics shows it (the Diagnostics tab).
  • archive/ keeps one file per finished job, by server, up to 512 MiB in all; past that the oldest entries go first.
  • engines/ is read when HiveBoard starts (adding your own code).

What the folder never holds: an account password, a one-time code, a key’s passphrase or a Kerberos password. Those are used once and discarded.

Nor does it hold the page’s own preferences — the theme, the job list’s filters and sorting, which servers are shown, the 3-D options, Guardian’s settings and log. The app window or the browser keeps those, on each computer, so they do not travel with the folder.

Which folder is used

The first of these that applies:

  1. --data-dir PATH, given when HiveBoard is started (command-line options).
  2. HIVEBOARD_HOME, an environment variable naming a folder.
  3. A folder named hiveboard-data beside the app — this is portable mode (portable mode).
  4. ~/.hiveboard, the default.

The settings file is found the same way, first match wins: --config PATH; the HIVEBOARD_CONFIG environment variable; a config.yaml in the folder HiveBoard was started from, but only with the default data folder; and otherwise config.yaml in the data folder. Saves go back to the file that was read. A copy given --data-dir, HIVEBOARD_HOME or a portable folder never picks up a stray config.yaml from elsewhere.

Moving it, or starting afresh

  • To another computer: quit HiveBoard and copy the whole folder into the same place there. Servers whose address, user and key live in HiveBoard are self-contained and work at once. A server that comes from ~/.ssh/config needs the same setup on that computer, and one that signs in through this computer’s SSH agent needs that computer’s agent to hold the key (hosts from your SSH config).
  • Your servers without your keys: export them, and import the file on the other computer (export and import).
  • Starting afresh: quit HiveBoard and move the folder away. The next start is a first run: no servers, and the Terms of Use are asked for again.

Check yourself

2 quick questions on this page. Nothing is sent anywhere.

  1. You start HiveBoard with --data-dir while HIVEBOARD_HOME is also set. Which folder does it use?

    • The one given with --data-dir
    • The one in HIVEBOARD_HOME
    • ~/.hiveboard
    • A hiveboard-data folder beside the app
    Show the answer

    The one given with --data-dir --data-dir comes first; HIVEBOARD_HOME is used only when no --data-dir is given.

  2. Which of these is never written to the data folder?

    • Your password
    • Your list of servers
    • HiveBoard's own private keys
    • The identities of the servers you trust
    Show the answer

    Your password No password, code or passphrase is ever written; the keychain's private keys are files in keys/.

Try it in the app

On your own computer, with HiveBoard open. Tick them off as you go.

Lesson 2 of 8 in Make it yours Next lesson: Portable mode

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