Bug 1489596 - Unable to login to Amazon account.
Summary: Unable to login to Amazon account.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Appliance
Version: 5.8.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: GA
: 5.9.0
Assignee: Joe Vlcek
QA Contact: Matouš Mojžíš
URL:
Whiteboard: ec2:auth
Depends On:
Blocks: 1489974
TreeView+ depends on / blocked
 
Reported: 2017-09-07 20:40 UTC by Joe Vlcek
Modified: 2019-08-06 20:04 UTC (History)
7 users (show)

Fixed In Version: 5.9.0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1489974 (view as bug list)
Environment:
Last Closed: 2018-03-06 14:37:11 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Joe Vlcek 2017-09-07 20:40:05 UTC
Description of problem:

The fix for fix for bug 1480654 caused a regression in authentication which
prevents logins when the authentication mode is configured for "Amazon"


Version-Release number of selected component (if applicable):


How reproducible:

Configure an appliance for authentication mode of "Amazon"
Attempt to login with valid user credentials from the Amazon account.


Steps to Reproduce:
1. Configure an appliance for authentication mode of "Amazon"
2. Attempt to login with valid user credentials from the Amazon account.

Actual results:

Login fails.
The username entered in the login screen for the amazon account is all
uppercase but in the audit.log will list the username in all lowercase,
e.g.:
Authentication failed for userid <all lowercase userid>



Expected results:

The user should be able to be logged in when authentication mode is amazon

Additional info:

Comment 2 Dave Johnson 2017-09-07 20:45:02 UTC
Please assess the impact of this issue and update the severity accordingly.  Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity for a reminder on each severity's definition.

If it's something like a tracker bug where it doesn't matter, please set it to Low/Low.

Comment 4 CFME Bot 2017-09-08 19:33:10 UTC
New commit detected on ManageIQ/manageiq-providers-amazon/master:
https://github.com/ManageIQ/manageiq-providers-amazon/commit/3a2408b4cee5e32b22dc67a1db6c96aac912c318

commit 3a2408b4cee5e32b22dc67a1db6c96aac912c318
Author:     Joe VLcek <jvlcek>
AuthorDate: Fri Sep 8 10:57:29 2017 -0400
Commit:     Joe VLcek <jvlcek>
CommitDate: Fri Sep 8 13:25:01 2017 -0400

    Do not downcase the amazon IAM username
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1489596

 app/models/authenticator/amazon.rb       | 4 ++++
 spec/models/authenticator/amazon_spec.rb | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

Comment 7 CFME Bot 2017-09-11 16:36:14 UTC
New commit detected on ManageIQ/manageiq/fine:
https://github.com/ManageIQ/manageiq/commit/31cc021924c6388b85723dfb4a7d7ec0d3c8716a

commit 31cc021924c6388b85723dfb4a7d7ec0d3c8716a
Author:     Joe VLcek <jvlcek>
AuthorDate: Fri Sep 8 14:44:34 2017 -0400
Commit:     Joe VLcek <jvlcek>
CommitDate: Fri Sep 8 14:44:34 2017 -0400

    [FINE] Do not downcase the amazon IAM username
    
    (manually picked from https://github.com/ManageIQ/manageiq-providers-amazon/commit/3a2408b4cee5e32b22dc67a1db6c96aac912c318)
    
    The code has been refactored on the master branch. It has been moved to
    the https://github.com/ManageIQ/manageiq-providers-amazon repository.
    
    The master PR for this change is:
    https://github.com/ManageIQ/manageiq-providers-amazon/pull/296
    
    This commit addresses:
    https://bugzilla.redhat.com/show_bug.cgi?id=1489596

 app/models/authenticator/amazon.rb       | 4 ++++
 spec/models/authenticator/amazon_spec.rb | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

Comment 8 Matouš Mojžíš 2018-01-02 12:30:20 UTC
Verified in 5.9.0.14.
I am able to log in as Amazon user after changing authentication to Amazon in CFME.


Note You need to log in before you can comment on or make changes to this bug.