Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renew IAM Data before requests if initialized in IAM mode #29

Open
rhnvrm opened this issue Feb 12, 2025 · 1 comment
Open

Renew IAM Data before requests if initialized in IAM mode #29

rhnvrm opened this issue Feb 12, 2025 · 1 comment

Comments

@rhnvrm
Copy link
Owner

rhnvrm commented Feb 12, 2025

For long running services, IAM data expires after some time. This leads to simples3 returning 400 for requests.

Using Expiry: https://github.com/rhnvrm/simples3/blob/4257c79c4f11f9415434e8fbe8113ee6a353340b/simples3.go#L133C32-L133C42

It is possible to know that the data has already expired.

The client should ideally automatically handle comparing the expiry with the current time and updating the IAM response before making the requests.

@joicemjoseph
Copy link
Contributor

I can volunteer. Will raise a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants