Repository navigation
v1.11.0
pve v1.11.0
Proxmox VE administration CLI with AWS-style command interface.
Behaviour changes
This release hardens TLS defaults and separates diagnostics from command output. Three changes may affect scripts or code that imports pkg/api.
1. pkg/api: ClientConfig.VerifySSL replaced by InsecureSkipVerify (breaking for library importers)
VerifySSL defaulted to false (Go zero value), so a ClientConfig built directly — without the CLI's config loader — silently disabled certificate verification. The field is now InsecureSkipVerify, with inverted meaning: the zero value verifies.
// before (v1.10.0)
api.NewClient(&api.ClientConfig{Host: h, VerifySSL: true}) // verify
api.NewClient(&api.ClientConfig{Host: h}) // NO verification
// after (v1.11.0)
api.NewClient(&api.ClientConfig{Host: h}) // verify
api.NewClient(&api.ClientConfig{Host: h, CACert: pool}) // verify against a private CA
api.NewClient(&api.ClientConfig{Host: h, InsecureSkipVerify: true}) // no verification (MITM-able)Code setting VerifySSL no longer compiles — deliberately, so the choice is made explicitly. CLI users are unaffected: PVE_VERIFY_SSL and verify_ssl behave as before (default true).
2. CLI: warning when TLS verification is disabled
With PVE_VERIFY_SSL=false, pve now prints to stderr:
WARNING: TLS certificate verification is DISABLED for <host> (PVE_VERIFY_SSL=false) — connections can be intercepted; prefer PVE_CA_CERT
stdout is unaffected, so --batch JSON output stays parseable. To verify against a private CA instead, set PVE_CA_CERT=/path/to/ca-bundle.pem.
3. CLI: log lines moved from stdout to stderr
All log output — including per-VM progress/result lines such as Started VM 100 and ✅ VM 100 (web01): VM started successfully (0.12s) — now goes to stderr. Command output (bulk summaries, tables, JSON) stays on stdout.
| You run | v1.10.0 captured | v1.11.0 captures |
|---|---|---|
pve vm start --vmid 100 -y > out.txt |
logs + summary | summary only (logs on terminal) |
pve vm start --vmid 100 -y > out.txt 2>&1 |
logs + summary | logs + summary |
pve --batch vm agent osinfo --vmid 100 | jq . |
JSON (+ any log line) | JSON only |
Add 2>&1 to keep the previous combined stream.
Changelog
- e72353c fix: default log output to stderr so stdout carries command output only
- 108be20 fix: route insecure-TLS warning to stderr, out of batch stdout
- 19c3d17 fix: secure zero value for api.ClientConfig TLS verification
Full changelog: v1.10.0...v1.11.0