feat(certificates): get_certificates on both drivers, with ACME (NetOrk/netork#2656)
The node's TLS certificates from GET /nodes/{node}/certificates/info (PBS:
/nodes/localhost/certificates/info) in netOrk's certificate contract,
{name, issuer, valid_from, valid_to, in_use_by} with Unix timestamps, so
netOrk's expiry warnings cover a node's web UI and API certificate.
One more call, the node's config, says whether ACME renews the certificate
the proxy serves (acme). The PEM is not returned; unreadable certificates
are [] and an unreadable config reads as no ACME.
This commit is contained in:
1 parent
c2d9d7e75e
commit
ff4ccc4818
6 files changed
+390
No files matched your search
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
- `get_certificates()` on both drivers (NetOrk/netork#2656): the node's TLS certificates from
|
||||
`GET /nodes/{node}/certificates/info` (PBS: `/nodes/localhost/certificates/info`) in
|
||||
netOrk's certificate contract, `{name, issuer, valid_from, valid_to, in_use_by}` with Unix
|
||||
timestamps, so netOrk's expiry warnings cover a node's web UI and API certificate.
|
||||
`name` is the file name (`pve-root-ca.pem`, `pve-ssl.pem`, `pveproxy-ssl.pem`; `proxy.pem` on
|
||||
PBS), `issuer` and `subject` the common names, `in_use_by` 1 for the certificate the proxy
|
||||
serves. `acme` is true for the certificate ACME renews (`pveproxy-ssl.pem`, PBS `proxy.pem`)
|
||||
when the node's config names a domain, read with one more call (`GET /nodes/{node}/config`);
|
||||
an unreadable config reads as no ACME. The PEM is not returned. Unreadable certificates are
|
||||
`[]`, as on OPNsense.
|
||||
|
||||
## [0.13.0] - 2026-11-26
|
||||
|
||||
### Added
|
||||
|
||||
Reference in new issue
Block a user