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

Cherry-pick #18534 to 7.7: Address Okta input issue #18530 #18549

Merged
merged 3 commits into from
May 15, 2020
Merged

Cherry-pick #18534 to 7.7: Address Okta input issue #18530 #18549

merged 3 commits into from
May 15, 2020

Conversation

alakahakai
Copy link

Cherry-pick of PR #18534 to 7.7 branch. Original message:

This PR addresses issue #18530 where a earlier than now time is passed by the rate limit header.

Also added a test case for this.

* Add check for time because time.Until does not correctly handle a time that is earlier than time.Now().

* Update getRateLimit to handle a rate limit time is earlier than now.

* Add some additional safe guard to check Ticker

* Add descriptions for getRateLimit function and test functions.

* Update CHANGELOG.next.asciidoc

(cherry picked from commit db62862)
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label May 14, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/siem (Team:SIEM)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label May 14, 2020
@alakahakai alakahakai merged commit f39ac65 into elastic:7.7 May 15, 2020
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants