Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Integrate reviewed PBS safety fixture repairs

pulse-triage[bot]ac34b6f46181
diff --cc internal/repoctl/setup_bootstrap_docs_test.go
index 7f96dacea5,0f7ba066f5..32ef86754a
--- a/internal/repoctl/setup_bootstrap_docs_test.go
+++ b/internal/repoctl/setup_bootstrap_docs_test.go
@@@ -21,24 -42,29 +42,36 @@@ func TestSetupBootstrapDocsStayOnCanoni
pbsRel := "docs/PBS.md"
pbsDoc := readRepoFile(t, pbsRel)
assertContainsAll(t, pbsRel, pbsDoc, []string{
+ "### Method 1: API-Only Connection (Recommended)",
+ "proxmox-backup-manager acl update / Audit --auth-id pulse-monitor@pbs",
+ "proxmox-backup-manager acl update / Audit --auth-id 'pulse-monitor@pbs!pulse-token'",
++ "Stop if the download fails",
+ "Create a separate Pulse token in **API Access**",
+ "enter an administrator root shell",
+ `chmod 700 "$HOME/.config/pulse"`,
`chmod 600 "$HOME/.config/pulse/pbs-agent-token"`,
+ `vi "$HOME/.config/pulse/pbs-agent-token"`,
+ `curl --fail --silent --show-error`,
`--output "$HOME/.config/pulse/pbs-agent-install.sh"`,
- "https://pulse.example.com/install.sh",
+ `https://pulse.example.com/install.sh`,
+ "successful download and inspection",
+ `bash "$HOME/.config/pulse/pbs-agent-install.sh"`,
`--token-file "$HOME/.config/pulse/pbs-agent-token"`,
- "Stop if the download fails",
+ `--enable-proxmox --proxmox-type pbs --enable-docker=false`,
"Do not bypass certificate checks",
})
- // Inspect executable fences, not prose that warns against unsafe flags.
- commands := strings.Join(regexp.MustCompile("(?s)```bash\n(.*?)```").FindAllString(pbsDoc, -1), "\n")
- assertContainsNone(t, pbsRel, commands, []string{
- "PULSE_SETUP_TOKEN=",
- "sudo env PULSE_SETUP_TOKEN=",
- "curl -k",
- "--insecure",
+ shellExamples := pbsShellExamples(pbsDoc)
+ if shellExamples == "" {
+ t.Fatal("PBS guide must retain executable shell examples")
+ }
+ assertContainsNone(t, pbsRel, shellExamples, []string{
+ `curl -sSL "http://<pulse-ip>:7655/api/setup-script?type=pbs&host=https://<pbs-ip>:8007&pulse_url=http://<pulse-ip>:7655" | bash`,
+ `PULSE_SETUP_TOKEN=`,
+ `sudo env PULSE_SETUP_TOKEN=`,
+ `--insecure`,
+ ` -k`,
++ `curl -k`,
+ `--token "`,
- "| bash",
++ `| bash`,
})
}