adding Loader to push_published_to_taxii
adding local-server default yaml and remote-servers default yamlpull/82/head
parent
53309e3477
commit
b50a60485f
|
@ -0,0 +1,12 @@
|
||||||
|
host: localhost
|
||||||
|
port: 9000
|
||||||
|
discovery_path: /services/discovery
|
||||||
|
inbox_path: /services/inbox
|
||||||
|
use_https: False
|
||||||
|
taxii_version: '1.1'
|
||||||
|
headers:
|
||||||
|
auth:
|
||||||
|
username: test
|
||||||
|
password: test
|
||||||
|
collections:
|
||||||
|
- collection
|
|
@ -0,0 +1,18 @@
|
||||||
|
- name: 'default'
|
||||||
|
host: localhost
|
||||||
|
port: 9000
|
||||||
|
discovery_path:
|
||||||
|
use_https: False
|
||||||
|
taxii_version: '1.1'
|
||||||
|
headers:
|
||||||
|
auth:
|
||||||
|
username:
|
||||||
|
password:
|
||||||
|
cacert_path:
|
||||||
|
cert_file:
|
||||||
|
key_file:
|
||||||
|
key_password:
|
||||||
|
jwt_auth_url:
|
||||||
|
verify_ssl: True
|
||||||
|
collections:
|
||||||
|
- collection
|
|
@ -4,6 +4,7 @@ import sys
|
||||||
import json
|
import json
|
||||||
import pymisp
|
import pymisp
|
||||||
from pyaml import yaml
|
from pyaml import yaml
|
||||||
|
from yaml import Loader
|
||||||
from cabby import create_client
|
from cabby import create_client
|
||||||
from misp_stix_converter.converters import lint_roller
|
from misp_stix_converter.converters import lint_roller
|
||||||
import logging
|
import logging
|
||||||
|
@ -20,7 +21,7 @@ log.setLevel(logging.DEBUG)
|
||||||
log.info("Starting...")
|
log.info("Starting...")
|
||||||
# Try to load in config
|
# Try to load in config
|
||||||
if "OPENTAXII_CONFIG" in os.environ:
|
if "OPENTAXII_CONFIG" in os.environ:
|
||||||
config = yaml.load(open(os.environ["OPENTAXII_CONFIG"], "r"))
|
config = yaml.load(open(os.environ["OPENTAXII_CONFIG"], "r"), Loader=Loader)
|
||||||
else:
|
else:
|
||||||
print("OPENTAXII CONFIG NOT EXPORTED")
|
print("OPENTAXII CONFIG NOT EXPORTED")
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
Loading…
Reference in New Issue