spdx-online-tools
spdx-online-tools copied to clipboard
Create a mechanism to limit the requests to the online tools
Programmatic access could put a substantial load on the service if multiple requests are made with high frequency.
Suggest an enhancement to govern the rate at which requests from the same user and/or IP address is made.
This could also apply to the web access.
@goneall do you have the problem already or not? If not you may be worrying for nothing? FWIW, there are throttling things that can be plugged in Django alright
@pombredanne Not a current problem, but it has not been widely advertised (still waiting for the Linux Foundation to provide the server). Good point on the Django features - this may be an easy solution. Perhaps someone familiar with Django can create a PR? This also may be a good first feature for someone new contributing to the tools.
@goneall @pombredanne I shall start working on this.
@rtgdk @goneall @pombredanne If that is fine by you; I would like to use this: https://django-ratelimit.readthedocs.io/en/stable/
@goneall @pombredanne I have sumitted a PR for this issue.
The license sumission is reduced to 100 per hour by a particular user.
When the limit is reached, the modal below is shown.
@goneall @rtgdk @pombredanne I have updated the PR of this issue.