Skip to content

Make it possible to override credentialsTreatedAsExpired in credential-provider-node #6875

@thomaschaaf

Description

@thomaschaaf

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

  • I may be able to implement this feature request
  • This feature might incur a breaking change

SDK version used

3.744.0

Environment details (OS name and version, etc.)

alpine linux 3.21

Metadata

Metadata

Assignees

Labels

closed-for-stalenessfeature-requestNew feature or enhancement. May require GitHub community feedback.p2This is a standard priority issueresponse-requestedWaiting on additional info and feedback. Will move to \"closing-soon\" in 7 days.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions