Commit 639559e
committed
fix: self-test TLS pin on self-signed, DB recovery blank-boot, egress wording
Three bugs found reviewing this session's commits, all self-inflicted:
- Self-test did full TLS verification because SelfTest read settings straight
from the store and never populated TLSPinSHA256 — so on a self-signed / not-
yet-CA-trusted cert it failed the handshake and reported a working server as
broken, exactly on the fresh/IP installs where the check matters most. Mirror
server.applyTLSHints: pin the cert when it isn't CA-trusted.
- DB auto-recovery quarantined the corrupt file before restoring; a failed
restore left rospanel.db absent, so the next boot read the missing file as a
fresh install and came up blank with admin/admin, masking the corruption.
Move the quarantined file back when restore leaves no DB, so the next boot
re-detects and re-alerts.
- describeExit claimed "прямой выход" when the server's own IP couldn't be
resolved; report plain success instead of asserting an egress it can't verify.1 parent 04dc816 commit 639559e
3 files changed
Lines changed: 22 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
62 | 69 | | |
63 | 70 | | |
64 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
23 | 33 | | |
24 | 34 | | |
25 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
157 | 161 | | |
158 | 162 | | |
159 | 163 | | |
| |||
0 commit comments