Private
Public Access
1
0

feat: add CRL health status schema and UI (PR 3 of 6)
All checks were successful
CI Pipeline / Rust Format Check (push) Successful in 5s
CI Pipeline / Clippy Lints (push) Successful in 52s
CI Pipeline / Rust Unit Tests (push) Successful in 1m8s
CI Pipeline / Security Audit (push) Successful in 5s
CI Pipeline / Frontend Lint & Type Check (push) Successful in 15s
CI Pipeline / Build .deb & Release (push) Has been skipped

* feat: add CRL health status schema and UI (PR 3 of 6)

* fix(lint): strict equality for crl_age_seconds

---------

Co-authored-by: Draco Lunaris <331325+Draco-Lunaris@users.noreply.github.com>
This commit is contained in:
Draco-Lunaris-Echo
2026-06-05 16:17:17 -05:00
committed by GitHub
parent 5aec9e629c
commit ea8337b944
12 changed files with 345 additions and 78 deletions

10
crates/pm-agent-client/src/types.rs Executable file → Normal file
View File

@ -57,6 +57,16 @@ pub struct HealthData {
pub uptime_seconds: u64,
/// Agent software version string.
pub version: String,
/// CRL status reported by the agent: `"valid"`, `"expired"`, `"missing"`, `"invalid"`.
/// Absent for older agents that do not report CRL status.
#[serde(default)]
pub crl_status: Option<String>,
/// Seconds since the agent's CRL was last refreshed.
#[serde(default)]
pub crl_age_seconds: Option<i64>,
/// When the agent's CRL expires / next update is due (ISO-8601).
#[serde(default)]
pub crl_next_update: Option<String>,
}
// ============================================================