{{define "setup-page"}}
Pairing, a second factor, folders, the anchor and the owner name. Back to what this machine is doing.
The token comes from your host's “Set up a bastion”. It is used once.
Once a factor is enrolled, your host can only reach a folder or move files here after you approve the request on this machine. Your host never sees the code.
{{if .Enrol}}Point your authenticator app at the square. It will appear as Privatae NAC, for {{.Enrol.Host}}.
Nothing is written to this machine until that code matches.
No host here has its lanes open, and a second factor gates ops a pairing without lanes cannot run. Nothing is created for a pending host on this machine until the anchor host approves it.
{{else}}Pair a host first — a factor is enrolled per host.
{{end}}Your files stay on this machine. Your host keeps only the index, and the draft does nothing until you approve it there.
{{else}}No host on this machine has its lanes open, so there is nothing to propose a folder to yet.
{{end}}The anchor host is the one that approves every other host paired here. It is a choice among the hosts this machine already serves.
{{if .Hosts}} {{else}}Pair a host first — the anchor is one of them.
{{end}}A plain name, shown on this machine's card on every host it serves. It is optional and it grants nothing.
{{.Line}}
{{if .Resolved}}
{{.Resolved}}{{end}}
{{if .Note}}
{{.Note}}{{end}}
Enter this key by hand, then type a code from the app:
{{.Enrol.Key}}
It is a secret. It is on screen because you asked for it, and it is gone from this page as soon as you reload.
{{else}}That enrolment has expired — start it again.
{{end}} {{end}} {{define "anchor-cmd"}} {{with .Cmd}}{{.Command}}
{{.How}}
{{end}} {{if .Why}}{{.Why}}
{{end}}{{.Command}}
{{.How}}
{{end}} {{if .Why}}{{.Why}}
{{end}}