Skip to content

Can't enter MFA code (aws) after a fish read #4261

Closed

Description

@jlsjonas

$ 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)?

Activity

  1. krader1961 commented on Jul 28, 2017

    @krader1961
    Contributor

    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.

  2. faho commented on Aug 11, 2017

    @faho
    Member

    @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?

  3. jlsjonas commented on Aug 11, 2017

    @jlsjonas
    Author

    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)

  4. faho commented on Aug 11, 2017

    @faho
    Member

    the aws cli is responsible for this MFA prompt

    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?

  5. jlsjonas commented on Aug 11, 2017

    @jlsjonas
    Author
  6. faho commented on Aug 11, 2017

    @faho
    Member

    In that case, let's just assume it's #3805. When that's fixed and this isn't, we can reopen this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions