Skip to content

Commit d3e8b27

Browse files
author
Daniel Jimenez
committed
Update configs and readme
1 parent fedec9d commit d3e8b27

File tree

4 files changed

+27
-7
lines changed

4 files changed

+27
-7
lines changed

Diff for: README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,18 @@ Those are the variables you have to use:
7878
|PG_PORT|Database port|5432|
7979
|PG_SSLMODE|One of these (disable,allow,prefer,require,verify-ca,verify-full)|disable|
8080
|PG_CA_B64|A base64 encoded CA certificate||
81-
|SQS_QUEUE_ARN|Checks queueu ARN|arn:aws:sqs:xxx:123456789012:yyy|
82-
|SNS_TOPIC_ARN|ARN of topic to publish new vulnerabilities|arn:aws:sns:xxx:123456789012:yyy|
8381
|RESULTS_URL|External vulcan-results URL|https://results.vulcan.com|
8482
|RESULTS_INTERNAL_URL|Internal vulcan-results URL|http://vulcan-results|
83+
|SQS_QUEUE_ARN|Checks queueu ARN|arn:aws:sqs:xxx:123456789012:yyy|
8584
|AWS_SQS_ENDPOINT|Endpoint for SQS creation queue (optional)|http://custom-aws-endpoint|
85+
|SNS_ENABLED|Enables/Disables notifications sent to SNS|false|
86+
|SNS_TOPIC_ARN|ARN of topic to publish new vulnerabilities|arn:aws:sns:xxx:123456789012:yyy|
8687
|AWS_SNS_ENDPOINT|Endpoint for SNS topic (optional)|http://custom-aws-endpoint|
88+
|KAFKA_ENABLED|Enables/Disables notifications sent to Kafka|false|
89+
|KAFKA_USER|Kafka user||
90+
|KAFKA_PASSWORD|Kafka password||
91+
|KAFKA_BROKER_URL|Kafka Broker URL|localhost:9092|
92+
|KAFKA_TOPIC|Kafka topic|findings|
8793

8894
```bash
8995
docker build . -t vdb

Diff for: _resources/config/local.toml.example

+2-3
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@ timeout = 30
1818
queue_arn = "arn:aws:sqs:xxx:123456789012:yyy"
1919

2020
[sns]
21-
enabled = "false"
21+
enabled = false
2222
topic_arn = "arn:aws:sns:xxx:123456789012:yyy"
23-
enabled = true
2423

2524
[kafka]
26-
enabled = "false"
25+
enabled = false
2726
user = "user"
2827
password = "password"
2928
broker_url = "localhost:9092"

Diff for: config.toml

+8-1
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,17 @@ queue_arn = "$SQS_QUEUE_ARN"
2222
endpoint = "$AWS_SQS_ENDPOINT"
2323

2424
[sns]
25+
enabled = $SNS_ENABLED
2526
topic_arn = "$SNS_TOPIC_ARN"
26-
enabled = true
2727
endpoint = "$AWS_SNS_ENDPOINT"
2828

29+
[kafka]
30+
enabled = $KAFKA_ENABLED
31+
user = "$KAFKA_USER"
32+
password = "$KAFKA_PASSWORD"
33+
broker_url = "$KAFKA_BROKER_URL"
34+
topic = "$KAFKA_TOPIC"
35+
2936
[report]
3037
url_replace = "$RESULTS_URL|$RESULTS_INTERNAL_URL"
3138

Diff for: local.env.example

+9-1
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,17 @@ PG_SSLMODE=disable
1010
PG_NAME=vulndb
1111

1212
SQS_QUEUE_ARN=arn:aws:sqs:xxx:123456789012:yyy
13-
SNS_TOPIC_ARN=arn:aws:sns:xxx:123456789012:yyy
1413
AWS_SQS_ENDPOINT=
14+
15+
SNS_ENABLED=false
16+
SNS_TOPIC_ARN=arn:aws:sns:xxx:123456789012:yyy
1517
AWS_SNS_ENDPOINT=
1618

19+
KAFKA_ENABLED=false
20+
KAFKA_USER=
21+
KAFKA_PASSWORD=
22+
KAFKA_BROKER_URL=localhost:29092
23+
KAFKA_TOPIC=findings
24+
1725
RESULTS_URL=http://vulcan-results
1826
RESULTS_INTERNAL_URL=http://vulcan-results

0 commit comments

Comments
 (0)