NLnetLabs / ROVer

A Discord bot that fetches and displays the RPKI validity of a route
https://nlnetlabs.nl/rpki
BSD 3-Clause "New" or "Revised" License
6 stars 1 forks source link
discord discord-bot rpki rust

Documentation Status

ROVer

A simple Rust Discord bot for rendering the output of the Routinator validity HTTP API endpoint as a textual table:

For example given the command !validity AS16509 185.49.143.0/24 the bot prints:

image

Since v0.1.2 it also shows the AS name (powered by the RIPEstat Data API):

image

Note: The AS prefix in the AS argument is optional and case insensitive.

Requirements

Building

$ cargo build --release --locked

Running

$ export DISCORD_TOKEN=xxx
$ export ROUTINATOR_HOST=some.fqdn.com
$ ./target/release/rover

Using the Debian package

$ sudo apt install -y ./path/to/rover.deb
$ export EDITOR=$(which vi)
$ sudo systemctl edit rover
[Service]
Environment="DISCORD_TOKEN=<Enter Discord token here>"
Environment="ROUTINATOR_HOST=<Enter Routinator host here>"
:x
$ sudo systemctl enable --now rover

Using the bot

Icon credit

Thanks to pixabay for the ROVer image. Pixabay states for this image that is licensed under the Pixabay License which is "Free for commercial use" with "no attribution required". If you think this image is actually yours and not free to use please let us know!