You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "gabeiglio (via GitHub)" <gi...@apache.org> on 2026/05/11 13:23:41 UTC

[PR] feat(io): Vended credential refresh for S3 [iceberg-python]

gabeiglio opened a new pull request, #3351:
URL: https://github.com/apache/iceberg-python/pull/3351

   <!--
   Thanks for opening a pull request!
   -->
   
   <!-- In the case this PR will resolve an issue, please replace ${GITHUB_ISSUE_ID} below with the actual Github issue id. -->
   <!-- Closes #${GITHUB_ISSUE_ID} -->
   
   # Rationale for this change
   
   When doing long writes to a table (specifically ML training) the credentials vended with the last load table can be expired if the commit takes too long.
   
   Here as same as Java, we proactively refresh the s3 vended credentials if they are 5 minutes or less from expiration.
   
   ## Are these changes tested?
   
   Yes, added tests to tests/io/test_io.py to test all the logic for when its needed to call the vended credentials endpoint from the file io
   
   ## Are there any user-facing changes?
   
   Yes, users can now add the following properties, to allow automatic vended credential refresh to take place
   ```
   client.refresh-credentials-endpoint -> endpoint to where to call IRC
   client.refresh-credentials-enabled -> Refresh credential enabled set to "true"
   uri -> the catalog uri
   ```
   
   <!-- In the case of user-facing changes, please add the changelog label. -->
   


-- 
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-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] feat(io): Vended credential refresh for S3 [iceberg-python]

Posted by "gabeiglio (via GitHub)" <gi...@apache.org>.
gabeiglio closed pull request #3351: feat(io): Vended credential refresh for S3
URL: https://github.com/apache/iceberg-python/pull/3351


-- 
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-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] feat(io): Vended credential refresh for S3 [iceberg-python]

Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on PR #3351:
URL: https://github.com/apache/iceberg-python/pull/3351#issuecomment-4732353047

   Thanks for the PR @gabeiglio
   
   I was reviewing this and trying to figure out the best design so that we can separate concerns between Rest Catalog and FileIO.
   I think adding the credential refresh functionality would be a good first step (#3499 and #3500) 
   But im struggling a bit to isolate FileIO, do you have anything in mind? 


-- 
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-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] feat(io): Vended credential refresh for S3 [iceberg-python]

Posted by "gabeiglio (via GitHub)" <gi...@apache.org>.
gabeiglio commented on PR #3351:
URL: https://github.com/apache/iceberg-python/pull/3351#issuecomment-4707635610

   actually will close and split the PR in three:
   1. Credential Vending class impl
   2. PyArrowFileIO refresh implementation
   3. FsspecFileIO refresh implementation


-- 
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-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] feat(io): Vended credential refresh for S3 [iceberg-python]

Posted by "gabeiglio (via GitHub)" <gi...@apache.org>.
gabeiglio commented on PR #3351:
URL: https://github.com/apache/iceberg-python/pull/3351#issuecomment-4680428073

   @kevinjqliu time flies 😅 I have applied the changes to address the concerns with coupling the session with the IO. Let me know what you think. 
   
   Also I have some logic to rewrite the cached fileio iff we need to refresh the tokens 


-- 
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-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] feat(io): Vended credential refresh for S3 [iceberg-python]

Posted by "gabeiglio (via GitHub)" <gi...@apache.org>.
gabeiglio commented on PR #3351:
URL: https://github.com/apache/iceberg-python/pull/3351#issuecomment-4533221168

   I think that I a good call out, would be kind of the same implementation as we have to propagate the CredentialProvider object down to FileIO object. But I do agree, it abstracts away the refresh impl from FIleIO which is nice, will make the changes this week :)


-- 
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-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org