S3 IAM Authentication fails due to library bug

Description

Environment

  • Mattermost Server: 5.22.0

Steps to Reproduce

1. Upgrade to version 5.22.0 from 5.21.0 with Amazon S3 file storage with IAM credentials

Expected Behavior

S3 file uploads work as expected

Observed Behavior

All S3 related actions fail and this message is printed repeatedly to the logs:

Proposed Fixes

There is an error in the minio-go library reported in this issue which was resolved with this pull request to the library. We need to upgrade to version 6.0.45 of the library or later.

QA Test Steps

See description.

Activity

Show:
Saturnino Abril
April 23, 2020, 6:23 AM

I don't have an instance to test with IAM role as I don't have AWS permission to do so. However, the changes still worked fine using AWS credentials, and marking this as tested and passed.

Asking help from you to cross check with the customer whether the commit made fixes their issue. Thanks.

Doug Lauder
April 21, 2020, 8:08 PM

PR is here:

Jesse Hallam
April 21, 2020, 2:45 PM

As per , in https://community-release.mattermost.com/core/pl/wopww7axuidmbfaf7h87cpi3xw, we are using AWS keys for community, and may not have organically run into this issue.

Eli Young
April 21, 2020, 5:39 AM
Edited

We need to upgrade to version 6.0.45 of the library or later.

Minor correction: you are using version 6.0.45 of the library as of 5.22.0, but you need to upgrade to version 6.0.47 or later to fix this. Also, this should be reproducible even from a new install using Mattermost 5.22.0.

Done

Mana

None

Assignee

Doug Lauder

QA Assignee

Saturnino Abril

Reporter

Paul Rothrock

Epic Link

None

Fix versions

Mattermost Team

Sustained Engineering

Sprint

None

QA Testing Areas

Attachments

GitHub Issue

None

Components

None

Severity

S2_functionality_loss_or_cosmetic_regressions