Record configured startup review finding
This commit is contained in:
36
docs/roadmap/remediation.md
Normal file
36
docs/roadmap/remediation.md
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
# Configured startup review remediation
|
||||||
|
|
||||||
|
Reviewed all ten implementation stages against committed baseline
|
||||||
|
`f04b6097b879bfa96cf188858988141c81933c77` and the agreed feature roadmap.
|
||||||
|
|
||||||
|
## 1. Make the pure-loader regression test detect accidental bootstrap
|
||||||
|
|
||||||
|
Status: pending. Priority: P2. Implementation stages: 2 and 6.
|
||||||
|
|
||||||
|
Location: [pipeline_discovery_test.go](../../internal/config/pipeline_discovery_test.go#L99),
|
||||||
|
`TestPipelineSourceRetainsPreparedMainAndPureLoading`.
|
||||||
|
|
||||||
|
The test sets its credential variable to an empty string before calling the
|
||||||
|
ordinary library loader. ConfigKit's default bootstrap preserves existing
|
||||||
|
variables, including empty ones. Consequently, the environment assertion still
|
||||||
|
passes if bootstrap is accidentally introduced into `LoadPipelineWithOptions`.
|
||||||
|
This is the only configuration-package test declaring a secrets directory, so
|
||||||
|
the intended guard against library-owned environment mutation is ineffective.
|
||||||
|
|
||||||
|
Confirmed with a temporary Go build overlay that inserted an actual
|
||||||
|
`LoadSecretsIntoEnvironmentFromConfig` call into `LoadPipelineWithOptions`:
|
||||||
|
the named regression test still passed. Repository source files were unchanged
|
||||||
|
by that diagnostic check. The production loader currently has the correct
|
||||||
|
pure-loading implementation; this finding concerns its regression coverage.
|
||||||
|
|
||||||
|
Required change: restore the test variable's original state during cleanup,
|
||||||
|
start the pure-loading assertion with the variable genuinely unset, and check
|
||||||
|
that it remains unset after loading. Keep the subsequent prepared-source
|
||||||
|
handoff check; an explicit native bootstrap can serve as a positive control that
|
||||||
|
the fixture would actually populate the variable. No production bootstrap or
|
||||||
|
loader behavior change is needed.
|
||||||
|
|
||||||
|
Validation: the focused test passes against current production code and fails
|
||||||
|
when an accidental bootstrap call is temporarily inserted via a scratch overlay.
|
||||||
|
Keep this as a small behavioral test rather than adding a permanent mutation-test
|
||||||
|
framework or retesting ConfigKit's complete secrets policy.
|
||||||
Reference in New Issue
Block a user