Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

go-neb not encrypting messages #380

Open
ibotty opened this issue Jun 15, 2022 · 0 comments
Open

go-neb not encrypting messages #380

ibotty opened this issue Jun 15, 2022 · 0 comments

Comments

@ibotty
Copy link

ibotty commented Jun 15, 2022

Describe the bug

I want go-neb to use an old account and send encrypted messages to a private room, set to be encrypted.

Posting to the room works fine, but the messages are not encrypted.

I am using a config like the following.

clients:
  - UserID: "@bot-alertmanager-matrix:<redacted>"
    AccessToken: "<redacted>"
    DeviceID: "go-neb1"
    HomeserverURL: "https://<redacted>"
    Sync: false
    AutoJoinRooms: false
    DisplayName: "Cluster Alerts bot"
    AcceptVerificationFromUsers: ["@ibotty:<redacted>"]

services:

  - ID: "alertmanager_service"
    Type: "alertmanager"
    UserID: "@bot-alertmanager-matrix:<redacted>"
    Config:
      webhook_url: "http://go-neb.matrix.svc.cluster.local:4050/services/hooks/YWxlcnRtYW5hZ2VyX3NlcnZpY2U="
      # Each room will get the notification with the alert rendered with the given template
      rooms:
        "!<redacted>:<redacted>":
          text_template: "{{range .Alerts -}} [{{ .Status }}] {{index .Labels \"alertname\" }}: {{index .Annotations \"description\"}} {{ end -}}"
          html_template: "{{range .Alerts -}}  {{ $severity := index .Labels \"severity\" }}    {{ if eq .Status \"firing\" }}      {{ if eq $severity \"critical\"}}        <font color='red'><b>[FIRING - CRITICAL]</b></font>      {{ else if eq $severity \"warning\"}}        <font color='orange'><b>[FIRING - WARNING]</b></font>      {{ else }}        <b>[FIRING - {{ $severity }}]</b>      {{ end }}    {{ else }}      <font color='green'><b>[RESOLVED]</b></font>    {{ end }}  {{ index .Labels \"alertname\"}} : {{ index .Annotations \"description\"}}   <a href=\"{{ .GeneratorURL }}\">source</a><br/>{{end -}}"
          msg_type: "m.text"  # Must be either `m.text` or `m.notice`
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant