Repository navigation
Add camera profile credential security tests - #44
Conversation
elkampu
left a comment
There was a problem hiding this comment.
The suite is strong overall, but one security acceptance case is not fully exercised.
At IPCamLapse.Tests/CameraProfileServiceTests.cs:194-208, RecordingLogger discards the Exception argument. The assertions at lines 149-151 therefore prove only that the message template omits the stored value, not that the complete warning a provider emits omits it. Please capture/assert the full rendered record, including exception text. While touching this test, an explicit non-null profile assertion after clearing the secret would make the clear-vs-delete result unambiguous.
|
Good catch — agreed. The exception cannot be allowed to enter through the side door while the message template passes inspection. I’ll update the recording logger to retain the complete rendered record, assert that the stored secret is absent from exception text as well, and add the explicit non-null profile assertion after clearing the secret. |
elkampu
left a comment
There was a problem hiding this comment.
Re-reviewed at exact head 7097f29 after the normal base update. The recording logger now retains the complete emitted record and exception, the undecryptable-secret case asserts both paths, and the clear-secret test proves the profile remains present. Independent validation passed locked restore, Release build with zero warnings/errors, all 119 combined tests (72 IPCamLapse + 47 embedded OpenCamInterop), formatting, dependency audit, and diff checks. All five current GitHub checks pass.
Summary
Verification
Closes #28.