vh peer
Reference for vh peer - link this server with other Vaulthalla servers, approve link requests and set a linked server's default vault role.
vh peer links this server with other Vaulthalla servers, the first step before mirroring a vault
between them. A linked server is its own kind of principal: it never acts as a user. Linking is a pairing like a
device's: one server opens a 10-minute window (vh peer pair), the other asks to link (vh peer link <address>), and
a super admin on the first picks the code the second shows.
1vh peer pair # on server A (super admins)2vh peer link a.example.com # on server B: shows a code to pick on A3vh peer approve <request> --code <code> # on A, without the interactive prompt4vh peer list5vh peer policy set <peer> <vault-role>
The address is a host, host:port or [v6]:port; the port defaults to the device listener's, 36972.
Step by step, with what you will see and what to do when linking fails: Linking Servers.
Commands
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
| write | Open a 10-minute window for linking another server to this one, and print this server's address, node id and key. | |||
requests | read | List the servers waiting in your window to be linked, each with three codes to choose from. | ||
<request> | write | Approve a link request with the code the other server shows. | ||
<request> | write | Decline a link request. | ||
<address> | write | Link this server with the one at <address> (host, host:port or [v6]:port; the device port 36972 by default), whose super admin has run vh peer pair. | ||
ls | read | List the linked servers and each link's health; --all includes unlinked ones. | ||
<peer> | show | read | Show one linked server: its key, keys, endpoints and the link's health. | |
<peer> <name> | write | Rename a linked server here (the other server keeps its own name for this one). | ||
<peer> | destructive | Unlink a server: its key is refused from now on, its connections close, and it is told if it is connected. | ||
| A linked server's default vault role on this server: the role it holds on every vault mirrored with it; a vault's own assignment for it overrides it, implicit_deny meaning no access. |
vh peer pair
vh peer pending
vh peer pending [--json]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-j | flag | Output in JSON format. |
vh peer approve
vh peer approve <request> [--code <code>] [--fingerprint <hex>]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
code | The six-digit code the other server shows. | |||
hex | The other server's key (its SPKI SHA-256, 64 hex digits): refuse any other. |
vh peer deny
vh peer deny <request>vh peer link
vh peer link <address> [--fingerprint <hex>] [--json]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
hex | The other server's key (its SPKI SHA-256, 64 hex digits): refuse any other. | |||
-j | flag | Output in JSON format. |
vh peer list
vh peer info
vh peer info <peer> [--json]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-j | flag | Output in JSON format. |
vh peer rename
vh peer rename <peer> <name>vh peer unlink
vh peer unlink <peer>vh peer policy
A linked server's default vault role is the role it holds on every vault mirrored with it, unless the vault assigns
it another (vh vault role assign <vault> <role> --peer <server>).
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
<peer> | get, info | read | Show a linked server's default vault role here: the role it holds on every vault mirrored with it, unless the vault assigns it another (vh vault role assign <vault> <role> --peer <server>). | |
<peer> <role> | write | Set a linked server's default vault role here (a vault role's name or id), or none. |
vh peer policy show
vh peer policy show <peer> [--json]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-j | flag | Output in JSON format. |
vh peer policy set
vh peer policy set <peer> <role>