Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is currently live in production
This remediates the problem sireq was having.
In more detail, this improves logging and fixes a loop that wasn't working as intended. Inside the
looper
function was a nested while loop. Here's a simplified and annotated versionThe problem being that the auth log was so busy there was always new data.
This led to continuous fetching of new data well beyond what Duo's rate limit allows for. Per Cole on duo support ticket 01567856 (forwarded to Kevin and Jonathan) the maximum API rate is in the range of 2-3 requests per minute and
These API limits are per Duo application integration which left sireq largely locked out because it used to share an integration with this. It no longer does.