[HV3-02] TLS diagnosis: IP SAN mismatch, remote tunnel config missing
This commit is contained in:
1 parent
76abdb5eca
commit
32d33b52d1
2 files changed
+65
No files matched your search
@@ -0,0 +1,30 @@
|
||||
# HV3-02 TLS origin — read-only
|
||||
|
||||
Статус: **blocked: нужен remote tunnel config/canary**. P4 не применялся.
|
||||
|
||||
## Что найдено
|
||||
|
||||
```text
|
||||
локальный cloudflared не запущен;
|
||||
локального config с noTLSVerify нет;
|
||||
origin cert: CN=matrix.buryans.ru, SAN только matrix.buryans.ru;
|
||||
HTTPS на 127.0.0.1 с Host matrix → IP SAN mismatch.
|
||||
```
|
||||
|
||||
Причина 502 при выключенном `noTLSVerify`: origin идёт по IP
|
||||
`192.168.1.10`, а сертификат выписан на `matrix.buryans.ru`.
|
||||
Нужен `originServerName` per route + корректный CA trust,
|
||||
либо отдельный origin cert, либо HTTP-origin с контролем редиректа.
|
||||
|
||||
## Почему не закрыто
|
||||
|
||||
- конфиг tunnel не локальный; без него нельзя сделать canary;
|
||||
- менять `noTLSVerify` в production без canary запрещено;
|
||||
- T19 остаётся open.
|
||||
|
||||
## Следующий шаг
|
||||
|
||||
1. Найти remote cloudflared config/connector.
|
||||
2. Взять один маршрут (matrix) в canary.
|
||||
3. Проверить SAN/SNI/CA/Host, positive+negative.
|
||||
4. Только потом P4 на остальные.
|
||||
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"generated_at": "2026-12-03T22:55:00+03:00",
|
||||
"head": "b2765c9",
|
||||
"mode": "read_only",
|
||||
"cloudflared": {
|
||||
"local_process": "not running",
|
||||
"local_config": "not found",
|
||||
"service": "no active cloudflared unit in this pass",
|
||||
"note": "tunnel config likely remote/old VPS; noTLSVerify not discoverable locally"
|
||||
},
|
||||
"origin_certificate": {
|
||||
"path": "/etc/nginx/certs/matrix.buryans.ru/fullchain.pem",
|
||||
"subject": "CN=matrix.buryans.ru",
|
||||
"issuer": "Let's Encrypt YE2",
|
||||
"san": ["matrix.buryans.ru"],
|
||||
"expires": "2026-12-24"
|
||||
},
|
||||
"failure": {
|
||||
"observed": "curl HTTPS to 127.0.0.1 with Host matrix.buryans.ru rejects IP SAN mismatch",
|
||||
"why_502_without_noTLSVerify": "origin https://192.168.1.10:443 uses an IP while cert covers only matrix.buryans.ru; verification fails unless originServerName/cert SAN is fixed",
|
||||
"status": "T19 remains open"
|
||||
},
|
||||
"candidate_fixes": [
|
||||
"origin HTTPS with originServerName per route and correct CA trust",
|
||||
"certificate with IP SAN for origin (not preferred)",
|
||||
"HTTP origin with explicit X-Forwarded-Proto redirect only if no loop"
|
||||
],
|
||||
"tests": {
|
||||
"SEC-01": "not run; requires canary/remote tunnel config",
|
||||
"positive": "local cert chain valid for matrix hostname only",
|
||||
"negative": "IP SAN mismatch observed"
|
||||
},
|
||||
"status": "blocked_p4_pending",
|
||||
"next": "owner-approved tunnel canary; inspect remote config; do not disable noTLSVerify globally"
|
||||
}
|
||||
Reference in new issue
Block a user