device page, fmt;
This commit is contained in:
1 parent
bb813170d1
commit
b576ba9a01
19 files changed
+356
-162
No files matched your search
@@ -230,7 +230,10 @@ pub async fn run_command(
|
||||
}
|
||||
Err(_) => {
|
||||
state.pending.lock().await.remove(&request_id_string);
|
||||
warn!(timeout_ms = timeout.as_millis() as u64, "agent command timed out");
|
||||
warn!(
|
||||
timeout_ms = timeout.as_millis() as u64,
|
||||
"agent command timed out"
|
||||
);
|
||||
if let Err(err) = state
|
||||
.store
|
||||
.append_audit_event(AuditEventInput {
|
||||
|
||||
@@ -242,7 +242,11 @@ pub async fn revoke_enroll_token(
|
||||
agent_id: None,
|
||||
request_id: None,
|
||||
event_type: "enroll_token_revoke".into(),
|
||||
outcome: if revoked { "ok".into() } else { "not_found".into() },
|
||||
outcome: if revoked {
|
||||
"ok".into()
|
||||
} else {
|
||||
"not_found".into()
|
||||
},
|
||||
latency_ms: None,
|
||||
message: if revoked {
|
||||
"revoked enroll token".into()
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
use axum::Json;
|
||||
use axum::http::StatusCode;
|
||||
|
||||
mod alerts;
|
||||
mod audit;
|
||||
mod commands;
|
||||
mod control;
|
||||
mod audit;
|
||||
mod alerts;
|
||||
|
||||
pub use commands::{list_agents, run_command};
|
||||
pub use alerts::{active_alerts, alert_history, alerts_stream};
|
||||
pub use audit::list_audit_events;
|
||||
pub use commands::{list_agents, run_command};
|
||||
pub use control::{
|
||||
EnrollTokenStatus, IssueEnrollTokenResponse, RevokeEnrollTokenResponse, StateStatsResponse,
|
||||
enroll, healthz, issue_enroll_token, list_enroll_tokens, revoke_enroll_token, state_stats,
|
||||
|
||||
Reference in new issue
Block a user