Don't send passwords after shim delimiter is found (#33273)
Don't send passwords after shim delimiter is found (#33273)

The SSH_PASSWORD_PROMPT_RE regexp used to detect if SSH is requesting a
password can be triggered if the shim is returning data to the server
with text that matches the regex, including inside JSON results. This
then results in the server unable to parse the JSON results. This
patch fixes this issue by looking for the shim delimiter in the output and
disabling the sending of passwords after the delimiter is found.

Fixes #29422.
saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt