Giter VIP home page Giter VIP logo

matrix-zabbix-bot's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ”ญ Iโ€™m currently working on proactive threat detection using DNS measurements. On the side I try to squeeze time into Zabbix monitoring projects and Homeassistant related things.
  • ๐ŸŒฑ Iโ€™m currently learning PySpark for my Ph.D. work.
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on Zabbix monitoring projects or Homeassistant projects.
  • ๐Ÿ“ซ How to reach me: Matrix is your best shot @olivier:oliviervandertoorn.nl
  • โšก Fun fact: DNS is difficult.

Links to websites related to me:

matrix-zabbix-bot's People

Contributors

bergzand avatar lordievader avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

bergzand

matrix-zabbix-bot's Issues

zabbix_bot does not use token

It looks like the token in the configuration is not actually used by the zabbox_bot part, like one would expect.

Using only the token in the configuration results in the following error:

A MatrixRequestError occured during sync.
Exception in thread Thread-455:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.7/dist-packages/matrix_client/client.py", line 473, in listen_forever
    self._sync(timeout_ms)
  File "/usr/local/lib/python3.7/dist-packages/matrix_client/client.py", line 555, in _sync
    response = self.api.sync(self.sync_token, timeout_ms, filter=self.sync_filter)
  File "/usr/local/lib/python3.7/dist-packages/matrix_client/api.py", line 105, in sync
    api_path=MATRIX_V2_API_PATH)
  File "/usr/local/lib/python3.7/dist-packages/matrix_client/api.py", line 691, in _send
    code=response.status_code, content=response.text
matrix_client.errors.MatrixRequestError: 401: {"errcode":"M_MISSING_TOKEN","error":"Missing access token"}

Credentials in debug logging

This looks like a (very minor) security issue to me. Examples of logging:

2020-09-18 22:15:35,165:    DEBUG - {'host': 'https://zabbix.snt.utwente.nl', 'username': 'matrixbot', 'password': '<snip>'
2020-09-21 19:14:22,775:    DEBUG - matrix config:
'username': 'bot', 'password': '<snip>', 'token': '<snip>', 'room': '#<snip>', 'port': '443', 'homeserver': 'matrix.utwente.io', 'domain': 'utwente.io', 'message_type': 'm.notice', 'color': 'true'}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.