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

Fix: get vts endpoint #1860

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Fix: get vts endpoint #1860

wants to merge 5 commits into from

Conversation

nichtsfrei
Copy link
Member

@nichtsfrei nichtsfrei commented Mar 5, 2025

GET /vts is too slow for bombardiers default timeout.

This fixes the first byte timeout issue and can be tested via:
`bombardier localhost:3000/vts` which shou just return 2xx and not crash
openvasd.

Depends on: #1813

SC-1219

Kraemii and others added 5 commits February 25, 2025 15:31
This PR contains an extension of the retriever trait to also be able to get kb items with a pattern.
This is needed in order to get a list of all open ports of a target, as they are saved within the kb.

Additionally added the following NASL builtin functions:
- get_host_open_port
- get_port_transport

When creating an socket, now the acording transport used is entered into the kb
Instead of working with enums, which causes the user to always have to match the output, now different trait implementations
per type is used. After that it should be easier to maintain, easier to extend and easier to use
Unlike previously TestBuilder does not create a new storage when it is
running the interpreter on `results` but is now reusing the
InMemoryStorage, meaning it contains previous KB items.

To counter that the results are now cached instead of recreating by
running the interpreter multiple times.
`GET /vts` is too slow for bombardiers default timeout.

This fixes the first byte timeout issue and can be tested via:
`bombardier localhost:3000/vts` which shou just return 2xx and not crash
openvasd.
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

Successfully merging this pull request may close these issues.

2 participants