Make it possible to override credentialsTreatedAsExpired in credential-provider-node #6875
Open
1 of 2 tasks
Labels
feature-request
New feature or enhancement. May require GitHub community feedback.
p2
This is a standard priority issue
response-requested
Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days.
Describe the feature
Be able to override expiration time validation.
Use Case
We are using AWS Transcribe. It uses a presigned url to receive data via a websocket. Once the session runs out we are unable to receive data anymore. We are unable to update the session without creating a new websocket connection - during handover we loose data or have to deal with duplicate data. Right now the session can get as short as 5 minutes. We use AWS Transcribe to transcribe calls our calls are usually shorter than one hour. We'd like to change the code so that the session is automatically refreshed if it's valid for less than an hour. Right now we are recreating the provider for every incoming call so we are sure to not loose data - this is causing the session to be created every time and no memoization is being done - which causes unneeded calls to the sts service.
Proposed Solution
Make it possible to override the credentialsWillNeedRefresh. Alternatively provide the chain so that we can create our own memoized version of it. I do not want to have to maintain the chain myself.
Other Information
No response
Acknowledgements
SDK version used
3.744.0
Environment details (OS name and version, etc.)
alpine linux 3.21
The text was updated successfully, but these errors were encountered: