Giter Club home page Giter Club logo

matrix-dapnet-bot's Introduction

matrix-dapnet-bot

CI dependency status

Matrix bot that allows you to send pages over DAPNET.

Usage

See matrix-dapnet-bot --help. An example configuration file is provided here.

Deployment

A container image is published. Use it however you like.

e.g. via Podman:

podman run \
  --rm -it \
  -e RUST_LOG=debug \
  -e DAPNET_USERNAME="<username>" \
  -e DAPNET_PASSWORD="<password>" \
  -e MATRIX_USERNAME="@<username>:matrix.org" \
  -e MATRIX_PASSWORD="<password>" \
  -v ./examples:/config \
  ghcr.io/DanNixon/matrix-dapnet-bot:latest

Permissions/Authentication

For sending private pages/messages/calls the bot ensures that the sender holds a valid amateur radio license. This is done by checking the configuration file.

For sending news to a rubric the bot checks that both the sender and bot operator are owners of the rubric. This preserves the expected access control of only rubric owners being able to publish to them. This does, however, mean that only rubrics that the bot operator owns can be published to, regardless of the rubrics any other user of the bot owns. All in all, it is a bit of a hack, but good enough for what it was developed for and better than having to handle credentials for all bot users.

In all cases the owner (sender) of any private messages and rubric news messages will be shown to be the bot operator.

matrix-dapnet-bot's People

Contributors

dannixon avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

spencerx

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.