ananthaksr commented on code in PR #1241: URL: https://github.com/apache/iceberg-rust/pull/1241#discussion_r2057443166
########## crates/catalog/rest/src/client.rs: ########## @@ -220,6 +225,39 @@ impl HttpClient { /// Executes the given `Request` and returns a `Response`. pub async fn execute(&self, mut request: Request) -> Result<Response> { request.headers_mut().extend(self.extra_headers.clone()); + + if let Some((loader, signer)) = &self.signer { + match loader.load().await { Review Comment: Do we want to load credentials with every request? ``` let config = AwsConfig::default().from_profile().from_env(); println!("access_key_id {:?}", config.access_key_id); let loader = AwsDefaultLoader::new(self.client().unwrap_or_default(), config); ``` -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org