miomiocat opened a new issue, #1509:
URL: https://github.com/apache/paimon-rust/issues/1509

   ### Problem
   
   A Paimon reader running on ECS with a RAM role can obtain temporary OSS 
credentials from the instance. With the default OpenDAL OSS backend, Paimon 
requires a static access key ID and secret in the catalog options before 
OpenDAL can resolve credentials.
   
   ### Reproduction
   
   On Apache Paimon Rust main at `5de28de3`, use the default crate features and 
build an OSS FileIO with only the endpoint. This reproduces the failure locally 
without an OSS bucket or an ECS instance.
   
   ```rust
   use paimon::io::FileIOBuilder;
   
   fn main() -> paimon::Result<()> {
       let _io = FileIOBuilder::new("oss")
           .with_prop("fs.oss.endpoint", "https://oss-cn-hangzhou.aliyuncs.com";)
           .build()?;
       Ok(())
   }
   ```
   
   The call returns `ConfigInvalid` with the message `Missing required OSS 
config: fs.oss.accessKeyId`. It fails before the first storage request.
   
   ### Expected behavior
   
   An endpoint-only configuration should build successfully. On a subsequent 
request, OpenDAL can use credentials supplied by the environment or an ECS RAM 
role. Supplying only one member of a static key pair should report the missing 
option.
   
   The earlier discussion covered the same parser restriction. [Previous PR 
#1035](https://github.com/apache/paimon-rust/pull/1035)
   
   I’m willing to submit a fix.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to