Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-48888

S3 repository errors when endpoint doesn't match bucket location

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.7.4, 2.8.2, 2.9
    • Fix Version/s: None
    • Component/s: Repositories
    • Difficulty:
      Moderate
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE

      Description

      It is currently possible for the S3 repository to display S3 buckets that cannot be accessed using the default / configured S3 endpoint URL.

      Reproduction steps:

      1. Moodle: Configure a S3 repository instance with the access key and secret of an AWS user with appropriate S3 privileges.
      2. AWS: Create one bucket in each S3 region, then using awscli or something similar using the credentials you configured Moodle with in step 1, verify that you can see the buckets using the command aws s3 ls.
      3. Moodle: Using the S3 repository, attempt to access the buckets you've just created.
        • Moodle will throw an exception for every bucket that doesn't use the US Standard endpoint (or, whatever region's end point you've decided to use if MDL-43752 has been integrated).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jethac Jetha Chan
                Participants:
                Component watchers:
                Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: