Pular para o conteúdo principal

Backup keys

The snapshots in Qubix storage are locked with a backup key that this server makes by itself. The key stays on the keys screen until it is marked saved, and the backups of this server open only with their own key. Save the key outside this server, in a file you keep yourself. Backups begin once the key is marked saved.

All key steps are on the Backups tab of the Sistema window and on the Save the keys screen, which opens over the panel. They are open to administrators.

The Save the keys screen​

The screen covers the whole panel for an administrator whenever a key waits to be saved: the first key of the server, a new key after Change the key, a new chain, or the disk key of a server with an encrypted disk. Until the keys are marked saved it returns on every sign-in. The first backup key is made once the backup program runs and the storage service names where the backups go; the screen appears once they are ready.

The screen reads:

  • the title Save the keys and a description that depends on the case:
    • first key: These keys are shown once, and Qubix does not keep them: the backups of this server open only with their own key. Download the keys as one file and keep it outside this server. Until the keys are marked saved, no backups are made.
    • Change the key: The new backup key replaces the current one once you download it and mark it saved. Until then backups use the current key.
    • New chain: Once you download the new key and mark it saved, the previous backups of this licence are removed and a new backup chain starts with this key.
    • only the disk key waits: The disk key opens this server's disk if the security chip did not open it. It is shown once, and Qubix does not have it. Download the key as a file and keep it outside this server.
  • a row for every waiting key — Backup key and Disk key — with the key in a read-only field that selects itself on a click and a Copiar button. Copying leaves the screen open;
  • Download as a file, the main button;
  • the switch Saved outside this server;
  • on the left of the footer, when it applies, Enter a saved key or Cancel.

Download the keys​

Download as a file saves the file qubix-keys.txt with every key that waits, the licence number and the time of saving. Keep the file outside this server.

qubix-keys.txt
Qubix — keys shown once. Keep this file outside this server.
Licence: <licence number>
Saved at: <date and time, UTC>

Backup key (opens the backups of this box):
XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX

A backup key is made of letters A–Z and digits 2–7 in eight groups of four, separated by dashes.

Mark the keys saved​

The switch Saved outside this server unlocks after the file is downloaded. Below it, a hint changes from Download the file first to File downloaded. Turning the switch on confirms the keys, and the screen closes:

  • the first key — the daily backup runs at its start time; Back up now works at once;
  • a new key after Change the key — the backups switch to it;
  • a new chain — the previous snapshots of this licence are removed and the chain begins with the new key;
  • the disk key — the server drops its own copy of it and encrypts the disk anew (below).

Confirm the disk key​

When a disk key waits, turning the switch on opens the step Confirm the disk key. The key is no longer shown. Paste the Disk key line from the downloaded file qubix-keys.txt. The button Check and save checks it: the key from the file confirms the keys, any other is refused with "This is not the disk key of this server. Paste the Disk key line from the file qubix-keys.txt." The button Back to the keys returns to the keys.

Once the disk key is confirmed, the server encrypts its disk anew with a key made on the server itself after Qubix removed its access: Qubix never had this key. Until this work ends, the security chip does not open the disk by itself, and a reboot in that time asks for the disk key you saved.

Cancel a waiting key​

While a new key waits (a key change or a new chain), the footer shows Cancel. It drops the new key: the backups go on with the current key, and the snapshots stay as they are.

The disk key and the security chip​

When the server holds a disk key, the screen holds a second row, Disk key. The key opens the disk of this server when the security chip did not open it. The file lists it next to the backup key as "Disk key (opens the encrypted disk of this server)".

Next to the disk key a block with the title If the security chip does not recognise the boot asks what the server should do. This happens after a board repair at Hetzner. The server then waits for the disk key, and once it is entered:

  • Show me what changed and wait until I resume protection;
  • Resume protection at once.

Neither choice is selected at first: the switch Saved outside this server stays locked, with the hint First choose what to do if the security chip does not recognise the boot, until one of the two is chosen. The choice is changed later by the switch Resume protection right after the disk key is entered in the Disk encryption block of the Servidor tab; the switch appears in the automatic mode of that block.

How to change the key​

A new key replaces the current one for the same snapshots.

  1. Open Sistema → Backups.
  2. In the Backup key row of the Ações group click Change the key. The button is available when the key is saved, no new key waits and no run is going.
  3. Confirm in the window Change the backup key? with Change the key. The window explains: The new key appears on the keys screen: download it as a file and mark it saved. Until then backups use the current key.
  4. On the Save the keys screen download the file and turn on Saved outside this server.
  5. Until the mark, the row Backup key in the state reads New key awaits saving. After the mark, the journal shows a run of the kind Key change.
A leaked key needs a new chain

After a change the snapshots keep the old encryption, so a key that has leaked is handled with a new chain.

How to enter a saved key​

A server installed anew makes a key of its own once the backup program runs and the storage service names the storage. To open the snapshots of an earlier installation, enter the key saved then; it replaces the key of the new installation.

  1. Open Sistema → Backups.
  2. In the Backup key row click Enter a saved key. The button is available when no new key waits and no run is going. The same button stands in the footer of the Save the keys screen while a backup key is shown there.
  3. In the window Enter a saved key type the key into the Backup key field. Dashes, spaces and letter case are ignored.
  4. Click Check and save. The key is checked against the snapshots of this licence: Enter the backup key you saved before. It is checked against the backups of this licence and counts as saved outside this server at once. Before the first backup of this licence there is nothing to check against, and the key is taken as typed.

If the text is not a key, the answer is "This is not a backup key."; if the key does not match the snapshots of the licence, "This key does not open the backups of this licence." On the keys screen the form has the button Back to the keys that returns to the keys.

How to start a new chain​

A new chain removes the previous snapshots of this licence and starts the series again with a new key. Choose it when the backup key has leaked, or when the saved key of the snapshots already in the storage is lost.

All previous snapshots are removed

When the new key is marked saved, every earlier snapshot of this licence is deleted from Qubix storage. The decision is confirmed with your current password.

  1. Open Sistema → Backups.
  2. In the Backup chain row click New chain. The button is available when no new key waits and no run is going.
  3. In the window New chain read the text — The previous backups of this licence will be removed. The new chain starts with a new key once you download it and mark it saved. Confirm with your password. — and type your password into Current password.
  4. Click Start a new chain. The button lights up once the field holds a password; Cancelar closes the window.
  5. On the keys screen download the file and turn on Saved outside this server. The state reads New chain awaits saving until then.
  6. After the mark, the journal shows a run of the kind New chain.

A wrong password gets the answer "The password is wrong."; repeated wrong passwords are held back for a time.

Keys and the AI assistant​

The assistant reads which keys wait (Keys awaiting saving) and sees only their kinds, and drops a waiting new key (Drop the new key) from its chat in the panel. The keys screen of the panel shows the keys; a saved key is typed into a secure field of the panel and goes straight to the server. A new key and a new chain the person starts with Change the key and Start a new chain on the backups tab, and marks the keys saved on the keys screen (Confirm the disk key for the disk key).

What's next​