bastion 0.55.3
ci / personal-data (push) Successful in 5s
ci / test (push) Successful in 3m51s
ci / fuzz (push) Successful in 2m55s

This commit is contained in:
Privatae
2026-10-25 23:16:45 +00:00
parent 77b7853ae1
commit 8822d5df85
136 changed files with 8638 additions and 1641 deletions
+6 -7
View File
@@ -231,17 +231,16 @@ func collectUIStatus() uiStatus {
running := 0
for _, c := range cfgs {
p := uiPairing{
Host: c.HostName,
State: c.State,
Host: c.HostName,
// As the setup page and `status` read it: a pairing whose file
// cannot be served is "invalid" whatever its stored state says.
State: c.stateName(),
ListenAddr: c.ListenAddr,
Listening: bastionListening(c.ListenAddr),
TunnelIP: c.BastionTunnelIP,
FirstSeen: c.FirstSeen,
IsAnchor: s.AnchorHost != "" && c.HostName == s.AnchorHost,
}
if p.State == "" {
p.State = pairingActive
}
if p.Listening {
running++
}
@@ -601,7 +600,7 @@ func approvalTarget(host string) (*Config, error) {
// below reach cfg.dcnDir(), which is MkdirAll-on-read.
if !c.active() {
return nil, fmt.Errorf("this machine does not serve %q yet — that pairing is %s",
host, c.State)
host, c.stateName())
}
return c, nil
}
@@ -869,7 +868,7 @@ func localUIEntryURLTo(to string) (entry, addr string, err error) {
}
if !bastionListening(addr) {
return "", addr, fmt.Errorf("the bastion is not running on this machine, so "+
"there is nothing to show.\n Start it with `%s`, then run this again.",
"there is nothing to show.\n Start it with `%s`, then run this again",
runCommandHint())
}
secret, err := loadOrCreateUISecret()