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

[Bug]: Should not retry expired credentials #363

Closed
YakDriver opened this issue Feb 14, 2023 · 0 comments · Fixed by #362
Closed

[Bug]: Should not retry expired credentials #363

YakDriver opened this issue Feb 14, 2023 · 0 comments · Fixed by #362

Comments

@YakDriver
Copy link
Member

YakDriver commented Feb 14, 2023

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Environment and Versions

# any

Debug

<ErrorResponse xmlns="https://sts.amazonaws.com/doc/2011-06-15/">
<Error>
  <Type>Sender</Type>
  <Code>ExpiredToken</Code>
  <Message>The security token included in the request is expired</Message>
</Error>
<RequestId>01234567-89ab-cdef-0123-456789abcdef</RequestId>
</ErrorResponse>

Expected Behavior

If you attempt to create a new session with expired credentials, it should fail fast and report the error nearly immediately.

Actual Behavior

It does retry/backoff causing long or terminal delays in reporting the expired credentials error.

Note: #23 and hashicorp/terraform-provider-aws#6992 take the approach of adding a flag to avoid this retrying behavior. However, after discussions with the AWS Provider team, security, and a former AWS Provider engineer, there appears to be no situation in which an expired credential would ever become unexpired. In other words, long retrying efforts are a bug that can be fixed without adding a new flag (e.g., stop_on_expired_creds).

Steps to Reproduce

  1. Use an expired credential
  2. terraform apply

References

Are there any other GitHub issues (open or closed) or pull requests that should be linked here? Terraform or AWS documentation?

@YakDriver YakDriver changed the title [Bug:] Should not retry expired credentials [Bug]: Should not retry expired credentials Feb 14, 2023
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

Successfully merging a pull request may close this issue.

1 participant