This is an automated email from the ASF dual-hosted git repository.
JingsongLi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git
The following commit(s) were added to refs/heads/master by this push:
new 74a493c6fe [filesystem][obs] Remove access key and secret from
required options in OBSLoader (#8958)
74a493c6fe is described below
commit 74a493c6fee3a27bb31ea33b8ee64ef56a6e1baf
Author: Eunbin Son <[email protected]>
AuthorDate: Mon Aug 3 20:08:03 2026 +0900
[filesystem][obs] Remove access key and secret from required options in
OBSLoader (#8958)
---
.../main/java/org/apache/paimon/obs/OBSLoader.java | 2 -
.../java/org/apache/paimon/obs/OBSLoaderTest.java | 51 ++++++++++++++++++++++
2 files changed, 51 insertions(+), 2 deletions(-)
diff --git
a/paimon-filesystems/paimon-obs/src/main/java/org/apache/paimon/obs/OBSLoader.java
b/paimon-filesystems/paimon-obs/src/main/java/org/apache/paimon/obs/OBSLoader.java
index 1afab7e8db..a6ef67abcd 100644
---
a/paimon-filesystems/paimon-obs/src/main/java/org/apache/paimon/obs/OBSLoader.java
+++
b/paimon-filesystems/paimon-obs/src/main/java/org/apache/paimon/obs/OBSLoader.java
@@ -57,8 +57,6 @@ public class OBSLoader implements FileIOLoader {
public List<String[]> requiredOptions() {
List<String[]> options = new ArrayList<>();
options.add(new String[] {"fs.obs.endpoint"});
- options.add(new String[] {"fs.obs.access.key", "fs.obs.access-key"});
- options.add(new String[] {"fs.obs.secret.key", "fs.obs.secret-key"});
return options;
}
diff --git
a/paimon-filesystems/paimon-obs/src/test/java/org/apache/paimon/obs/OBSLoaderTest.java
b/paimon-filesystems/paimon-obs/src/test/java/org/apache/paimon/obs/OBSLoaderTest.java
new file mode 100644
index 0000000000..ed56d7ef29
--- /dev/null
+++
b/paimon-filesystems/paimon-obs/src/test/java/org/apache/paimon/obs/OBSLoaderTest.java
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.paimon.obs;
+
+import org.junit.jupiter.api.Test;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+/** Tests for {@link OBSLoader}. */
+public class OBSLoaderTest {
+
+ @Test
+ public void testScheme() {
+ assertThat(new OBSLoader().getScheme()).isEqualTo("obs");
+ }
+
+ /**
+ * The OBS loader must only require the endpoint, which OBSA reads without
a default. Access key
+ * / secret key are optional so that credential-less authentication (ECS
agency and other {@code
+ * fs.obs.security.provider} chains) routes through the bundled OBS plugin
instead of being
+ * gated out and falling back to another {@code FileIO}.
+ */
+ @Test
+ public void testDoesNotRequireCredentials() {
+ List<String> keys = new ArrayList<>();
+ for (String[] group : new OBSLoader().requiredOptions()) {
+ keys.addAll(Arrays.asList(group));
+ }
+ assertThat(keys).containsExactly("fs.obs.endpoint");
+ }
+}