Bug 1489596

Summary: Unable to login to Amazon account.
Product: Red Hat CloudForms Management Engine Reporter: Joe Vlcek <jvlcek>
Component: ApplianceAssignee: Joe Vlcek <jvlcek>
Status: CLOSED CURRENTRELEASE QA Contact: Matouš Mojžíš <mmojzis>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.8.0CC: abellott, cpelland, jhardy, jvlcek, mmojzis, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ec2:auth
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1489974 (view as bug list) Environment:
Last Closed: 2018-03-06 14:37:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1489974    

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.