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

[API RATE LIMIT] #426

Open
R3dHash opened this issue Jul 19, 2023 · 3 comments
Open

[API RATE LIMIT] #426

R3dHash opened this issue Jul 19, 2023 · 3 comments
Labels
question use for asking information about a functionality or behavior

Comments

@R3dHash
Copy link

R3dHash commented Jul 19, 2023

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

@SamuelHassine SamuelHassine added the question use for asking information about a functionality or behavior label Jul 23, 2023
@SamuelHassine
Copy link
Member

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

@R3dHash
Copy link
Author

R3dHash commented Jul 23, 2023

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
Copy link
Author

R3dHash commented Nov 7, 2023

up :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question use for asking information about a functionality or behavior
Projects
None yet
Development

No branches or pull requests

2 participants