[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:
2026-11-07 22:46:07 +01:00
parent dc23bfe842
commit 18da3f5d5a
11 changed files with 201 additions and 14 deletions
+46
View File
@@ -145,6 +145,23 @@
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "static_response",
"status_code": 403
}
],
"match": [
{
"vars": {
"{http.request.tls.client.fingerprint}": [
""
]
}
}
]
},
{
"handle": [
{
@@ -465,6 +482,35 @@
}
],
"tls_connection_policies": [
{
"client_authentication": {
"ca": {
"pem_files": [
"/var/lib/ianitor/certs/domi-devices-ca.pem"
],
"provider": "file"
},
"mode": "verify_if_given",
"verifiers": [
{
"leaf_certs_loaders": [
{
"files": [
"/var/lib/ianitor/certs/domi-devices.pem"
],
"loader": "file"
}
],
"verifier": "leaf"
}
]
},
"match": {
"sni": [
"status.example.org"
]
}
},
{
"certificate_selection": {
"any_tag": [