You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't enter MFA code (aws) after a fish read #4261
$ fish --version
fish, version 2.5.0
$ uname -a
Darwin Jonass-MacBook-Pro.local 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64
$ echo $TERM
xterm-256color
I have a script that uses fish' internal read a few times, and executes several AWS(-cli) commands.
Since we recently enforced MFA we're now required to enter a code every x minutes to make the commands go through.
For some reason, entering the code doesn't work if there has been a read.
notes: the code is requested in a password-style prompt, likely (haven't verified) using bash' read function (causing the issue)?
There is insufficient data to diagnose the problem. However, it is likely this is a duplicate of #3805 or any of the numerous other issues involving fish's handling of jobs and tty ownership.
@jlsjonas: I'm closing this because, with the current information, there is basically zero chance of us doing anything about it.
Even if you add enough info, chances are it's caused by #3805 or similar.
If you wish to help us figure that out, at a minimum we'd need to know how exactly this MFA prompt is started. Is it included in a fish script? Is it injected somehow from the outside? Is it something weird like bash executing fish with a background script that starts the prompt at certain intervals?
depending on how aws implemented it I suppose it might be related to #3805
working around by manually calling the aws-cli with a generic s3 ls for every profile I need for the script before executing it; and hoping the execution doesn't take over an hour (includes waiting parts)
Activity
krader1961 commentedon Jul 28, 2017
There is insufficient data to diagnose the problem. However, it is likely this is a duplicate of #3805 or any of the numerous other issues involving fish's handling of jobs and tty ownership.
faho commentedon Aug 11, 2017
@jlsjonas: I'm closing this because, with the current information, there is basically zero chance of us doing anything about it.
Even if you add enough info, chances are it's caused by #3805 or similar.
If you wish to help us figure that out, at a minimum we'd need to know how exactly this MFA prompt is started. Is it included in a fish script? Is it injected somehow from the outside? Is it something weird like bash executing fish with a background script that starts the prompt at certain intervals?
jlsjonas commentedon Aug 11, 2017
Hi, sorry missed the previous reply.
the aws cli is responsible for this MFA prompt
depending on how aws implemented it I suppose it might be related to #3805
working around by manually calling the aws-cli with a generic s3 ls for every profile I need for the script before executing it; and hoping the execution doesn't take over an hour (includes waiting parts)
faho commentedon Aug 11, 2017
Being unfamiliar with the aws cli, that's unfortunately not specific enough.
We'd need to know how it's implemented. Do you know of any documentation on this?
jlsjonas commentedon Aug 11, 2017
faho commentedon Aug 11, 2017
In that case, let's just assume it's #3805. When that's fixed and this isn't, we can reopen this one.