Skip to content
Vaulthalla LogoVaulthalla

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

vh peer
CommandArgumentsAliasesEffectSummary
writeOpen a 10-minute window for linking another server to this one, and print this server's address, node id and key.
requestsreadList the servers waiting in your window to be linked, each with three codes to choose from.
<request>writeApprove a link request with the code the other server shows.
<request>writeDecline a link request.
lsreadList the linked servers and each link's health; --all includes unlinked ones.
<peer>showreadShow one linked server: its key, keys, endpoints and the link's health.
<peer> <name>writeRename a linked server here (the other server keeps its own name for this one).
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 pair [--close] [--json]
vh peer pair
OptionAliasesTypeDefaultSummary
flagClose your window instead.
-jflagOpen the window without waiting and print it as JSON.

vh peer pending

vh peer pending [--json]
vh peer pending
OptionAliasesTypeDefaultSummary
-jflagOutput in JSON format.

vh peer approve

vh peer approve <request> [--code <code>] [--fingerprint <hex>]
vh peer approve
OptionAliasesTypeDefaultSummary
codeThe six-digit code the other server shows.
hexThe other server's key (its SPKI SHA-256, 64 hex digits): refuse any other.

vh peer deny

vh peer deny <request>
vh peer link <address> [--fingerprint <hex>] [--json]
vh peer link
OptionAliasesTypeDefaultSummary

vh peer list

vh peer list [--all] [--json]
vh peer list
OptionAliasesTypeDefaultSummary
-aflagUnlinked servers too.
-jflagOutput in JSON format.

vh peer info

vh peer info <peer> [--json]
vh peer info
OptionAliasesTypeDefaultSummary
-jflagOutput in JSON format.

vh peer rename

vh peer rename <peer> <name>
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>).

vh peer policy
CommandArgumentsAliasesEffectSummary
<peer>get, inforeadShow 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>writeSet 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]
vh peer policy show
OptionAliasesTypeDefaultSummary
-jflagOutput in JSON format.

vh peer policy set

vh peer policy set <peer> <role>