Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): support custom endpoint and addressing style for S3 #6924

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

anyidea
Copy link
Contributor

@anyidea anyidea commented Jan 6, 2025

Summary

Add support for configurable S3 endpoint and addressing style (path-style/virtual-hosted) to improve compatibility with S3-compatible storage services.

  • Add forcePathStyle option to control URL addressing style
  • Fix custom endpoint support implementation
  • Improve URL generation logic for different configurations

Resolves: [#6920]

Testing

Checklist

  • .changeset
  • unit tests
  • integration tests
  • necessary TSDoc comments

@github-actions github-actions bot added the feature Cool stuff label Jan 6, 2025
Copy link

github-actions bot commented Jan 6, 2025

COMPARE TO master

Total Size Diff 📈 +958 Bytes

Diff by File
Name Diff
.changeset/afraid-otters-crash.md 📈 +82 Bytes
packages/core/src/utils/storage/index.ts 📈 +36 Bytes
packages/core/src/utils/storage/s3-storage.ts 📈 +796 Bytes
packages/schemas/src/types/system.ts 📈 +44 Bytes

@github-actions github-actions bot added the size/s label Jan 6, 2025
@anyidea anyidea force-pushed the master branch 3 times, most recently from 9b812c6 to 74b8096 Compare January 6, 2025 10:32
@anyidea anyidea changed the title feat(storage): support custom endpoint and addressing style for S3 feat(core): support custom endpoint and addressing style for S3 Jan 6, 2025
@darcyYe
Copy link
Contributor

darcyYe commented Jan 7, 2025

@wangsijie would you like to take a look on this PR since you are familiar with this, thanks!

@wangsijie
Copy link
Contributor

@anyidea one last step, could you please re-commit and sign with your GPG key?

@anyidea anyidea force-pushed the master branch 5 times, most recently from aeaa61f to ce54b46 Compare January 7, 2025 09:07
Add support for configurable S3 endpoint and addressing style (path-style/virtual-hosted)
to improve compatibility with S3-compatible storage services.

- Add forcePathStyle option to control URL addressing style
- Fix custom endpoint support implementation
- Improve URL generation logic for different configurations

Resolves: [logto-io#6920]
Signed-off-by: aiden_lu <[email protected]>
@anyidea
Copy link
Contributor Author

anyidea commented Jan 7, 2025

@anyidea one last step, could you please re-commit and sign with your GPG key?
ok

@wangsijie wangsijie merged commit 39cef8e into logto-io:master Jan 8, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

4 participants