Preserve Audita module selections in YAML output

This commit is contained in:
2026-09-25 19:42:22 +00:00
parent e5c06019b3
commit 73c4986f3d
3 changed files with 55 additions and 12 deletions

View File

@@ -9,7 +9,12 @@ transcription review is retained below as historical context.
## 1. Preserve omitted modules in direct YAML serialization
Priority: P2. Status: Pending.
Priority: P2. Status: Complete.
The safe YAML projection now omits nil modules while retaining explicit empty
and ordered/repeated selections. A round-trip regression failed before the fix
and passes afterward. Config package tests, including credential-safety coverage,
and its race tests pass.
Location: `internal/config/credential_projection.go:25` (`AuditaConfig.MarshalYAML`),
especially the plain slice field at line 30 and assignment at line 40.