[core] Device certificates: device_certs host field; edge config v3 and Caddy client_authentication with a CA bundle and an allow list, 403 without a certificate
This commit is contained in:
@@ -68,6 +68,7 @@ fn minimal_host_gets_documented_defaults() {
|
||||
assert_eq!(h.auth, AuthMode::None);
|
||||
assert!(h.websockets, "websockets default on, like Caddy");
|
||||
assert!(!h.share_links);
|
||||
assert!(!h.device_certs, "device certificates are opt-in");
|
||||
assert_eq!(h.access_log, AccessLog::Off);
|
||||
assert!(h.health_check.is_none());
|
||||
assert!(h.request_headers.is_empty() && h.response_headers.is_empty());
|
||||
@@ -85,6 +86,7 @@ auth = "forward-auth"
|
||||
websockets = false
|
||||
share_links = true
|
||||
access_log = "truncated"
|
||||
device_certs = true
|
||||
|
||||
[health_check]
|
||||
path = "/healthz"
|
||||
@@ -110,6 +112,7 @@ value = "max-age=31536000"
|
||||
assert_eq!(h.auth, AuthMode::ForwardAuth);
|
||||
assert!(!h.websockets);
|
||||
assert!(h.share_links);
|
||||
assert!(h.device_certs);
|
||||
assert_eq!(h.access_log, AccessLog::Truncated);
|
||||
let hc = h.health_check.as_ref().unwrap();
|
||||
assert_eq!(hc.path, "/healthz");
|
||||
|
||||
Reference in New Issue
Block a user