Versent / saml2aws

CLI tool which enables you to login and retrieve AWS temporary credentials using a SAML IDP
https://github.com/Versent/saml2aws
MIT License
2.04k stars 556 forks source link

Version v2.36.16 removes logs for the --credential-process flag #1293

Open seraco opened 2 weeks ago

seraco commented 2 weeks ago

What

Version v2.36.16 stopped producing logs when the --credential-process flag is passed to the login command. This stops showing the MFA number necessary for logging in.

Points to note:

Why

In the following lines version v2.36.16 added a conditional check to exclude the logs:

    if *quiet || (command == cmdLogin.FullCommand() && loginFlags.CredentialProcess) {
        log.SetOutput(io.Discard)
        logrus.SetOutput(io.Discard)
    }