Repository navigation
Commit 2dd296b
committed
fix(daemon): answer the client when its binary image is rejected (DeusData#1383)
An image-verification rejection logged daemon.client_image_rejected and
finished the worker WITHOUT sending a hello response - the only
admission-failure path that never answered the peer. The client
reported status "pending" indefinitely, indistinguishable from a slow
cold start, with the reason visible only in the daemon log.
The rejection now sends a CONNECT_REJECTED hello response carrying the
reason (fingerprint_mismatch / image_unverifiable) and an actionable
message, matching the version-conflict and capacity paths. The
version-conflict path already responds to unverified peers, so this
discloses nothing new to a same-uid local peer; admission stays
rejected either way.
Adds a CBM_ENABLE_TEST_SEAMS-only seam forcing peer-image verification
to fail, since the in-process harness's peer pid is OS-authenticated
socket credentials and always verifies against the service's own
active image.
Test: daemon_runtime_image_rejection_reaches_client_issue1383 - the
client receives CONNECT_REJECTED with the reason in the message. RED
without the response block (client times out), GREEN with it.
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>1 parent ae5e9e4 commit 2dd296b
3 files changed
Lines changed: 77 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
21 | 32 | | |
22 | 33 | | |
23 | 34 | | |
| |||
1728 | 1739 | | |
1729 | 1740 | | |
1730 | 1741 | | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
1731 | 1748 | | |
1732 | | - | |
1733 | | - | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
1734 | 1765 | | |
1735 | 1766 | | |
1736 | 1767 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
414 | 420 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1846 | 1846 | | |
1847 | 1847 | | |
1848 | 1848 | | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
| 1873 | + | |
| 1874 | + | |
| 1875 | + | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
1849 | 1882 | | |
1850 | 1883 | | |
1851 | 1884 | | |
| |||
4387 | 4420 | | |
4388 | 4421 | | |
4389 | 4422 | | |
4390 | | - | |
4391 | 4423 | | |
4392 | 4424 | | |
4393 | 4425 | | |
| |||
4436 | 4468 | | |
4437 | 4469 | | |
4438 | 4470 | | |
4439 | | - | |
4440 | | - | |
4441 | | - | |
| 4471 | + | |
| 4472 | + | |
4442 | 4473 | | |
4443 | 4474 | | |
4444 | 4475 | | |
| |||
4449 | 4480 | | |
4450 | 4481 | | |
4451 | 4482 | | |
4452 | | - | |
4453 | | - | |
4454 | | - | |
| 4483 | + | |
| 4484 | + | |
4455 | 4485 | | |
4456 | 4486 | | |
4457 | 4487 | | |
| |||
4584 | 4614 | | |
4585 | 4615 | | |
4586 | 4616 | | |
| 4617 | + | |
4587 | 4618 | | |
4588 | 4619 | | |
4589 | 4620 | | |
| |||
0 commit comments