Commit Graph
8 Commits
Author SHA1 Message Date
Alessandro 6bd26ffe7c fix(secrets): refresh cached credentials after dotenv writes
Invalidate registered secrets managers after every successful central dotenv write, including writes that skip environment reload. Import the manager lazily to preserve the existing dotenv/secrets dependency cycle.

Cover setting, rotating, and clearing credentials through direct writes and the model configuration backend so substitution and masking see current values.
2026-11-10 14:06:54 +01:00
Alessandro 2fca75d69b fix(secrets): mask provider key pools and split stream chunks
Retain possible secret prefixes from the first streamed character while preserving the existing final partial-mask threshold.

Mask full provider key lists and each selected member in normal and streaming output, including supported legacy key names. Preserve stored values, placeholder substitution, text mask thresholds, and commas in ordinary secrets. Cover chunk boundaries, pool whitespace, and naming variants.
2026-11-10 14:06:54 +01:00
Alessandro 01e0ced1be fix(secrets): preserve values across edits and read failures
Use dotenv parsing to distinguish comments from secret content, mask shadowed populated definitions, and resolve editor masks against current disk values instead of stale snapshots.

Treat missing stores as empty, reject unreadable-store edits, and retain an unavailable value through settings normalization so unrelated updates cannot erase secrets, even after a transient read failure recovers. Cover failed reads, recovery, rotation, and masked round trips.
2026-11-10 14:06:49 +01:00
Alessandro 33e29a3b2e fix(secrets): omit empty and overridden prompt aliases
List only non-empty effective definitions, honoring case-insensitive last-definition precedence across global, native, and project stores. Exclude malformed source lines from the alias inventory.

Keep the existing conditional secrets guidance and independent variables section. Cover empty values, overrides, non-empty literals, and rendered prompt behavior.
2026-11-10 14:06:45 +01:00
Alessandro 63f0bbf8aa Preserve masked secrets across key casing changes
Match stored and submitted secret names using the uppercase convention
already used by parsing and masking. Lowercase and mixed-case entries
retain their values when settings are saved; explicit clears and omitted
keys keep their existing behavior.

Keep the existing 6.5x settings-save optimization unchanged.

Verified 21 focused host tests and 13 Docker framework secret tests.
2026-09-19 02:31:45 +02:00
Alessandro 03a364378f Preserve secret values when saving settings
Escape backslashes, double quotes, and carriage returns in the existing
secret serializer. Global and project saves retain parsed values through
masked edits, including multiline text, Unicode, and empty values.

Keep the existing 6.5x settings-save optimization unchanged.

Verified 18 focused host tests and 10 Docker framework secret tests.
2026-09-19 02:31:45 +02:00
Alessandro fd795bda82 Limit runtime secret redaction to credentials
Filter usr/.env masking to API keys and login/password credentials so ordinary settings cannot corrupt chat text. Keep global and project secrets protected, and cover full-response, prompt, and streaming behavior with a regression test.
2026-07-19 13:22:57 +02:00
Alessandro 55456df294 Mask runtime .env values in agent output
Include usr/.env in the agent-facing SecretsManager sources so runtime credentials are masked in tool results, history, logs, and streamed output. Keep the writable default secrets manager scoped to usr/secrets.env.

Add regression coverage for dotenv masking and document the source contract.
2026-07-17 16:23:46 +02:00