fix(app): a worker run's late lines keep its run's secrets masked
Each worker run's log sink keeps the values masked when it started (its secrets in use), so a line still being logged after a stop gave up waiting, and after the next start replaced the values in use, is still masked. The debug echo on stderr is masked the same way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -88,7 +88,9 @@ started again on the same port with the same token after 1 s, doubling to at mos
|
||||
failing (reset once a run printed `READY`). Stopping kills it; MeloTTS's child process ends when its
|
||||
input closes. A stop (and a restart) first logs everything the exited worker wrote, waiting at most
|
||||
5 s (a child of the worker may hold its output open): a stop returns only after its last lines were
|
||||
masked with the secrets that run was started with (`admin.spec.md`, "Logs").
|
||||
masked with the secrets that run was started with (`admin.spec.md`, "Logs"). Each run's lines are
|
||||
masked with the values masked when it started too, so a line still being logged after that wait
|
||||
(and after the next start replaced the values in use) stays masked.
|
||||
|
||||
## Worker link
|
||||
|
||||
@@ -227,7 +229,8 @@ registered until it is removed (M5 setup).
|
||||
silent at both ends, below its peak), speaker limit, chat access and splitting, settings, frames; the worker
|
||||
link against a fake server (hello, events, reconnect, failed TTS); the worker process with a
|
||||
stand-in `voice_worker` package run by a real Python (token only in the environment, restart on the
|
||||
same port, stop, the last output logged before a stop returns).
|
||||
same port, stop, the last output logged before a stop returns, a line logged after the stop gave up masked with its
|
||||
run's secrets).
|
||||
- `JARVIS_VOICE_PYTHON=<venv python> cargo test --test worker_protocol` runs the worker link and
|
||||
playback against the real Python worker server with fake engines (`tests/fixtures/fake_engine_worker.py`).
|
||||
- `tests/live_discord.rs` (opt-in, `JARVIS_LIVE_DISCORD=1`, see the file header): two bots in one
|
||||
|
||||
Reference in New Issue
Block a user