You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2026/05/07 11:04:14 UTC

(opendal) branch main updated: feat(services/oss): support ECS RAM role credentials (#7480)

This is an automated email from the ASF dual-hosted git repository.

Xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new dc26789d8 feat(services/oss): support ECS RAM role credentials (#7480)
dc26789d8 is described below

commit dc26789d817ff614b6505220201d513b4ae32781
Author: Weny Xu <we...@gmail.com>
AuthorDate: Thu May 7 19:04:07 2026 +0800

    feat(services/oss): support ECS RAM role credentials (#7480)
---
 core/services/oss/src/backend.rs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/services/oss/src/backend.rs b/core/services/oss/src/backend.rs
index 82b10d5e3..887a0e0a8 100644
--- a/core/services/oss/src/backend.rs
+++ b/core/services/oss/src/backend.rs
@@ -23,6 +23,7 @@ use http::StatusCode;
 use http::Uri;
 use log::debug;
 use reqsign_aliyun_oss::AssumeRoleWithOidcCredentialProvider;
+use reqsign_aliyun_oss::EcsRamRoleCredentialProvider;
 use reqsign_aliyun_oss::EnvCredentialProvider;
 use reqsign_aliyun_oss::RequestSigner;
 use reqsign_aliyun_oss::StaticCredentialProvider;
@@ -485,6 +486,7 @@ impl Builder for OssBuilder {
 
         let mut provider = ProvideCredentialChain::new()
             .push(EnvCredentialProvider::new())
+            .push(EcsRamRoleCredentialProvider::new())
             .push(assume_role);
 
         if let (Some(ak), Some(sk)) = (&self.config.access_key_id, &self.config.access_key_secret) {