[control] Domi CA and UI sign-in: intermediate renewal by CSR with manual offline signing, domi host certificates, device requests approved by code, one-time PKCS#12 installs, revocation; Remote-User trusted only with edge's per-boot proof
This commit is contained in:
@@ -26,6 +26,9 @@ pub struct HostSpec {
|
||||
pub websockets: bool,
|
||||
#[serde(default)]
|
||||
pub share_links: bool,
|
||||
/// Visitors need a Domi device certificate (mTLS).
|
||||
#[serde(default, skip_serializing_if = "std::ops::Not::not")]
|
||||
pub device_certs: bool,
|
||||
/// `off` or `truncated`.
|
||||
#[serde(default = "off")]
|
||||
pub access_log: String,
|
||||
@@ -115,6 +118,11 @@ impl HostSpec {
|
||||
to.share_links.to_string(),
|
||||
);
|
||||
push("access_log", self.access_log.clone(), to.access_log.clone());
|
||||
push(
|
||||
"device_certs",
|
||||
self.device_certs.to_string(),
|
||||
to.device_certs.to_string(),
|
||||
);
|
||||
let hc =
|
||||
|h: &Option<HealthCheckSpec>| h.as_ref().map(|h| (h.path.clone(), h.interval_secs));
|
||||
let (a, b) = (hc(&self.health_check), hc(&to.health_check));
|
||||
@@ -157,6 +165,7 @@ mod tests {
|
||||
auth: "none".into(),
|
||||
websockets: false,
|
||||
share_links: true,
|
||||
device_certs: true,
|
||||
access_log: "truncated".into(),
|
||||
health_check: Some(HealthCheckSpec {
|
||||
path: "/health".into(),
|
||||
|
||||
Reference in New Issue
Block a user