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.x: Address Okta input issue #18530 #18548

Merged
merged 3 commits into from
May 15, 2020
Merged

Cherry-pick #18534 to 7.x: Address Okta input issue #18530 #18548

merged 3 commits into from
May 15, 2020

Conversation

alakahakai
Copy link

Cherry-pick of PR #18534 to 7.x 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
@elasticmachine
Copy link
Collaborator

elasticmachine commented May 14, 2020

💚 Build Succeeded

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [andrewkroh commented: run tests]

  • Start Time: 2020-05-14T22:36:46.869+0000

  • Duration: 46 min 58 sec (2758441)

Test stats 🧪

Test Results
Failed 0
Passed 1184
Skipped 128
Total 1312

@andrewkroh
Copy link
Member

run tests

@alakahakai alakahakai merged commit b300a95 into elastic:7.x May 15, 2020
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