Config module

class Config.Config(config_path: str)

Bases: ConfigParser

Class used for reading configuration file using configparser

Parses the configuration file

Parameters:

config_path – path to configuration file

Required options:
[Global]
Host[str]: Bind api server to specified IP address
Port[int]: Bind api server to specified port
Auth[int]: Disable/Enable authentication(0/1)
Auth_admin_password[str]: Admin password when Auth enabled
SSL_Key[str]: SSL key file
SSL_Cert[str]: SSL certificate file
SSL_CA[str]: CA certificates file

[Memcached]
Hosts[list]: addresses used for connecting to memcached

Optional:
Options for all services:
TTL[int]: number of seconds until a response is expired from the cache, 0 for no expiry
Limit_calls[int]: number of calls to make to API within time specified by Limit_sec option before API limit is exceeded
Limit_sec[int]: number of seconds, with Limit_calls option allows to limit requests to API

[VirusTotal]
ApiKey[str]: key to use for authenticating with API

[Shodan]
ApiKey[str]: key to use for authenticating with API

[Censys]
ApiID[str]: ID used for authenticating with API
ApiSecret[str]: secret used for authenticating with API

[DomainTools]
ApiUser[str]: user to use for authenticating with API
ApiKey[str]: key to use for authenticating with API

[MISP]
List[list]: checked MISP warninglist, full list https://github.com/MISP/misp-warninglists/

[SSLBL]
URL[str]: URL with SSLBL IP feeds https://sslbl.abuse.ch/blacklist/sslipblacklist.csv

[Alienvault]
ApiKey[str]: key to use for authenticating with API

[TOR]
URL[str]: URL with TOR IP feeds https://check.torproject.org/exit-addresses

[Kafka]
Config[dict]: options to pass to kafka client, full list: https://github.com/edenhill/librdkafka/blob/master/CONFIGURATION.md
Topic[str]: topic name