mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-06-23 10:34:18 +00:00
5.1.0
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
5.1.0
|
||||
-----
|
||||
|
||||
- Bugfix: Submit aggregate dates to Elasticsearch as lists, not tuples
|
||||
- Support `elasticsearch-dsl<=6.3.0`
|
||||
- Add support for TLS/SSL and uerename/password auth to Kafka
|
||||
|
||||
5.0.2
|
||||
|
||||
+2
-6
@@ -157,13 +157,9 @@ def _main():
|
||||
arg_parser.add_argument("-K", "--kafka-hosts", nargs="*",
|
||||
help="A list of one or more Kafka hostnames")
|
||||
arg_parser.add_argument("--kafka-username",
|
||||
help='An optional Kafka username\nNote: For '
|
||||
'Azure Event hub, this is literally '
|
||||
'"$ConnectionString"')
|
||||
help='An optional Kafka username')
|
||||
arg_parser.add_argument("--kafka-password",
|
||||
help="An optional Kafka password\n"
|
||||
"Note: For Azure Event hub, this is the "
|
||||
"Azure-provided connection string")
|
||||
help="An optional Kafka password")
|
||||
arg_parser.add_argument("--kafka-use-ssl",
|
||||
action="store_true",
|
||||
help="Use SSL/TLS to connect to Kafka "
|
||||
|
||||
@@ -5,7 +5,7 @@ from collections import OrderedDict
|
||||
|
||||
from elasticsearch_dsl.search import Q
|
||||
from elasticsearch_dsl import connections, Object, Document, Index, Nested, \
|
||||
InnerDoc, Integer, Text, Boolean, DateRange, Ip, Date, Search
|
||||
InnerDoc, Integer, Text, Boolean, Ip, Date, Search
|
||||
from elasticsearch.helpers import reindex
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ class _AggregateReportDoc(Document):
|
||||
org_email = Text()
|
||||
org_extra_contact_info = Text()
|
||||
report_id = Text()
|
||||
date_range = DateRange()
|
||||
date_range = Date()
|
||||
errors = Text()
|
||||
published_policy = Object(_PublishedPolicy)
|
||||
source_ip_address = Ip()
|
||||
@@ -277,8 +277,8 @@ def save_aggregate_report_to_elasticsearch(aggregate_report,
|
||||
index_date = begin_date.strftime("%Y-%m-%d")
|
||||
aggregate_report["begin_date"] = begin_date
|
||||
aggregate_report["end_date"] = end_date
|
||||
date_range = (aggregate_report["begin_date"],
|
||||
aggregate_report["end_date"])
|
||||
date_range = [aggregate_report["begin_date"],
|
||||
aggregate_report["end_date"]]
|
||||
|
||||
org_name_query = Q(dict(match=dict(org_name=org_name)))
|
||||
report_id_query = Q(dict(match=dict(report_id=report_id)))
|
||||
|
||||
+2
-2
@@ -9,8 +9,8 @@ dnspython
|
||||
imapclient
|
||||
mail-parser
|
||||
dateparser
|
||||
elasticsearch==6.3.1
|
||||
elasticsearch-dsl==6.2.1
|
||||
elasticsearch
|
||||
elasticsearch-dsl
|
||||
kafka-python
|
||||
flake8
|
||||
sphinx
|
||||
|
||||
@@ -95,8 +95,8 @@ setup(
|
||||
install_requires=['dnspython', 'expiringdict', 'publicsuffix',
|
||||
'xmltodict', 'geoip2', 'urllib3<1.24,>=1.21.1',
|
||||
'requests', 'imapclient', 'mail-parser', 'dateparser',
|
||||
'elasticsearch==6.3.1',
|
||||
'elasticsearch-dsl==6.2.1', 'kafka-python'
|
||||
'elasticsearch',
|
||||
'elasticsearch-dsl', 'kafka-python'
|
||||
],
|
||||
|
||||
entry_points={
|
||||
|
||||
Reference in New Issue
Block a user