Skip to content

Commit

Permalink
feat(mqtt): Updates values and secrets for MQTT
Browse files Browse the repository at this point in the history
In prevision of sidekick version bump.
falcosecurity/falcosidekick#338

Signed-off-by: Lyonel Martinez <[email protected]>
  • Loading branch information
Lowaiz committed Jul 26, 2022
1 parent eada56f commit 9f498fe
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions falcosidekick/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ as a list of comma separated labels and annotations to add to the AlertManager t
* Add `smtp.autmechanism` and associated fields to be able to use any SASL mechanism.
* Add `yandex.datastreams` and associated fields.
* Add `nodered` and associated fields.
* Add `mqtt` and associated fields.

## 0.5.6

Expand Down
8 changes: 8 additions & 0 deletions falcosidekick/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,14 @@ The following table lists the main configurable parameters of the Falcosidekick
| `config.mattermost.username` | Mattermost username | `falcosidekick` |
| `config.mattermost.webhookurl` | Mattermost Webhook URL (ex: <https://XXXX/hooks/YYYY>), if not `empty`, Mattermost output is *enabled* | `""` |
| `config.mutualtlsfilespath` | folder which will used to store client.crt, client.key and ca.crt files for mutual tls | `/etc/certs` |
| `config.mqtt.webhookurl` | Broker address, can start with tcp:// or ssl://, if not empty, MQTT output is enabled | `""` |
| `config.mqtt.topic` | Topic for messages | `falco/events` |
| `config.mqtt.qos` | QOS for messages | `0` |
| `config.mqtt.retained` | If true, messages are retained | `false` |
| `config.mqtt.user` | User if the authentication is enabled in the broker | `""` |
| `config.mqtt.paswword` | Password if the authentication is enabled in the broker | `""` |
| `config.mqtt.checkcert` | check if ssl certificate of the output is valid | `true` |
| `config.mqtt.minimumpriority` | minimum priority of event for using use this output, order is `emergency\|alert\|critical\|error\|warning\|notice\|informational\|debug or ""` | `""` |
| `config.nats.checkcert` | check if ssl certificate of the output is valid | `true` |
| `config.nats.hostport` | NATS "nats://host:port", if not `empty`, NATS is *enabled* | `""` |
| `config.nats.minimumpriority` | minimum priority of event for using use this output, order is `emergency\|alert\|critical\|error\|warning\|notice\|informational\|debug or ""` | `debug` |
Expand Down
10 changes: 10 additions & 0 deletions falcosidekick/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ data:
MATTERMOST_MUTUALTLS: "{{ .Values.config.mattermost.mutualtls | printf "%t" | b64enc }}"
MATTERMOST_CHECKCERT: "{{ .Values.config.mattermost.checkcert | printf "%t" | b64enc }}"

# MQTT Output
MQTT_BROKER: "{{ .Values.config.mqtt.broker | b64enc }}"
MQTT_TOPIC: "{{ .Values.config.mqtt.topic | b64enc }}"
MQTT_QOS: "{{ .Values.config.mqtt.qos | b64enc }}"
MQTT_RETAINED: "{{ .Values.config.mqtt.retained | b64enc }}"
MQTT_USER: "{{ .Values.config.mqtt.user | b64enc }}"
MQTT_PASSWORD: "{{ .Values.config.mqtt.password | b64enc }}"
MQTT_CHECKCERT: "{{ .Values.config.mqtt.checkcert | printf "%t" | b64enc }}"
MQTT_MINIMUMPRIORITY: "{{ .Values.config.mqtt.minimumpriority | b64enc }}"

# Teams Output
TEAMS_WEBHOOKURL: "{{ .Values.config.teams.webhookurl | b64enc }}"
TEAMS_OUTPUTFORMAT: "{{ .Values.config.teams.outputformat | b64enc }}"
Expand Down
10 changes: 10 additions & 0 deletions falcosidekick/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,16 @@ config:
prunebypriority: false
minimumpriority: "" # minimum priority of event for using this output, order is emergency|alert|critical|error|warning|notice|informational|debug or "" (default)

mqtt:
broker: "" # Broker address, can start with tcp:// or ssl://, if not empty, MQTT output is enabled
topic: "falco/events" # Topic for messages (default: falco/events)
qos: 0 # QOS for messages (default: 0)
retained: false # If true, messages are retained (default: false)
user: "" # User if the authentication is enabled in the broker
password: "" # Password if the authentication is enabled in the broker
checkcert: true # check if ssl certificate of the output is valid (default: true)
minimumpriority: "" # minimum priority of event for using this output, order is emergency|alert|critical|error|warning|notice|informational|debug or "" (default)


service:
type: ClusterIP
Expand Down

0 comments on commit 9f498fe

Please sign in to comment.