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

Very high NDV API call rate #23

Open
sergeykad opened this issue Jul 7, 2024 · 1 comment
Open

Very high NDV API call rate #23

sergeykad opened this issue Jul 7, 2024 · 1 comment

Comments

@sergeykad
Copy link

sergeykad commented Jul 7, 2024

NDV API Documentation recommends calling the API no more than once every two hours, while the container calls it every two minutes. It can create a DDoS attack if enough people use this project.

There is also no easily accessible way to configure it. Exposing the cron configuration as an environment variable can be helpful.

@nauni77
Copy link

nauni77 commented Jul 21, 2024

Yes, thats true. I changed some things and added a pull request, but nobody take care. So I released my fork to make it work for my purposes:

https://hub.docker.com/repository/docker/nauni1977/owasp-db-cache/general

  • database will be reused and not build at every start of the container; drop it if SQL-Files change
  • you can define the call rate (default 1 per hour)

I use normally the command to start:

docker run --rm --name owasp-db -p 3306:3306 -v owasp-db:/var/lib/mysql -v owasp-config:/var/lib/owasp-db-cache -e NVD_API_KEY=<add your api key> -e UPDATE_INTERVALL="0/5 * * * *" nauni1977/owasp-db-cache:10.0.1

If you are interessted I will add some documentation - for now it's only used by myself.

If the project is interessted to add my changes - please tell me and I will add a new pull request.

Best regards, Oli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants