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
The fromWebIdentity passes to fetchAuthInBackground the action that performs the AssumeRoleWithWebIdentity [1]. AssumeRoleWithWebIdentity may throw ServiceError (as exception Amazonka.Types.Error), not just HTTPException. However, fetchAuthInBackground catches and throws only HTTPException to the original thread by throwTo, leaving other exceptions to the default handler [2]. Thus, if a ServiceError is thrown, the temporary credential update will be interrupted without the original thread being aware of it.
So, I believe that fetchAuthInBackground should either re-throw other exceptions raised by the action to the original thread or have some error recovery method.
The
fromWebIdentity
passes tofetchAuthInBackground
the action that performs theAssumeRoleWithWebIdentity
[1].AssumeRoleWithWebIdentity
may throwServiceError
(as exceptionAmazonka.Types.Error
), not justHTTPException
. However,fetchAuthInBackground
catches and throws onlyHTTPException
to the original thread bythrowTo
, leaving other exceptions to the default handler [2]. Thus, if aServiceError
is thrown, the temporary credential update will be interrupted without the original thread being aware of it.So, I believe that
fetchAuthInBackground
should either re-throw other exceptions raised by the action to the original thread or have some error recovery method.[1]
amazonka/lib/amazonka/src/Amazonka/Auth/STS.hs
Lines 80 to 94 in ea86794
[2] Because the
RetrievalError
constructor accepts an argument of typeHTTPException
,e
must be of the same type:amazonka/lib/amazonka/src/Amazonka/Auth/Background.hs
Lines 63 to 65 in ea86794
The text was updated successfully, but these errors were encountered: