diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index 389644d36967..70bf0e0d04b9 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -83,6 +83,8 @@ https://github.com/elastic/beats/compare/v8.8.1\...main[Check the HEAD diff] - [threatintel] MISP pagination fixes {pull}37898[37898] - Fix file handle leak when handling errors in filestream {pull}37973[37973] - Fix bug in CEL input rate limit logic. {issue}40106[40106] {pull}40270[40270] +- Relax requirements in Okta entity analytics provider user and device profile data shape. {pull}40359[40359] +- Fix bug in Okta entity analytics rate limit logic. {issue}40106[40106] {pull}40267[40267] *Heartbeat* diff --git a/x-pack/filebeat/input/entityanalytics/provider/okta/internal/okta/okta.go b/x-pack/filebeat/input/entityanalytics/provider/okta/internal/okta/okta.go index aae221e6be94..6d0c3c94cfc3 100644 --- a/x-pack/filebeat/input/entityanalytics/provider/okta/internal/okta/okta.go +++ b/x-pack/filebeat/input/entityanalytics/provider/okta/internal/okta/okta.go @@ -408,7 +408,7 @@ func oktaRateLimit(h http.Header, window time.Duration, limiter *rate.Limiter) e rateLimit := rate.Limit(rem / per) // Process reset if we need to wait until reset to avoid a request against a zero quota. - if rateLimit == 0 { + if rateLimit <= 0 { waitUntil := resetTime.UTC() // next gives us a sane next window estimate, but the // estimate will be overwritten when we make the next