fix(app): keep masking the secrets the running services got after a key is replaced or removed
The log hub masks the stored secrets and the values the services were started with (bot token, MCP environment values), so a late worker or MCP line carrying a key replaced or removed while the services run stays masked on the screen, in copies, files and exports; the next start replaces the in-use values. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -112,9 +112,12 @@ STT, LLM and TTS lines go to `stt`, `llm`, `tts` by their worker category), `bro
|
||||
left out and a note says how many.
|
||||
- Every line runs through `redact` before it is kept or written to a file, and every copy and
|
||||
export again: each stored secret's value, and anything shaped like a Discord bot token (also with
|
||||
sentence dots around it), becomes `[비밀값]`. So a secret replaced or removed later (the hub then
|
||||
no longer knows the old value) never shows on the screen, in a copy, a file or an export, also
|
||||
after a restart.
|
||||
sentence dots around it), becomes `[비밀값]`. So a secret replaced or removed later never shows on
|
||||
the screen, in a copy, a file or an export, also after a restart. The values masked are the
|
||||
stored secrets and the ones the running services were started with (the bot token, the MCP
|
||||
servers' values; `set_secrets_in_use` on each start): a key replaced or removed while the
|
||||
services run stays masked in their late lines (the worker and MCP servers keep it until they are
|
||||
restarted), until the next start gives them only the current values.
|
||||
- Errors the voice worker reports to the app (`error` messages: code and request id) are always
|
||||
logged, debug logging or not, so the log screen and the error report show them.
|
||||
|
||||
@@ -366,7 +369,7 @@ the key, the feature tools named as the brain names them, only enabled servers i
|
||||
settings without values, stored values passed for enabled servers only, values of removed servers
|
||||
and names deleted, a value refused for an unsaved server, kept out of the settings file and masked
|
||||
in logs, also by a new app on the same folder, and a value replaced or removed later still masked
|
||||
in lines written before); chat channel names and topics (only new or edited
|
||||
in lines written before and in lines the running services print afterwards, until the next start); chat channel names and topics (only new or edited
|
||||
syncing channels sent, the topic limit refused before saving, Discord's form of the name written
|
||||
back, a missing permission failing with the reason and the text kept, a rate-limited edit pending
|
||||
and retried once with the latest text, a new channel never clearing Discord (also on its retry), a
|
||||
|
||||
Reference in New Issue
Block a user