You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, with S3 uploads using STS credentials, if the upload takes longer than the session token expiration, the upload fails.
I've implemented a simple example change here to demonstrate how this credential renewal could be achieved using a callback, along with a minor adjustment to retrieve credentials via a method rather than directly accessing accessKey and secretKey on the Minio class: https://github.com/JacoFaberSA/minio-dart/tree/credential-renewal-feature
However, this solution seems to benefit only S3 uploads as far as I can see.
Implemented in the fork (0.2.0), along the lines you proposed. The client can
resolve its credentials through a callback and refresh them when they get
old:
The credentials that are actually used are the ones that end up in the
signature and in the x-amz-security-token header, and refreshCredentials()
forces a refresh. The provider is used for every request, not only for
uploads.
Activity
arrrrny commentedon Oct 22, 2026
Implemented in the fork (0.2.0), along the lines you proposed. The client can
resolve its credentials through a callback and refresh them when they get
old:
The credentials that are actually used are the ones that end up in the
signature and in the
x-amz-security-tokenheader, andrefreshCredentials()forces a refresh. The provider is used for every request, not only for
uploads.
arrrrny commentedon Oct 22, 2026
This ships in zuraffa_minio — the maintained fork of this package, which upstream has not touched since 4725 August 2025.
The fork keeps the API of the original package unchanged, so moving over is an import swap:
Source, the changelog and the sweep of the open issues of this tracker: https://github.com/arrrrny/zuraffa_minio