How sign-in is kept safe
How HiveBoard treats your password, codes and keys: nothing stored, codes used once, the server's identity checked first, refused sign-ins never retried.
In short
- Passwords, one-time codes and Kerberos passwords are used once to open a connection and then discarded; none is stored or logged.
- A server that needs you never connects by itself, and a sign-in the server refused is not tried again until you act.
- The server's identity is checked before any credential is offered, and a changed key is refused.
- The SSH agent and Kerberos are used only for servers set to use them, in a sign-in you started.
HiveBoard signs in to your clusters on your behalf, so it is built to make the mistakes a script would make impossible: storing a password, burning one-time codes, retrying a refused login until a firewall blocks you, or handing a password to a machine that only pretends to be your cluster. This page gathers the rules. How to choose a method is in sign-in methods.
What happens to what you type
- Passwords are asked for when HiveBoard connects, used once to open the connection, and then discarded. They are never stored. The connection is then kept open, so you are not asked again until it drops or you close the app.
- One-time codes are used once and never logged or written to disk. Because HiveBoard holds one connection per server, you type a code when you sign in — not every time the list updates. In the single-file app a keepalive goes every 30 seconds, and a connection counts as dropped only after five go unanswered, so a code is asked for again only when the link really drops.
- A key’s passphrase is kept apart from passwords and is never offered to a server as one.
- The Kerberos password goes to your site’s Kerberos servers, for a ticket, and is never sent to the cluster or stored.
- The connection log,
connections.login the data folder, records every connect, drop and key install with the reason. It never holds a password, a code, a passphrase or a key.
Servers that need you never connect by themselves
A server that needs a password, a code, a key’s passphrase, a touch on a security key, or a Kerberos sign-in never dials by itself. Until you sign in, its chip in the top bar says Sign in or Signed out, and everything the app does by itself for that server stops at once instead of trying. Only the sign-in sheet opens a connection, with what you typed. That is what makes repeated prompting and burned codes impossible by construction. See Signing in to a server.
A server that signs in with a key and nothing else connects and reconnects by itself.
Refused sign-ins are not repeated
When a server turns a sign-in down, HiveBoard does not ask it again — not on the next refresh, not in a health check — until you act: Try again, a change to the server’s settings, or adding a new certificate for its key. Before this rule, a refused key was retried on every command of every refresh — dozens of failed logins a minute — which is exactly what gets a cluster’s firewall to stop answering your computer. Network failures, which cost no login, are still retried. See A refused sign-in.
The right answer to the right question
- A question about the password gets the password and nothing else, once. If it is asked again, the password was turned down, and the sign-in stops there.
- A question about a code — “verification”, “passcode”, “token”, “OTP”, “Duo”, “PIN” — gets the code.
- With no password typed, a password question is not answered at all: sending the code there would be a failed login and a burned code.
- A password that went out as an answer is not sent again by another method, and a server’s questions are not gone through twice. One attempt is at most one failed login.
- A question nothing you typed answers is shown to you — in the sign-in sheet, or while you test or install a key — once, for a minute and a half. The same question again ends the sign-in; closing it sends the server nothing. Anything HiveBoard does by itself, and a test of many servers at once, never asks. See When a server asks more.
The server’s identity comes first
Before any password, code or key is offered, HiveBoard checks that the server is the one on record:
| What the record says | What happens |
|---|---|
| this key | connect |
| nothing about this server | first visit: remember the key, connect |
| a different key | refused |
| this key is revoked | refused |
| a host certificate it cannot check | refused |
Only a first visit is ever written down, as a plain key, in HiveBoard’s own known_hosts.
Your ~/.ssh/known_hosts is read, never written. Every connection goes through this check,
servers from your ~/.ssh/config included. A changed key is what a re-keyed server looks
like — and also what a machine pretending to be your cluster, to collect your password and
code, looks like. See Trusting a server’s identity and
Its identity changed.
Keys, certificates, the agent and Kerberos
- Keys in
~/.ssh. A server you added by its address is offered them only if its Key is set to This computer’s SSH keys (~/.ssh). A password, code, agent or Kerberos server is never shown them. (A server added as an entry of your~/.ssh/configis offered the key that entry names, or else the keyssshwould try by itself — offered by HiveBoard, not through the SSH agent.) - A certificate is offered only with the key it was issued for, only for signing in, and only while it is valid. See SSH certificates.
- This computer’s SSH agent — for a security key, a smart card, a password manager — is asked only for a server set to use it, and only in a sign-in you started — a connection test, or the sign-in sheet. It waits a minute and a half for a touch or an approval, then gives up. A server not set to use the agent never has it consulted. See Security keys, smart cards and the SSH agent.
- Kerberos is used only for a server set to Kerberos, in a sign-in you started. The server must prove it read your ticket before the login is signed; its host key is checked like any server’s; your ticket is not handed on to it; and it is sent nothing else you typed. See Kerberos.
Check yourself
3 quick questions on this page. Nothing is sent anywhere.
-
A server turned your key down. What does HiveBoard do on the next refresh?
- Nothing with that server, until you press Try again or change its settings
- Tries the key again every 20 seconds
- Falls back to asking for your password
Show the answer
Nothing with that server, until you press Try again or change its settings A refused sign-in is not repeated by itself; automatic retries once got a cluster's firewall to block the user's address.
-
A server you have used before shows a different host key. What happens?
- HiveBoard refuses to connect, before any password or key is offered
- HiveBoard asks whether to trust the new key
- HiveBoard connects and writes the new key over the old one
Show the answer
HiveBoard refuses to connect, before any password or key is offered Only a first visit is written down; a different key is refused before any credential is sent.
-
During one sign-in the server asks for your password a second time. What does HiveBoard send?
- Nothing more — the password was turned down, and the sign-in stops
- The one-time code instead
- The password again
Show the answer
Nothing more — the password was turned down, and the sign-in stops A password question gets the password once; asked again, the sign-in ends, so one attempt is at most one failed login.
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.