Skip to content

Harden local log file handling - #2927

Merged
Widthdom merged 4 commits into
mainfrom
codex/fix-issue2843-2853-2854-2884
Jun 2, 2026
Merged

Harden local log file handling#2927
Widthdom merged 4 commits into
mainfrom
codex/fix-issue2843-2853-2854-2884

Conversation

@Widthdom

@Widthdom Widthdom commented Jun 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • create lifecycle, audit, metrics, and query trace logs with owner-only POSIX permissions from the initial append
  • bound metrics log growth with rotation and query trace retention with pruning
  • document the hardened security defaults and add changelog fragments for each issue

Validation

  • dotnet build
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --filter FullyQualifiedName~GlobalToolLogTests
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --filter FullyQualifiedName~AuditLogSinkTests
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --filter FullyQualifiedName~MetricsSinkTests
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --filter FullyQualifiedName~ProgramRunnerTests
  • dotnet test
  • dotnet run --project tools/CodeIndex.Changelog -- check
  • dotnet ./src/CodeIndex/bin/Debug/net8.0/cdidx.dll status --check --json
  • Codex adversarial review: No blocking/actionable issues found.

Changelog

  • changelog.d/unreleased/2843.security.md
  • changelog.d/unreleased/2854.security.md
  • changelog.d/unreleased/2853.security.md
  • changelog.d/unreleased/2884.security.md

Fixes #2843
Fixes #2853
Fixes #2854
Fixes #2884

@Widthdom
Widthdom merged commit dee04b9 into main Jun 2, 2026
11 checks passed
@Widthdom
Widthdom deleted the codex/fix-issue2843-2853-2854-2884 branch June 3, 2026 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant