Skip to content

Commit

Permalink
foo
Browse files Browse the repository at this point in the history
  • Loading branch information
johanix committed Jun 5, 2024
1 parent 8a765b6 commit c35b535
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
4 changes: 4 additions & 0 deletions refreshengine.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ func (td *TemData) RefreshEngine(conf *Config, stopch chan struct{}) {
log.Printf("RefreshEngine: Tapir Observation update evaluated.")

case "global-config":
if !strings.HasSuffix(tpkg.Topic, "config") {
log.Printf("RefreshEngine: received global-config message on wrong topic: %s. Ignored", tpkg.Topic)
continue
}
td.ProcessTapirGlobalConfig(tpkg.Data)
log.Printf("RefreshEngine: Tapir Global Config evaluated.")

Expand Down
16 changes: 4 additions & 12 deletions tem.sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,6 @@ bootstrapserver:
address:
tlsaddress:

# server:
# listen: 127.0.0.1
# port: 9097
# upstreams: [ nsa.johani.org:53 ]
# downstreams: [ 127.0.0.1:9999 ] # unbound
# xferzones: [ ] # not useful for TAPIR
# mapzones: [ ] # likely not useful for TAPIR
# slicezones: [ rpz.threat-feed.com ]
# slicezones: [ ]

dnsengine:
addresses: 127.0.0.1:5359

Expand All @@ -35,13 +25,15 @@ mqtt:
server: mqtt.dev.dnstapir.se:8883
uid: johani
clientid: this-must-be-unique
topic: events/up/johani/frobozz
# topic: events/up/johani/frobozz
cacert: /etc/dnstapir/certs/tapirCA.crt
clientcert: /etc/dnstapir/certs/mqttclient.crt
clientkey: /etc/dnstapir/certs/mqttclient-key.pem
signingkey: /etc/dnstapir/certs/mqttsigner-key.pem
validatorkey: /etc/dnstapir/certs/mqttsigner-pub.pem
# validatorkey: /etc/dnstapir/certs/mqttsigner-pub.pem
qos: 2
configtopic: events/up/johani/config
configvalidatorkey: /etc/dnstapir/certs/mqttsigner-pub.pem

output:
reaper:
Expand Down

0 comments on commit c35b535

Please sign in to comment.