elastic / elastic/integrations

[Github] Security Advisories stops working if it gets a rate limit response

Open
#20,035 3 comments 0 reactions 1 assignee Claimed by @moxarth-rathod View on GitHub
bug Integration:github Team:SDE-Crest Team:Security-Service Integrations
Dominant language
Handlebars
Stars
333
Forks
647
Avg merge
2d 17h
Merged PRs (30d)
225

Description

Hello,

It seems that the inputs used in the Security Advisories dataset in the Github integration will stop working if they hit any response that is not `200`

It is possible to receive a `403` with a rate limit message, in this case the input should try to get the data again on the next scheduled run, but this does not happen.

When a rate limit is reached, this is the response:

> GET https://api.github.com/advisories: {"message":"API rate limit exceeded for IP ADDRESS. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"}

This response returns a `403` in the `error.code` field and `403 rate limit exceeded` in the `error.id` field.

The input should retry later for these cases.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.