You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
secret_file_dirs: hardening follow-ups after #1884 #2031
Follow-ups left after #1884 (secret_file_dirs allow-list for upstream ${file:}, closes #1721). None of them blocked the merge; each is a hardening or usability gap found in review.
Deny-list coverage for non-hardlink cases. The identity deny list walks the data directory's top level plus three subdirectories. A sensitive file deeper than that is protected only by the allow-list itself, not by identity.
Wildcard mode (["*"]) race. With the allow-list disabled by wildcard, the check and the open are not bound to one descriptor the way the os.Root path is.
Warn on unresolvable roots. An entry in secret_file_dirs that does not exist or cannot be resolved is skipped silently; it should produce a startup warning naming the entry.
mcpproxy doctor finding. Refs outside the allow-list get a startup WARN only. Add a doctor finding (and the same in GET /api/v1/diagnostics) so it is visible after startup.
Capture-failure warning on standalone CLI saves. When recording the superseded config identity fails, the warning (MsgSupersededConfigNotRecorded) is emitted by the running core but lost on a standalone CLI save.
Unrelated save can drop secret_file_dirs: []. A save triggered by an unrelated edit, from a config whose secret_file_dirs could not be decoded, can write the file back without the key. It should refuse or preserve the raw value.
Nil-key case in internal/config/process_overrides.go (around the OAuth key override): reviewed and judged unreachable today; add a test that pins it.
Test coverage. Patch coverage was about 68% at review time; the Windows identity path (GetFileInformationByHandle, extended-length paths) is exercised only by Windows-tagged tests. Confirm they run in the Windows CI leg and add cases for the items above.
Documented and accepted, no action planned: a hardlink to a log file made after rotation, and the refusal of a benign file with link count > 1 under ScopeUpstream.
Item 2 (wildcard race): not a real gap. Identity and link count are checked on the opened handle for wildcard mode too; fix(secret): secret_file_dirs hardening follow-ups #2032 added a swap test that pins it and corrected the docs sentence.
Item 8 (coverage): tests added with the items above. One limit remains: the *_windows_test.go files run in the Windows unit job on pushes to main only, not on PRs.
The accepted, not-fixed review notes are listed in the #2032 description.
Activity
fix(secret): keep original deny coverage unbudgeted, bound directory …
fix(management): file-ref doctor warning follows the live config; doc…
fix(secret): secret_file_dirs hardening follow-ups (#2032)
fix(config): pin nil-key case in process overrides (#2031 item 7) (#2038
Dumbris commentedon Nov 25, 2026
All eight items are handled; closing.
*_windows_test.gofiles run in the Windows unit job on pushes tomainonly, not on PRs.The accepted, not-fixed review notes are listed in the #2032 description.