Standard mode no longer blocks scp and sftp commands that pass an SSH key with -i, matching the exception already made for ssh.
Fixed
- Fixed standard mode blocking
scpandsftpwhen an SSH private key is given as the-iidentity file, such asscp -i ~/.ssh/deploy_key deploy@host:/srv/app/file.tar.gz .. The key authenticates the connection and is never printed, so it is no longer treated as a secret read for any built-in rule, including home-directory rules. (#336)- The key stays checked where it can still be exposed: as an
scporsftpsource operand, when-Shands it to another program, when an option value swallows the-i(for examplescp -X -i ~/.ssh/id_rsa ...), and in-For-ovalues such asIdentityFile=orProxyCommand=. Strict and paranoid modes are unchanged.
- The key stays checked where it can still be exposed: as an