Skip to content

Commit 9261611

Browse files
Set openvas as default scanner
1 parent d120b91 commit 9261611

File tree

1 file changed

+25
-20
lines changed

1 file changed

+25
-20
lines changed

rust/examples/openvasd/config.example.toml

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,59 @@
1-
# openvasd contains several modes to control the behaviour of it.
1+
# Openvasd contains several modes to control the behaviour of it.
22
# Service enables nasl and notus feed observations all endpoints.
33
mode = "service"
44
# Notus disables /scan endpoints and just observes the notus feed.
55
# mode = "service_notus"
66

77
[feed]
8-
# path to the openvas feed. This is required for the /vts endpoint.
8+
# Path to the openvas feed. This is required for the /vts endpoint.
99
path = "/var/lib/openvas/plugins"
10-
# disables or enables the signnature check
10+
# Disables or enables the signnature check
1111
signature_check = true
1212

1313
[feed.check_interval]
14-
# how often the feed should be checked for updates
14+
# How often the feed should be checked for updates
1515
secs = 3600
1616
nanos = 0
1717

1818
[notus]
19-
# path to the notus feed. This is required for the /notus endpoint.
19+
# Path to the notus feed. This is required for the /notus endpoint
2020
products_path = "/var/lib/notus/products/"
21-
# path to the notus advisories feed. This is required for the /vts endpoint.
21+
# path to the notus advisories feed. This is required for the /vts endpoint
2222
advisories_path = "/var/lib/notus/advisories/"
2323

2424
[endpoints]
25-
# enables GET /scans endpoint
25+
# Enables GET /scans endpoint
2626
enable_get_scans = true
27-
# if set it requires `x-api-key` header to use the endpoint
27+
# If set it requires `x-api-key` header to use the endpoint
2828
key = "mtls_is_preferred"
2929

3030
[tls]
31-
# the server certificate
31+
# The server certificate
3232
certs = "/etc/openvasd/tls/server.pem"
33-
# server key
33+
# Server key
3434
key = "/var/lib/openvasd/tls/server.rsa"
35-
# dir that contains client certificates. if there are none than every client is
35+
# dir that contains client certificates. If there are none than every client is
3636
# allowed to connect otherwise just the clients that have the configured
37-
# client certificates
37+
# client certificates.
3838
client_certs = "/etc/openvasd/tls/client"
3939

4040
[scanner]
41-
# Supported types: ospd, openvas, openvasd
42-
type = "ospd"
41+
# Supported types:
42+
# "ospd": Old API which will be deprecated soon
43+
# "openvas": Current C based openvas-scanner
44+
# "openvasd": New Rust based scanner which is not yet fully implemented
45+
# If "ospd" is used the ospd related settings have to be set.
46+
# If "openvas" is selected the [storage] option has to be set to "redis".
47+
type = "openvas"
4348

4449
[scanner.ospd]
45-
# path to the unix socket of ospd-openvas
50+
# Path to the unix socket of ospd-openvas
4651
socket = "/var/run/ospd/ospd.sock"
4752

4853
[scanner.ospd.read_timeout]
4954
# Max time openvasd waits for an ospd-openvas response before
5055
# returning a 500 code (Internal server error). Using the config
51-
# file, it can be set in seconds and nanoseconds
56+
# file, it can be set in seconds and nanoseconds.
5257
secs = 1
5358
nanos = 0
5459

@@ -69,13 +74,13 @@ level = "INFO"
6974
# can be either fs (file system), redis or inmemory (in memory).
7075
# If it is set to fs is highly recommended to set `STORAGE_KEY` in the env variable.
7176
# WARNING: if the type is set to fs and no encryption key is set then the data is stored unencrypted.
72-
# As long as legacy openvas is required redis is recommended
77+
# "redis" has to be chosen if the "openvas" scanner type is set.
7378
#type = "fs"
74-
#type = "redis"
75-
type = "inmemory"
79+
type = "redis"
80+
#type = "inmemory"
7681

7782
[storage.redis]
78-
# set the redis url. When socket is used it has to start with `unix://`
83+
# Set the redis url. When socket is used it has to start with `unix://`
7984
# if a username and password is required it also needs to set in the url:
8085
# redis://user:pass@localhost:6379
8186
url = "redis://localhost:6379"

0 commit comments

Comments
 (0)