Skip to content

Concept

Relay

On day 0 no cluster exists. pk-metal boot runs on a workstation, but the workstation often cannot reach the BMC network. pk-metal relay runs on a host that can. It forwards the traffic. TLS does not stop at the relay.

The workstation runs pk-metal boot and reaches the relay tunnel over ssh -L. BMCs download media from the relay front address. The relay splices the connections to the media server inside pk-metal boot.workstationpk-metal bootmedia server, Redfish clientrelay hosttunnelloopback :9443front:8443BMC networkBMCsssh -L, HMACGET mediaDIAL
TLS ends inside pk-metal boot. The relay sees only ciphertext.
Front
The address where BMCs download boot media.
Tunnel
The control port of the relay. It stays on loopback. You reach it with ssh -L.
Relay secret
A shared secret of at least 32 characters. Each line on the tunnel carries an HMAC of the secret, a fresh nonce, the verb and its argument.

The BMCs do not check the certificate of the media server. A party that holds the control connection could read the grant, get the node configuration or serve its own ISO. The HMAC proves who connects. A line without a valid HMAC gets ERR unauthenticated. The secret does not encrypt the tunnel, so the tunnel stays on loopback.

  1. The relay writes a new secret file only if none exists. It never replaces a file.
  2. pk-metal boot only reads a secret. It never makes one.
  3. The operator does not use the relay today. It is for day 0.