Skip to content

S3 path style endpoint setting#716

Open
Frostist wants to merge 7 commits intocatalyst:MOODLE_404_STABLEfrom
Frostist:s3-path-style-endpoint-setting
Open

S3 path style endpoint setting#716
Frostist wants to merge 7 commits intocatalyst:MOODLE_404_STABLEfrom
Frostist:s3-path-style-endpoint-setting

Conversation

@Frostist
Copy link
Copy Markdown
Contributor

@Frostist Frostist commented Jan 12, 2026

I edited the code in a newer version of the repo in order to merge it now, see my past pull request here:
#670

Added support for path-style endpoint configuration in S3 client.
Added settings for AWS path style endpoint configuration.
@Frostist
Copy link
Copy Markdown
Contributor Author

I have merged current updates here @danmarsden and @fDougelseSa

Copy link
Copy Markdown

@natjw natjw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like I said in my answer in my PR, there are 3 more things for this to work for me.

  1. Is the thing mentioned in the review, the option is broken the way you hardcode it to true.
  2. We need to catch another exception in case of error. See https://github.com/natjw/moodle-tool_objectfs/blob/74a69f015bfe6e565d531fd584bbdebef97b4fdc/classes/local/store/s3/client.php#L337-L340
  3. We need to prevent the AWS SDK from using the IMS in case of not running on AWS. See https://github.com/natjw/moodle-tool_objectfs/blob/74a69f015bfe6e565d531fd584bbdebef97b4fdc/classes/local/store/s3/client.php#L821-L827

Comment thread classes/local/store/s3/client.php
@Frostist Frostist requested a review from natjw April 15, 2026 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants