client-python icon indicating copy to clipboard operation
client-python copied to clipboard

[API RATE LIMIT]

Open R3dHash opened this issue 1 year ago • 3 comments

Problem to Solve

We'd like to apply an API Rate limit to custom scripts leveraging pycti. As such it would be globally applied to a python script.

Current Workaround

We use "from ratelimit import limits, sleep_and_retry" => https://pypi.org/project/ratelimit/ in our script.

Proposed Solution

We could leverage an option in the same vein as "set_retry_number" that could be "set_api_rate_limit" provided by design in pycti. Beyond scripts under development, if possible it would be interesting to enable such option from the frontend linked to specific Roles (limiting all connectors) or users (limiting specific connectors but not all of them).

Additional Information

N/A

R3dHash avatar Jul 19 '23 15:07 R3dHash

Are you able to leverage rate limiting at the platform level?

SamuelHassine avatar Jul 23 '23 12:07 SamuelHassine

Can you indicate where I can find the feature in the code or in a screendshot so I check with the infra's teams if it is leveraged ?

R3dHash avatar Jul 23 '23 20:07 R3dHash

up :)

R3dHash avatar Nov 07 '23 08:11 R3dHash