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

do not re-auth on backoff #522

Merged
merged 2 commits into from
Aug 12, 2023
Merged

do not re-auth on backoff #522

merged 2 commits into from
Aug 12, 2023

Conversation

synfinatic
Copy link
Owner

Calls to sso.ListAccountRoles() can cause multiple kinds of errors:

  • Auth
  • Backoff
  • Others (fatal)

Now we treat each kind differently and do not try to re-auth on backoff

Refs: #520

Calls to sso.ListAccountRoles() can cause multiple kinds of errors:
- Auth
- Backoff
- Others (fatal)

Now we treat each kind differently and do not try to re-auth on backoff

Correct documentation that `Threads` default is 5, not 10

Refs: #520
@synfinatic synfinatic force-pushed the rate-limit branch 3 times, most recently from af992df to 2aca269 Compare August 12, 2023 21:44
@codecov
Copy link

codecov bot commented Aug 12, 2023

Codecov Report

Merging #522 (ed7ada2) into main (1c84d28) will decrease coverage by 0.04%.
Report is 2 commits behind head on main.
The diff coverage is 72.92%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #522      +/-   ##
==========================================
- Coverage   80.64%   80.60%   -0.04%     
==========================================
  Files          24       24              
  Lines        2826     2882      +56     
==========================================
+ Hits         2279     2323      +44     
- Misses        477      492      +15     
+ Partials       70       67       -3     
Files Changed Coverage Δ
sso/cache.go 50.93% <0.00%> (+0.11%) ⬆️
sso/settings.go 75.96% <ø> (ø)
sso/awssso.go 68.83% <73.12%> (+1.67%) ⬆️
sso/config.go 91.74% <100.00%> (+0.14%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1c84d28...ed7ada2. Read the comment docs.

@synfinatic synfinatic force-pushed the rate-limit branch 2 times, most recently from 0ced3ab to 1302823 Compare August 12, 2023 22:37
This seems to be probably the best- using the internal AWS SDK
config options to manage our failures.
@synfinatic synfinatic merged commit d807666 into main Aug 12, 2023
5 of 7 checks passed
@synfinatic synfinatic deleted the rate-limit branch August 12, 2023 22:59
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 this pull request may close these issues.

None yet

1 participant