跳到主要内容

Disk encryption

The Disk encryption block stands on the 服务器 tab of the Qubix 设置 window. It exists only on a server rented through Qubix; on any other server the block is not there. The mode can be changed by an administrator only.

The disks of a rented server are encrypted. The block says how they are opened after a reboot:

  • Automatic unlock — the security chip (TPM) of the server opens the disk by itself, and nobody enters a key. The state line reads The disk unlocks itself at boot.
  • Maximum protection — after every reboot the server waits for your key, which you send over SSH. The state line reads Maximum protection: after every reboot the server waits for your key.

At the bottom the block adds a line: Automatic unlock protects the data if the disks end up outside the server.

The state line​

Under the title stands one state line:

  • The disk unlocks itself at boot or Maximum protection: after every reboot the server waits for your key — the mode in force;
  • Turning maximum protection on: the boot images are being built, re-encryption comes next and Turning automatic unlock back on: the boot images and the TPM binding are being set up — the server is changing the mode;
  • Re-encrypting the disk: …% (the dots stand for the percentage) and, while the percentage is not known yet, Re-encrypting the disk — the disk is being re-encrypted;
  • Re-encryption was interrupted — enter the disk key to finish it — the re-encryption stopped half way; enter the disk key to finish it.

While the mode changes or the disk is re-encrypted, the block reads the state again every few seconds, and the button of the header is hidden. If the last change did not go through, a red line says why: The last change of the disk protection did not go through: … (the dots stand for the reason).

Turn on maximum protection​

  1. In the header of the block click Turn on maximum protection. After an interrupted re-encryption the same button finishes it.
  2. Read the warning: After every reboot the server will not start until you sign in over SSH and send the disk key.
  3. Paste your public key into the SSH public key field. If the server already has SSH keys, the field may stay empty: Leave it empty to keep the SSH keys already on the server.
  4. Type the key of the disk into the Disk key field.
  5. Copy the line under Sign-in command:: this is the command that signs you in to the server at boot, with the port and the address of the server filled in.
  6. Turn on the switch I understand the server will not come up without me and click Turn on. The button stays inactive until the disk key is typed, a public key is given (or the server already holds keys, or you are finishing an interrupted re-encryption) and the switch is on.

While maximum protection is on, the block shows the fingerprint of the server key for the sign-in at boot: Fingerprint of the server key for sign-in at boot: … — compare it with what ssh shows at the first sign-in. (the dots stand for the fingerprint). Compare it with what ssh shows at the first sign-in. This key is made anew once after the handover of the server, together with the new disk key, so a fingerprint ssh remembered before that differs from the one in the block.

Return to automatic unlock​

In maximum protection the header button reads Return to automatic unlock. The sheet asks for the Disk key; the button Return returns the automatic unlock.

A boot the security chip did not recognise​

In automatic mode the chip may not recognise a boot, for example after Hetzner repaired the board. The server then waits for the disk key, and once it is opened with the key, the block shows a red line: The server was opened with the disk key: the security chip (TPM) did not recognise this boot. What changed: Under it stands what changed, one item or more:

  • the server system: the kernel or how it boots;
  • the server board: its firmware or settings — this happens after Hetzner repairs or replaces the board;
  • the Hetzner network boot program — Hetzner updates it;
  • could not be determined, when the cause could not be found.

For a change of the board or of the network boot program the block adds: This change happened before the server system started, so everything loaded after it stays unchecked. Resume protection if you know the reason — for example, Hetzner repaired or replaced the board. If you do not know the reason, write to Qubix support.

The Resume protection button (shown to whoever may change the mode) opens a sheet with the explanation: Once protection is resumed, the disk opens by itself at every reboot again. Until then, the server waits for the disk key at every reboot. If the server has rebooted since the key was entered, the sheet asks for the key once more: The server has rebooted since the key was entered — enter the disk key once more. — type it into the Disk key field. If that boot went past the Hetzner network boot, protection can't be resumed on it: the block asks you to reboot the server first. If the server could not set its next boot to go through the network, the block says that the server could not finish the change of the disk protection: try again, and if it fails again, write to Qubix support. While the server resumes the protection, the button is inactive. When it is done, the block says Protection is resumed: the disk opens by itself again.

In automatic mode a switch Resume protection right after the disk key is entered may stand under these lines: with it on, Qubix resumes the protection as soon as the disk key is entered. The same choice is made on the screen of the backup keys.

What's next​