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 21b134829a fix(services/s3): disable sso, process, and web_identity 
slots under disable_config_load (#8891)
21b134829a is described below

commit 21b134829ac11d2935d31cd3902a5084a31f5635
Author: Xuanwo <[email protected]>
AuthorDate: Tue Nov 24 00:17:00 2026 +0800

    fix(services/s3): disable sso, process, and web_identity slots under 
disable_config_load (#8891)
---
 .../OpenDAL/ServiceConfig/S3ServiceConfig.cs       |   2 +-
 .../java/org/apache/opendal/ServiceConfig.java     |   9 +-
 bindings/python/python/opendal/config.py           |   2 +-
 core/services/s3/src/backend.rs                    | 336 ++++++++++++++++++++-
 core/services/s3/src/config.rs                     |   9 +-
 core/services/s3/src/docs.md                       |   7 +-
 website/data/services.json                         |  14 +-
 7 files changed, 353 insertions(+), 26 deletions(-)

diff --git a/bindings/dotnet/OpenDAL/ServiceConfig/S3ServiceConfig.cs 
b/bindings/dotnet/OpenDAL/ServiceConfig/S3ServiceConfig.cs
index 34da451514..278aaeb7e9 100644
--- a/bindings/dotnet/OpenDAL/ServiceConfig/S3ServiceConfig.cs
+++ b/bindings/dotnet/OpenDAL/ServiceConfig/S3ServiceConfig.cs
@@ -92,7 +92,7 @@ namespace OpenDAL.ServiceConfig
         [System.Obsolete("S3 delete batch capability is enabled by default. 
Use CapabilityOverrideLayer to override delete_max_size for specific 
endpoints.")]
         public long? DeleteMaxSize { get; init; }
         /// <summary>
-        /// Disable automatic endpoint loading and the environment/profile 
credential providers. This skips endpoint environment variables and removes the 
static environment and shared-profile credential slots. Region environment 
lookup and other credential providers, including AWS container credentials and 
EC2 instance metadata, remain enabled.
+        /// Disable automatic endpoint loading and ambient environment/profile 
credential providers. This skips endpoint environment variables and removes the 
static environment, shared-profile, SSO, web-identity, and external process 
credential slots. Region environment lookup and compute metadata credential 
providers, including AWS container credentials and EC2 instance metadata, 
remain enabled.
         /// </summary>
         public bool? DisableConfigLoad { get; init; }
         /// <summary>
diff --git a/bindings/java/src/main/java/org/apache/opendal/ServiceConfig.java 
b/bindings/java/src/main/java/org/apache/opendal/ServiceConfig.java
index 5a17f08638..82d1fe0b5f 100644
--- a/bindings/java/src/main/java/org/apache/opendal/ServiceConfig.java
+++ b/bindings/java/src/main/java/org/apache/opendal/ServiceConfig.java
@@ -3175,12 +3175,13 @@ public interface ServiceConfig {
          */
         public final Long deleteMaxSize;
         /**
-         * <p>Disable automatic endpoint loading and the environment/profile
+         * <p>Disable automatic endpoint loading and ambient 
environment/profile
          * credential providers.</p>
          * <p>This skips endpoint environment variables and removes the static
-         * environment and shared-profile credential slots. Region environment
-         * lookup and other credential providers, including AWS container
-         * credentials and EC2 instance metadata, remain enabled.</p>
+         * environment, shared-profile, SSO, web-identity, and external process
+         * credential slots. Region environment lookup and compute metadata
+         * credential providers, including AWS container credentials and EC2
+         * instance metadata, remain enabled.</p>
          */
         public final Boolean disableConfigLoad;
         /**
diff --git a/bindings/python/python/opendal/config.py 
b/bindings/python/python/opendal/config.py
index d0e816466e..6b3da3f37a 100644
--- a/bindings/python/python/opendal/config.py
+++ b/bindings/python/python/opendal/config.py
@@ -801,7 +801,7 @@ class S3Config(TypedDict):
     delete_max_size: NotRequired[int]
     """Deprecated: S3 delete batch capability is enabled by default. 
[Deprecated since 0.57.0] S3 delete batch capability is enabled by default. Use 
CapabilityOverrideLayer to override delete_max_size for specific endpoints."""
     disable_config_load: NotRequired[bool]
-    """Disable automatic endpoint loading and the environment/profile 
credential providers.  This skips endpoint environment variables and removes 
the static environment and shared-profile credential slots. Region environment 
lookup and other credential providers, including AWS container credentials and 
EC2 instance metadata, remain enabled."""
+    """Disable automatic endpoint loading and ambient environment/profile 
credential providers.  This skips endpoint environment variables and removes 
the static environment, shared-profile, SSO, web-identity, and external process 
credential slots. Region environment lookup and compute metadata credential 
providers, including AWS container credentials and EC2 instance metadata, 
remain enabled."""
     disable_ec2_metadata: NotRequired[bool]
     """Disable load credential from ec2 metadata.  This option is used to 
disable the default behavior of opendal to load credential from ec2 metadata, 
a.k.a., IMDSv2"""
     disable_list_objects_v2: NotRequired[bool]
diff --git a/core/services/s3/src/backend.rs b/core/services/s3/src/backend.rs
index fc7c69aa8f..454b7dc932 100644
--- a/core/services/s3/src/backend.rs
+++ b/core/services/s3/src/backend.rs
@@ -167,7 +167,7 @@ impl S3Builder {
     ///
     /// The configured profile takes precedence over the `AWS_PROFILE`
     /// environment variable and applies to shared AWS config and credentials
-    /// files and SSO.
+    /// files, SSO, and external process credentials.
     ///
     /// This setting has no effect when [`Self::disable_config_load`] is set or
     /// when [`Self::credential_provider_chain`] replaces the default chain.
@@ -496,13 +496,14 @@ impl S3Builder {
         self
     }
 
-    /// Disable automatic endpoint loading and the environment/profile
+    /// Disable automatic endpoint loading and ambient environment/profile
     /// credential providers.
     ///
     /// This skips endpoint environment variables and removes the static
-    /// environment and shared-profile credential slots. Region environment
-    /// lookup and other credential providers, including AWS container
-    /// credentials and EC2 instance metadata, remain enabled.
+    /// environment, shared-profile, SSO, web-identity, and external process
+    /// credential slots. Region environment lookup and compute metadata
+    /// credential providers, including AWS container credentials and EC2
+    /// instance metadata, remain enabled.
     pub fn disable_config_load(mut self) -> Self {
         self.config.disable_config_load = true;
         self
@@ -1070,7 +1071,11 @@ impl S3Builder {
             let mut builder = DefaultCredentialProvider::builder();
 
             if config.disable_config_load {
-                builder = builder.no_env().no_profile();
+                builder = builder.no_env().no_profile().no_web_identity();
+                #[cfg(not(target_arch = "wasm32"))]
+                {
+                    builder = builder.no_sso().no_process();
+                }
             } else if let Some(profile) = config
                 .profile
                 .as_deref()
@@ -2945,6 +2950,325 @@ mod tests {
         assert!(err.to_string().contains("SSO token refresh returned 503"));
     }
 
+    #[derive(Debug, Clone, Default)]
+    struct AmbientCredentialSources {
+        file_reads: Arc<AtomicUsize>,
+        command_calls: Arc<AtomicUsize>,
+        http_calls: Arc<AtomicUsize>,
+    }
+
+    impl reqsign_core::FileRead for AmbientCredentialSources {
+        async fn file_read(&self, path: &str) -> reqsign_core::Result<Vec<u8>> 
{
+            self.file_reads.fetch_add(1, Ordering::SeqCst);
+            let path = std::path::Path::new(path);
+            let contents = if path == 
std::path::Path::new("test-home/.aws/config") {
+                "[profile sso-test]\n\
+                 sso_session = test-session\n\
+                 sso_account_id = 000000000000\n\
+                 sso_role_name = TestRole\n\
+                 [sso-session test-session]\n\
+                 sso_start_url = https://example.awsapps.com/start\n\
+                 sso_region = us-east-1\n\
+                 [profile process-test]\n\
+                 credential_process = fake-cred-helper\n"
+            } else if path.starts_with("test-home/.aws/sso/cache") {
+                r#"{
+                    "accessToken": "valid-sso-token",
+                    "expiresAt": "2099-01-01T00:00:00Z"
+                }"#
+            } else if path == 
std::path::Path::new("test-home/web-identity-token") {
+                "test-web-identity-jwt"
+            } else {
+                return Err(reqsign_core::Error::unexpected("file not found"));
+            };
+            Ok(contents.as_bytes().to_vec())
+        }
+    }
+
+    impl reqsign_core::CommandExecute for AmbientCredentialSources {
+        async fn command_execute(
+            &self,
+            program: &str,
+            args: &[&str],
+        ) -> reqsign_core::Result<reqsign_core::CommandOutput> {
+            self.command_calls.fetch_add(1, Ordering::SeqCst);
+            assert_eq!(program, "fake-cred-helper");
+            assert!(args.is_empty());
+            Ok(reqsign_core::CommandOutput {
+                status: 0,
+                stdout:
+                    
br#"{"Version":1,"AccessKeyId":"process-ak","SecretAccessKey":"process-sk"}"#
+                        .to_vec(),
+                stderr: Vec::new(),
+            })
+        }
+    }
+
+    impl reqsign_core::HttpSend for AmbientCredentialSources {
+        async fn http_send(
+            &self,
+            request: Request<Bytes>,
+        ) -> reqsign_core::Result<Response<Bytes>> {
+            self.http_calls.fetch_add(1, Ordering::SeqCst);
+            let host = request.uri().host().unwrap_or_default();
+            let body = if host == "portal.sso.us-east-1.amazonaws.com" {
+                
r#"{"roleCredentials":{"accessKeyId":"sso-ak","secretAccessKey":"sso-sk","sessionToken":"sso-token","expiration":4102444800000}}"#
+            } else if host.starts_with("sts.") {
+                "<AssumeRoleWithWebIdentityResponse 
xmlns=\"https://sts.amazonaws.com/doc/2011-06-15/\";>\
+                    <AssumeRoleWithWebIdentityResult>\
+                        <Credentials>\
+                            <AccessKeyId>web-identity-ak</AccessKeyId>\
+                            <SecretAccessKey>web-identity-sk</SecretAccessKey>\
+                            <SessionToken>web-identity-token</SessionToken>\
+                            <Expiration>2099-01-01T00:00:00Z</Expiration>\
+                        </Credentials>\
+                    </AssumeRoleWithWebIdentityResult>\
+                 </AssumeRoleWithWebIdentityResponse>"
+            } else if host == "169.254.170.2" {
+                
r#"{"AccessKeyId":"ecs-ak","SecretAccessKey":"ecs-sk","Token":"ecs-token","Expiration":"2099-01-01T00:00:00Z"}"#
+            } else {
+                panic!("unexpected HTTP credential request: {}", 
request.uri());
+            };
+            Ok(Response::builder()
+                .status(StatusCode::OK)
+                .body(Bytes::from_static(body.as_bytes()))
+                .unwrap())
+        }
+    }
+
+    #[cfg(not(target_arch = "wasm32"))]
+    #[tokio::test]
+    async fn test_disable_config_load_skips_sso_and_process_credentials() {
+        for (profile, expected_ak, expect_command, expect_http) in [
+            ("sso-test", "sso-ak", 0, 1),
+            ("process-test", "process-ak", 1, 0),
+        ] {
+            let sources = AmbientCredentialSources::default();
+            let enabled_backend = S3Builder::default()
+                .bucket("example")
+                .region("us-east-1")
+                .endpoint("https://s3.us-east-1.amazonaws.com";)
+                .profile(profile)
+                .disable_ec2_metadata()
+                .build_backend()
+                .unwrap();
+            let ctx = Context::new()
+                .with_env(reqsign_core::StaticEnv {
+                    home_dir: Some("test-home".into()),
+                    envs: HashMap::from([("AWS_PROFILE".to_string(), 
profile.to_string())]),
+                })
+                .with_file_read(sources.clone())
+                .with_command_execute(sources.clone())
+                .with_http_send(sources.clone());
+            let (mut parts, ()) = 
Request::get("https://s3.us-east-1.amazonaws.com/example/test";)
+                .body(())
+                .unwrap()
+                .into_parts();
+            enabled_backend
+                .core
+                .signers
+                .default()
+                .clone()
+                .with_context(ctx)
+                .sign(&mut parts, None)
+                .await
+                .unwrap_or_else(|err| {
+                    panic!("profile {profile} must load without 
disable_config_load: {err:?}")
+                });
+            let auth = parts
+                .headers
+                .get(http::header::AUTHORIZATION)
+                .unwrap()
+                .to_str()
+                .unwrap();
+            assert!(
+                auth.contains(&format!("Credential={expected_ak}/")),
+                "{auth}"
+            );
+            assert_eq!(sources.command_calls.load(Ordering::SeqCst), 
expect_command);
+            assert_eq!(sources.http_calls.load(Ordering::SeqCst), expect_http);
+
+            let disabled_sources = AmbientCredentialSources::default();
+            let disabled_backend = S3Builder::default()
+                .bucket("example")
+                .region("us-east-1")
+                .endpoint("https://s3.us-east-1.amazonaws.com";)
+                .profile(profile)
+                .disable_config_load()
+                .disable_ec2_metadata()
+                .build_backend()
+                .unwrap();
+            let ctx = Context::new()
+                .with_env(reqsign_core::StaticEnv {
+                    home_dir: Some("test-home".into()),
+                    envs: HashMap::from([("AWS_PROFILE".to_string(), 
profile.to_string())]),
+                })
+                .with_file_read(disabled_sources.clone())
+                .with_command_execute(disabled_sources.clone())
+                .with_http_send(disabled_sources.clone());
+            let (mut parts, ()) = 
Request::get("https://s3.us-east-1.amazonaws.com/example/test";)
+                .body(())
+                .unwrap()
+                .into_parts();
+            let err = disabled_backend
+                .core
+                .signers
+                .default()
+                .clone()
+                .with_context(ctx)
+                .sign(&mut parts, None)
+                .await
+                .expect_err("disable_config_load must not load sso or process 
credentials");
+            assert_eq!(err.kind(), reqsign_core::ErrorKind::CredentialInvalid);
+            assert_eq!(disabled_sources.file_reads.load(Ordering::SeqCst), 0);
+            assert_eq!(disabled_sources.command_calls.load(Ordering::SeqCst), 
0);
+            assert_eq!(disabled_sources.http_calls.load(Ordering::SeqCst), 0);
+        }
+    }
+
+    #[tokio::test]
+    async fn test_disable_config_load_skips_web_identity_credentials() {
+        let env = HashMap::from([
+            (
+                "AWS_ROLE_ARN".to_string(),
+                "arn:aws:iam::000000000000:role/web-identity".to_string(),
+            ),
+            (
+                "AWS_WEB_IDENTITY_TOKEN_FILE".to_string(),
+                "test-home/web-identity-token".to_string(),
+            ),
+            ("AWS_REGION".to_string(), "us-east-1".to_string()),
+        ]);
+
+        let sources = AmbientCredentialSources::default();
+        let enabled_backend = S3Builder::default()
+            .bucket("example")
+            .region("us-east-1")
+            .endpoint("https://s3.us-east-1.amazonaws.com";)
+            .disable_ec2_metadata()
+            .build_backend()
+            .unwrap();
+        let ctx = Context::new()
+            .with_env(reqsign_core::StaticEnv {
+                home_dir: Some("test-home".into()),
+                envs: env.clone(),
+            })
+            .with_file_read(sources.clone())
+            .with_command_execute(sources.clone())
+            .with_http_send(sources.clone());
+        let (mut parts, ()) = 
Request::get("https://s3.us-east-1.amazonaws.com/example/test";)
+            .body(())
+            .unwrap()
+            .into_parts();
+        enabled_backend
+            .core
+            .signers
+            .default()
+            .clone()
+            .with_context(ctx)
+            .sign(&mut parts, None)
+            .await
+            .expect("web identity must load without disable_config_load");
+        let auth = parts
+            .headers
+            .get(http::header::AUTHORIZATION)
+            .unwrap()
+            .to_str()
+            .unwrap();
+        assert!(auth.contains("Credential=web-identity-ak/"), "{auth}");
+        assert_eq!(sources.http_calls.load(Ordering::SeqCst), 1);
+
+        let disabled_sources = AmbientCredentialSources::default();
+        let disabled_backend = S3Builder::default()
+            .bucket("example")
+            .region("us-east-1")
+            .endpoint("https://s3.us-east-1.amazonaws.com";)
+            .disable_config_load()
+            .disable_ec2_metadata()
+            .build_backend()
+            .unwrap();
+        let ctx = Context::new()
+            .with_env(reqsign_core::StaticEnv {
+                home_dir: Some("test-home".into()),
+                envs: env,
+            })
+            .with_file_read(disabled_sources.clone())
+            .with_command_execute(disabled_sources.clone())
+            .with_http_send(disabled_sources.clone());
+        let (mut parts, ()) = 
Request::get("https://s3.us-east-1.amazonaws.com/example/test";)
+            .body(())
+            .unwrap()
+            .into_parts();
+        let err = disabled_backend
+            .core
+            .signers
+            .default()
+            .clone()
+            .with_context(ctx)
+            .sign(&mut parts, None)
+            .await
+            .expect_err("disable_config_load must not load web identity 
credentials");
+        assert_eq!(err.kind(), reqsign_core::ErrorKind::CredentialInvalid);
+        assert_eq!(disabled_sources.file_reads.load(Ordering::SeqCst), 0);
+        assert_eq!(disabled_sources.http_calls.load(Ordering::SeqCst), 0);
+    }
+
+    #[tokio::test]
+    async fn test_disable_config_load_keeps_container_credentials_enabled() {
+        let sources = AmbientCredentialSources::default();
+        let backend = S3Builder::default()
+            .bucket("example")
+            .region("us-east-1")
+            .endpoint("https://s3.us-east-1.amazonaws.com";)
+            .disable_config_load()
+            .disable_ec2_metadata()
+            
.container_credentials_endpoint("http://169.254.170.2/v2/credentials/test";)
+            .build_backend()
+            .unwrap();
+        let ctx = Context::new()
+            .with_env(reqsign_core::StaticEnv {
+                home_dir: Some("test-home".into()),
+                envs: HashMap::from([
+                    ("AWS_PROFILE".to_string(), "sso-test".to_string()),
+                    (
+                        "AWS_ROLE_ARN".to_string(),
+                        
"arn:aws:iam::000000000000:role/web-identity".to_string(),
+                    ),
+                    (
+                        "AWS_WEB_IDENTITY_TOKEN_FILE".to_string(),
+                        "test-home/web-identity-token".to_string(),
+                    ),
+                ]),
+            })
+            .with_file_read(sources.clone())
+            .with_command_execute(sources.clone())
+            .with_http_send(sources.clone());
+        let (mut parts, ()) = 
Request::get("https://s3.us-east-1.amazonaws.com/example/test";)
+            .body(())
+            .unwrap()
+            .into_parts();
+
+        backend
+            .core
+            .signers
+            .default()
+            .clone()
+            .with_context(ctx)
+            .sign(&mut parts, None)
+            .await
+            .expect("container credentials must still load when 
disable_config_load is set");
+        let auth = parts
+            .headers
+            .get(http::header::AUTHORIZATION)
+            .unwrap()
+            .to_str()
+            .unwrap();
+        assert!(auth.contains("Credential=ecs-ak/"), "{auth}");
+        assert_eq!(sources.file_reads.load(Ordering::SeqCst), 0);
+        assert_eq!(sources.command_calls.load(Ordering::SeqCst), 0);
+        assert_eq!(sources.http_calls.load(Ordering::SeqCst), 1);
+    }
+
     struct StsErrorResponse {
         status: StatusCode,
         body: &'static str,
diff --git a/core/services/s3/src/config.rs b/core/services/s3/src/config.rs
index ec3994dcb3..d6e2392ca9 100644
--- a/core/services/s3/src/config.rs
+++ b/core/services/s3/src/config.rs
@@ -210,13 +210,14 @@ pub struct S3Config {
     ///
     /// <!-- @group Assume role -->
     pub assume_role_session_tags: Option<HashMap<String, String>>,
-    /// Disable automatic endpoint loading and the environment/profile
+    /// Disable automatic endpoint loading and ambient environment/profile
     /// credential providers.
     ///
     /// This skips endpoint environment variables and removes the static
-    /// environment and shared-profile credential slots. Region environment
-    /// lookup and other credential providers, including AWS container
-    /// credentials and EC2 instance metadata, remain enabled.
+    /// environment, shared-profile, SSO, web-identity, and external process
+    /// credential slots. Region environment lookup and compute metadata
+    /// credential providers, including AWS container credentials and EC2
+    /// instance metadata, remain enabled.
     ///
     /// <!-- @group Credentials -->
     pub disable_config_load: bool,
diff --git a/core/services/s3/src/docs.md b/core/services/s3/src/docs.md
index ddfdb27f63..893bdf8ac9 100644
--- a/core/services/s3/src/docs.md
+++ b/core/services/s3/src/docs.md
@@ -75,9 +75,10 @@ environment, profile, SSO, web identity, or external process 
providers.
 Configured static credentials retain their higher priority. 
[`crate::S3::role_arn`]
 continues to use the assembled provider as the source for role assumption, and
 [`crate::S3::credential_provider_chain`] continues to replace the assembled
-chain. [`crate::S3::disable_config_load`] disables automatic endpoint loading
-and the environment/profile credential slots. Region environment lookup and
-other credential providers, including container credentials, remain enabled.
+chain. [`crate::S3::disable_config_load`] disables automatic endpoint loading 
and
+the environment, profile, SSO, web-identity, and external process credential
+slots. Region environment lookup and compute metadata credential providers,
+including container credentials and EC2 instance metadata, remain enabled.
 
 ## S3 Express One Zone
 
diff --git a/website/data/services.json b/website/data/services.json
index e576fdf20d..4b3d7dc373 100644
--- a/website/data/services.json
+++ b/website/data/services.json
@@ -4330,7 +4330,7 @@
           "type": "bool",
           "required": false,
           "group": "Credentials",
-          "comments": "Disable automatic endpoint loading and the 
environment/profile\ncredential providers.\n\nThis skips endpoint environment 
variables and removes the static\nenvironment and shared-profile credential 
slots. Region environment\nlookup and other credential providers, including AWS 
container\ncredentials and EC2 instance metadata, remain enabled."
+          "comments": "Disable automatic endpoint loading and ambient 
environment/profile\ncredential providers.\n\nThis skips endpoint environment 
variables and removes the static\nenvironment, shared-profile, SSO, 
web-identity, and external process\ncredential slots. Region environment lookup 
and compute metadata\ncredential providers, including AWS container credentials 
and EC2\ninstance metadata, remain enabled."
         },
         {
           "name": "disable_ec2_metadata",
@@ -4502,37 +4502,37 @@
           "binding": "rust",
           "language": "rust",
           "minimal": "use opendal::Operator;\n\nlet operator = 
Operator::via_iter(\"s3\", [\n    (\"bucket\".to_string(), 
\"my-bucket\".to_string()),\n])?;",
-          "full": "use opendal::Operator;\n\nlet operator = 
Operator::via_iter(\"s3\", [\n    // --- General ---\n    // root of this 
backend.\n    //\n    // All operations will happen under this root.\n    //\n  
  // default to `/` if not set.\n    // (\"root\".to_string(), 
\"/\".to_string()),\n\n    // bucket name of this backend.\n    //\n    // 
required.\n    (\"bucket\".to_string(), \"my-bucket\".to_string()),\n\n    // 
endpoint of this backend.\n    //\n    // Endpoint must be ful [...]
+          "full": "use opendal::Operator;\n\nlet operator = 
Operator::via_iter(\"s3\", [\n    // --- General ---\n    // root of this 
backend.\n    //\n    // All operations will happen under this root.\n    //\n  
  // default to `/` if not set.\n    // (\"root\".to_string(), 
\"/\".to_string()),\n\n    // bucket name of this backend.\n    //\n    // 
required.\n    (\"bucket\".to_string(), \"my-bucket\".to_string()),\n\n    // 
endpoint of this backend.\n    //\n    // Endpoint must be ful [...]
         },
         {
           "binding": "java",
           "language": "java",
           "minimal": "import java.util.HashMap;\nimport java.util.Map;\nimport 
org.apache.opendal.Operator;\n\nMap<String, String> config = new 
HashMap<>();\nconfig.put(\"bucket\", \"my-bucket\");\nOperator operator = 
Operator.of(\"s3\", config);",
-          "full": "import java.util.HashMap;\nimport java.util.Map;\nimport 
org.apache.opendal.Operator;\n\nMap<String, String> config = new 
HashMap<>();\n// --- General ---\n// root of this backend.\n//\n// All 
operations will happen under this root.\n//\n// default to `/` if not set.\n// 
config.put(\"root\", \"/\");\n\n// bucket name of this backend.\n//\n// 
required.\nconfig.put(\"bucket\", \"my-bucket\");\n\n// endpoint of this 
backend.\n//\n// Endpoint must be full uri, e.g.\n//\n// [...]
+          "full": "import java.util.HashMap;\nimport java.util.Map;\nimport 
org.apache.opendal.Operator;\n\nMap<String, String> config = new 
HashMap<>();\n// --- General ---\n// root of this backend.\n//\n// All 
operations will happen under this root.\n//\n// default to `/` if not set.\n// 
config.put(\"root\", \"/\");\n\n// bucket name of this backend.\n//\n// 
required.\nconfig.put(\"bucket\", \"my-bucket\");\n\n// endpoint of this 
backend.\n//\n// Endpoint must be full uri, e.g.\n//\n// [...]
         },
         {
           "binding": "python",
           "language": "python",
           "minimal": "import opendal\n\noperator = opendal.Operator(\n    
\"s3\",\n    bucket=\"my-bucket\",\n)",
-          "full": "import opendal\n\noperator = opendal.Operator(\n    
\"s3\",\n    # --- General ---\n    # root of this backend.\n    #\n    # All 
operations will happen under this root.\n    #\n    # default to `/` if not 
set.\n    # root=\"/\",\n\n    # bucket name of this backend.\n    #\n    # 
required.\n    bucket=\"my-bucket\",\n\n    # endpoint of this backend.\n    
#\n    # Endpoint must be full uri, e.g.\n    #\n    # - AWS S3: 
`https://s3.amazonaws.com` or `https://s3.{region [...]
+          "full": "import opendal\n\noperator = opendal.Operator(\n    
\"s3\",\n    # --- General ---\n    # root of this backend.\n    #\n    # All 
operations will happen under this root.\n    #\n    # default to `/` if not 
set.\n    # root=\"/\",\n\n    # bucket name of this backend.\n    #\n    # 
required.\n    bucket=\"my-bucket\",\n\n    # endpoint of this backend.\n    
#\n    # Endpoint must be full uri, e.g.\n    #\n    # - AWS S3: 
`https://s3.amazonaws.com` or `https://s3.{region [...]
         },
         {
           "binding": "nodejs",
           "language": "javascript",
           "minimal": "import { Operator } from \"opendal\";\n\nconst operator 
= new Operator(\"s3\", {\n  bucket: \"my-bucket\",\n});",
-          "full": "import { Operator } from \"opendal\";\n\nconst operator = 
new Operator(\"s3\", {\n  // --- General ---\n  // root of this backend.\n  
//\n  // All operations will happen under this root.\n  //\n  // default to `/` 
if not set.\n  // root: \"/\",\n\n  // bucket name of this backend.\n  //\n  // 
required.\n  bucket: \"my-bucket\",\n\n  // endpoint of this backend.\n  //\n  
// Endpoint must be full uri, e.g.\n  //\n  // - AWS S3: 
`https://s3.amazonaws.com` or `https://s3.{ [...]
+          "full": "import { Operator } from \"opendal\";\n\nconst operator = 
new Operator(\"s3\", {\n  // --- General ---\n  // root of this backend.\n  
//\n  // All operations will happen under this root.\n  //\n  // default to `/` 
if not set.\n  // root: \"/\",\n\n  // bucket name of this backend.\n  //\n  // 
required.\n  bucket: \"my-bucket\",\n\n  // endpoint of this backend.\n  //\n  
// Endpoint must be full uri, e.g.\n  //\n  // - AWS S3: 
`https://s3.amazonaws.com` or `https://s3.{ [...]
         },
         {
           "binding": "ruby",
           "language": "ruby",
           "minimal": "require \"opendal\"\n\noperator = 
OpenDal::Operator.new(\"s3\", {\n  \"bucket\" => \"my-bucket\",\n})",
-          "full": "require \"opendal\"\n\noperator = 
OpenDal::Operator.new(\"s3\", {\n  # --- General ---\n  # root of this 
backend.\n  #\n  # All operations will happen under this root.\n  #\n  # 
default to `/` if not set.\n  # \"root\" => \"/\",\n\n  # bucket name of this 
backend.\n  #\n  # required.\n  \"bucket\" => \"my-bucket\",\n\n  # endpoint of 
this backend.\n  #\n  # Endpoint must be full uri, e.g.\n  #\n  # - AWS S3: 
`https://s3.amazonaws.com` or `https://s3.{region}.amazonaws. [...]
+          "full": "require \"opendal\"\n\noperator = 
OpenDal::Operator.new(\"s3\", {\n  # --- General ---\n  # root of this 
backend.\n  #\n  # All operations will happen under this root.\n  #\n  # 
default to `/` if not set.\n  # \"root\" => \"/\",\n\n  # bucket name of this 
backend.\n  #\n  # required.\n  \"bucket\" => \"my-bucket\",\n\n  # endpoint of 
this backend.\n  #\n  # Endpoint must be full uri, e.g.\n  #\n  # - AWS S3: 
`https://s3.amazonaws.com` or `https://s3.{region}.amazonaws. [...]
         },
         {
           "binding": "go",
           "language": "go",
           "minimal": "import 
(\n\t\"github.com/apache/opendal-go-services/s3\"\n\topendal 
\"github.com/apache/opendal/bindings/go\"\n)\n\noperator, err := 
opendal.NewOperator(s3.Scheme, opendal.OperatorOptions{\n\t\"bucket\": 
\"my-bucket\",\n})",
-          "full": "import 
(\n\t\"github.com/apache/opendal-go-services/s3\"\n\topendal 
\"github.com/apache/opendal/bindings/go\"\n)\n\noperator, err := 
opendal.NewOperator(s3.Scheme, opendal.OperatorOptions{\n\t// --- General 
---\n\t// root of this backend.\n\t//\n\t// All operations will happen under 
this root.\n\t//\n\t// default to `/` if not set.\n\t// \"root\": 
\"/\",\n\n\t// bucket name of this backend.\n\t//\n\t// 
required.\n\t\"bucket\": \"my-bucket\",\n\n\t// endpoint of this ba [...]
+          "full": "import 
(\n\t\"github.com/apache/opendal-go-services/s3\"\n\topendal 
\"github.com/apache/opendal/bindings/go\"\n)\n\noperator, err := 
opendal.NewOperator(s3.Scheme, opendal.OperatorOptions{\n\t// --- General 
---\n\t// root of this backend.\n\t//\n\t// All operations will happen under 
this root.\n\t//\n\t// default to `/` if not set.\n\t// \"root\": 
\"/\",\n\n\t// bucket name of this backend.\n\t//\n\t// 
required.\n\t\"bucket\": \"my-bucket\",\n\n\t// endpoint of this ba [...]
         }
       ]
     },

Reply via email to