Repository navigation
feat(services/s3): add Huawei Cloud OBS preset - #9070
Merged
Merged
Conversation
Xuanwo
requested review from
PsiACE,
Zheaoli,
messense,
oowl,
silver-ymz,
suyanhanx and
tisonkun
as code owners
November 25, 2026 12:43
suyanhanx
approved these changes
Nov 25, 2026
PsiACE
approved these changes
Nov 25, 2026
30 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-s3scheme,services-obs-s3feature,ObsS3builder and binding configurations. The preset deriveshttps://obs.<region>.myhuaweicloud.com, prepends the bucket to the host, and uses the bucket region for S3 Signature Version 4 withUNSIGNED-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-s3and useobs-s3://example-bucket/prefix?region=cn-north-1. Supply Huawei Cloudaccess_key_idandsecret_access_key, withsession_tokenfor temporary credentials. Useendpointto override the base URL before OpenDAL adds the bucket name. The native OBS API is available throughservices-obsandobs://.Breaking changes
AI Usage Statement
magpie/codex/gpt-6.2-astra,highfor provider research and implementation scope.magpie/codex/gpt-6.2-sol,xhighfor implementation, local validation and this description.magpie/devin/swe-2,highfor independent review of the preset, provider documentation, local signer tests and scheme registration.