Skip to main content

Midgard Discord bot

pre-commit.ci status Python 3.10

Midgard is a private OpenStack cloud for VAIT testing, training, and development purpose. This project aims to simplify and allow quick provisioning of OpenStack VM using an opinionated workflow entirely through Discord, following a ChatOps model.

Motivations

  1. Midgard is an OpenStack lab running entirely on-premise. While it has NAT connectivity, the sticking point is how to direct ingress point to the VMs provisioned inside the lab.
  2. For most teaching lab, the users do not deviate from a standard configuration.
  3. The resource should be accessible to most users so beginners and professionals alike can quickly provision, experiment and shutdown their solutions.
  4. We want to avoid running jumpboxes.
  5. We want to avoid installing any VPN solution.
  6. We want to avoid software client dependencies, access should simply be SSH into the VM.

Software Architecture

The software architecture for the bot is as followed:

Midgard-Discord Bot Architecture Diagram

  1. Users will interface with the MidgardLab entirely through Discord slash commands.
  2. The Discord bot will communicate with the OpenStack API on the users' behalf to setup an account, register public key and provision VM.
  3. The Discord bot will also setup Cloudflare DNS tunnels to allow users to SSH into the VMs provisioned.

Usage

Run the bot with the following command:

poetry run midgard

Contributing

See CONTRIBUTING.md for more information.

License

This project is licensed under the terms of the MIT license.

Metadata

Release files for midgard-discord 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for midgard-discord 0.8.0
File Size Uploaded Provenance Actions
midgard_discord-0.8.0.tar.gz 10.9 kB Without provenance Details for midgard_discord-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for midgard-discord 0.8.0
File Interpreter ABI Platform Actions
midgard_discord-0.8.0-py3-none-any.whl Python 3 none any Details for midgard_discord-0.8.0-py3-none-any.whl

Total release size: 23.2 kB

Release files / midgard_discord-0.8.0.tar.gz

Download URL midgard_discord-0.8.0.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
26e8d31f3c017ed31c7e28557289f345054425113b53d68e4c6220d72e4f69ee
BLAKE2b-256 checksum
How to use checksums
b09a877210845290bb7ea655606f3b6ff979e8f3344652eaa05c852b055f1cf5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.8.10 Linux/5.15.90.1-microsoft-standard-WSL2

Release files / midgard_discord-0.8.0-py3-none-any.whl

Download URL midgard_discord-0.8.0-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d556472cddc268d89c162a4aadc050064dbf62dfdc0ae7a95706e7ea2deb7ce7
BLAKE2b-256 checksum
How to use checksums
d75e92ffab552f51a6522a6e6763707e8ea3f7903928303862607a9751664b08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.8.10 Linux/5.15.90.1-microsoft-standard-WSL2

Security for midgard-discord 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.8.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page