Skip to content

feat(services/s3): add Huawei Cloud OBS preset - #9070

Merged
Xuanwo merged 2 commits into
mainfrom
xuanwo/obs-s3-preset
Nov 25, 2026
Merged

Xuanwo merged 2 commits into
mainfrom
xuanwo/obs-s3-preset

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Nov 25, 2026

Copy link
Copy Markdown
Member

Which issue does this PR close?

Part of #8003.

Rationale for this change

Huawei Cloud OBS supports S3 clients in the China public cloud. A preset lets applications connect with the bucket region and Huawei Cloud credentials while using OpenDAL's shared S3 implementation. Huawei documents the base endpoint and SigV4 payload modes in the Boto3 FAQ, and the bucket region, Huawei-issued keys and session tokens in the Terraform guide. Boto3 FAQ · Terraform S3 backend guide

What changes are included in this PR?

Add the obs-s3 scheme, services-obs-s3 feature, ObsS3 builder and binding configurations. The preset derives https://obs.<region>.myhuaweicloud.com, prepends the bucket to the host, and uses the bucket region for S3 Signature Version 4 with UNSIGNED-PAYLOAD. A local PUT with synthetic credentials exercised the shared signer and confirmed the host, credential scope, payload mode and security-token header.

This preset has not been tested against a real Huawei Cloud OBS account.

Are there any user-facing changes?

Enable services-obs-s3 and use obs-s3://example-bucket/prefix?region=cn-north-1. Supply Huawei Cloud access_key_id and secret_access_key, with session_token for temporary credentials. Use endpoint to override the base URL before OpenDAL adds the bucket name. The native OBS API is available through services-obs and obs://.

Breaking changes

AI Usage Statement

  • Pi, magpie/codex/gpt-6.2-astra, high for provider research and implementation scope.
  • Pi, magpie/codex/gpt-6.2-sol, xhigh for implementation, local validation and this description.
  • Pi, magpie/devin/swe-2, high for independent review of the preset, provider documentation, local signer tests and scheme registration.

@Xuanwo
Xuanwo merged commit fde54d3 into main Nov 25, 2026
144 checks passed
@Xuanwo
Xuanwo deleted the xuanwo/obs-s3-preset branch November 25, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants