voxel51 / eta

ETA: Extensible Toolkit for Analytics
https://voxel51.com
Apache License 2.0
29 stars 13 forks source link

Always reload web identity token file #551

Closed brimoor closed 2 years ago

brimoor commented 2 years ago

When working with S3StorageClient using the AWS_ROLE_ARN and AWS_WEB_IDENTITY_TOKEN_FILE configuration options, it turns out that, in practice, the web identity token file is updated periodically. For example in Kubernetes it is updated at least every 24 hours.

This PR re-reads the web identity token each time credentials are refreshed to ensure that expiration never occurs.

Resources