Skip to main content

Threat Bus RabbitMQ Backbone Plugin

PyPI Status Build Status License

A Threat Bus plugin to use RabbitMQ as message broker backbone.

RabbitMQ Properties

The plugin declares one fanout exchange with a configurable name and binds a single queue to it. Messages are all routed via that exchange. Multiple Threat Bus instances can bind to it, but per convention must use unique queue names. The queue name will be threatbus.<hostname> where <hostname> is the hostname of the machine running Threat Bus. You can overwrite this behavior in the configuration file.

Messages sent over RabbitMQ are all serialized JSON. Each object must specify a type field. Serialization, e.g., to STIX-2 objects or to Threat Bus internal data types, is implemented based on the type field.

Subscriptions

Application plugins can subscribe to topics and topic prefixes.

Installation

pip install threatbus-rabbitmq

Configuration

The plugin requires a RabbitMQ endpoint to start. You can configure endpoint details in the plugin configuration of the Threat Bus config.yaml. You can fine-tune resource behavior with the queue section of the config.

...
plugins:
  backbones:
    rabbitmq:
      host: localhost
      port: 5672
      username: guest
      password: guest
      vhost: /
      exchange_name: threatbus
      queue:
        name_suffix: "my_suffix" # this defaults to 'hostname' if left blank
        name_join_symbol: . # queue will be named "threatbus" + join_symbol + name_suffix
        durable: true
        auto_delete: false
        lazy: true
        exclusive: false
        max_items: 100000 # optional. remove property / set to 0 to allow infinite length
...

License

Threat Bus comes with a 3-clause BSD license.

Metadata

Release files for threatbus-rabbitmq 2022.5.16

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

Source distribution (sdist)

Source distribution for threatbus-rabbitmq 2022.5.16
File Size Uploaded Provenance
threatbus-rabbitmq-2022.5.16.tar.gz 8.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for threatbus-rabbitmq 2022.5.16
File Interpreter ABI Platform
threatbus_rabbitmq-2022.5.16-py3-none-any.whl Python 3 none any Details

Total release size: 17.2 kB

Release files / threatbus-rabbitmq-2022.5.16.tar.gz

Download URL threatbus-rabbitmq-2022.5.16.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3350c2bbc718da079ee420032610da5607212c8c76d8acb0fcaf8aa184d19ea3
BLAKE2b-256 checksum
How to use checksums
a03fdaa7fc7b871752f9c06247e11339e5b0689eea83a07e0e1a67aeaa2a0fa5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.12

Release files / threatbus_rabbitmq-2022.5.16-py3-none-any.whl

Download URL threatbus_rabbitmq-2022.5.16-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
edb585f413252f2ce0823a35dc2c6d63c93d340208d9c7cbc7bd5bfcb93532b0
BLAKE2b-256 checksum
How to use checksums
7aa8984106540bb86c9f69c00f9840ae285a0e30d5f2415faa0bf762fee3244e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.12

Security for threatbus-rabbitmq 2022.5.16

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.

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