Closed angelofenoglio closed 1 year ago
@angelofenoglio thanks for creating this issue with such a great level of detail. Hope we can work it out during 2022 Q4
CC: @juanmatias @diego-ojeda-binbash
@angelofenoglio we'll request @rodriguez-matias help to validate if this is still happening with the latest version of the CLI and Ref Arch, in case everything looks good we can close it. If not we can re-float it's priority and how to solve it.
leverage debug --info
in order to get all the relevant environment versions
leverage debug --info
command CC: @diego-ojeda-binbash
@angelofenoglio @exequielrafaela I tested this issue with both toolbox images and got the same result. Everything seems to works well so far.
leverage, version 1.9.1
`binbash/leverage-toolbox` ==1.2.7-0.1.1
`binbash/leverage-toolbox` ==1.3.5-0.0.2
Also tested with another version of leverage and I was able to abort the MFA script correctly.
leverage, version 1.8.0
`binbash/leverage-toolbox`==1.2.7-0.0.5
Describe the Bug
When running an operation that requires the execution of the multi-factor authentication handling script, if the user decides to interrupt this execution during the OTP prompt, and does so by spamming
Ctrl + c
, the script will re-prompt for OTP instead of actually quitting. Not only that, but it will prompt the same way for the rest of the identified profiles, and it will end up displaying a successful execution message instead of quitting.Expected Behavior
Whether
Ctrl + c
is pressed once or spammed, the script should immediately quit.Steps to Reproduce
Steps to reproduce the behavior:
cd
into a layerleverage tf plan
Ctrl + c
Output
Pressing
Ctrl + c
once to interrupt the command:Spamming
Ctrl + c
:Environment (please complete the following information):
Run on Bash on a Linux environment.
Additional Context
This issue was initially reported by @marianod92, however in his case, after re-prompting, the process would actually hang, forcing him to kill the terminal session. This may or may not be influenced by the platform in which leverage is run, an M1 Macbook in this case.