diff --git a/config/config.default.yaml b/config/config.default.yaml index 26e7dcc..d7f3469 100644 --- a/config/config.default.yaml +++ b/config/config.default.yaml @@ -29,3 +29,10 @@ zmq: misp: url: "http://localhost" api: KEY + +taxii: + auth: + username: ABC + password: CDE + collections: + - collection diff --git a/scripts/push_published_to_taxii.py b/scripts/push_published_to_taxii.py index 78f3888..8c4dc36 100644 --- a/scripts/push_published_to_taxii.py +++ b/scripts/push_published_to_taxii.py @@ -75,7 +75,7 @@ while True: try: cli.push(pkg.to_xml().decode("utf-8"), "urn:stix.mitre.org:xml:1.1.1", uri="http://{}/services/inbox".format(config["domain"]), - collection_names=["collection"]) + collection_names=config["taxii"].get("collections", ["collection"])) log.info("Pushed!") except Exception as ex: