Commit Graph
5 Commits
Author SHA1 Message Date
Iuri Matias f1debca480 fix: F-010: authenticate token-socket peer before sending auth token (#140) 2026-06-08 13:52:44 -04:00
Iuri Matias 8acb280ba7 refactor: separate runtime from container (#126)
refactor: separate runtime from container

update docs
2026-05-08 10:35:05 -04:00
Dario Lipicar 87b5c2e337 sendTokenToProcess: deadline-driven retry + sun_path length check (#124)
Two related fixes to the parent-side token handoff to a child module
process, both motivated by races / silent failures observed in the
docker smoke matrix.

1. Replace the hard-coded 10×100ms retry loop with a deadline-driven
   loop, default budget 5000ms (configurable via a new max_wait_ms
   parameter). The previous 900ms cap was tight enough that on a cold
   child — dynamic loader + Qt platform bring-up + CLI11 parse +
   plugin loadFromPath — the parent would give up before the child
   bound its QtTokenReceiver socket, leaving a half-loaded module
   with a misleading "Failed to connect to token socket" error. New
   tests pin both ends of the contract:
       SendToken_FailsFast_WhenSocketNeverAppears  — bails within budget
       SendToken_SucceedsAfterDelay                — accepts late binders

   test_token_exchange's WrongName_FailsCleanlyWithinTimeout bound
   loosened from <5000ms to <5500ms because the deadline check can
   overshoot by ~one poll interval (50ms) plus syscall slack.

2. Validate the computed Unix socket path against
   sockaddr_un::sun_path (~104 bytes on macOS, ~108 on Linux) before
   strncpy. Long TMPDIR + module name + LOGOS_INSTANCE_ID combos
   would otherwise silently truncate, leaving the parent connecting
   to the wrong socket while the child binds the full path. Fail
   loudly instead.
2026-05-01 17:05:17 -03:00
Iuri Matias b82145ce9a rename plugins to modules (#122) 2026-04-23 09:20:45 -04:00
Iuri MatiasandCopilot e86db998c4 refactor: move logost_host to become one of the possible runtimes (#119)
* refactor: move logost_host to become one of the possible runtimes

refactor: move logost_host to become one of the possible runtimes

remove shim

revert some unnecessary changes

update docs

update docs

revert unnecessary changes

simplify

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-21 15:15:46 -04:00