Add an HTTPS installer for the OPNsense agent and show its command in the WebUI

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-21 09:25:51 +01:00
co-authored by Claude Opus 5.5
parent 20bf40adce
commit 7201b18300
9 changed files with 468 additions and 10 deletions
+3 -1
View File
@@ -2,6 +2,7 @@
//! the tenant's one-time enrollment token until the final enrollment consumes it.
use super::*;
mod starter;
pub(super) mod opnsense;
pub(super) use starter::publish_missing as publish_starters;
@@ -135,7 +136,8 @@ pub(super) async fn issue(
.await?;
tx.commit().await?;
Ok(private_json(
json!({"token":token,"expires_at":expires,"bootstrap_origin":bootstrap_origin,"release_platforms":release_platforms}),
json!({"token":token,"expires_at":expires,"bootstrap_origin":bootstrap_origin,"release_platforms":release_platforms,
"opnsense_installer":opnsense::available()}),
))
}
async fn token_tenant(s: &crate::State, h: &HeaderMap) -> Result<Uuid, Error> {