fix(secret-store): pass secrets via stdin instead of argv on macOS and Windows - #534
Conversation
✅MegaLinter analysis: Success
Notices📣 MegaLinter 9.5.0 is out! Discover the new features and security recommendations in the release announcement. (Skip this info by defining See detailed reports in MegaLinter artifacts MegaLinter is graciously provided by OX Security |
|
The security fix is correct and the tests properly verify the new behavior. A few issues worth flagging: Bug: Windows stdin reading is fragile `$secure = ConvertTo-SecureString -String ([Console]::In.ReadToEnd().TrimEnd(@([char]"\`n", [char]"\`r"))) -AsPlainText -Force; `
More critically: does Potential issue: The diff shows Minor: Windows single-quote escaping removed without replacement The old code did The core approach (stdin instead of argv) is correct for both platforms. |
|
TrimEnd fixed in latest commit. execOpts sets |
Closes #515.