howler-sentinel-plugin 0.2.0.dev19__py3-none-any.whl → 0.2.0.dev20__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {howler_sentinel_plugin-0.2.0.dev19.dist-info → howler_sentinel_plugin-0.2.0.dev20.dist-info}/METADATA +1 -1
- {howler_sentinel_plugin-0.2.0.dev19.dist-info → howler_sentinel_plugin-0.2.0.dev20.dist-info}/RECORD +6 -6
- sentinel/routes/ingest.py +5 -4
- {howler_sentinel_plugin-0.2.0.dev19.dist-info → howler_sentinel_plugin-0.2.0.dev20.dist-info}/LICENSE +0 -0
- {howler_sentinel_plugin-0.2.0.dev19.dist-info → howler_sentinel_plugin-0.2.0.dev20.dist-info}/WHEEL +0 -0
- {howler_sentinel_plugin-0.2.0.dev19.dist-info → howler_sentinel_plugin-0.2.0.dev20.dist-info}/entry_points.txt +0 -0
{howler_sentinel_plugin-0.2.0.dev19.dist-info → howler_sentinel_plugin-0.2.0.dev20.dist-info}/RECORD
RENAMED
|
@@ -2,9 +2,9 @@ sentinel/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
2
2
|
sentinel/odm/hit.py,sha256=hAuO2ONMK3Ml8Xu6E7tHrmZ7M6HG5tT38RD9ZxwY254,666
|
|
3
3
|
sentinel/odm/models/sentinel.py,sha256=XT3XdT92uoCV5vmY9dT1jmcxRyuu9vp1gE8AwZdKBIc,337
|
|
4
4
|
sentinel/routes/__init__.py,sha256=JYmKRwIfEsiPos1XuMQ2mlGDbxk6TN_cVEM0K_RNze4,130
|
|
5
|
-
sentinel/routes/ingest.py,sha256=
|
|
6
|
-
howler_sentinel_plugin-0.2.0.
|
|
7
|
-
howler_sentinel_plugin-0.2.0.
|
|
8
|
-
howler_sentinel_plugin-0.2.0.
|
|
9
|
-
howler_sentinel_plugin-0.2.0.
|
|
10
|
-
howler_sentinel_plugin-0.2.0.
|
|
5
|
+
sentinel/routes/ingest.py,sha256=zcKQmLStIh1uU_kWO6KBgqr-ZBkAGcFwvXWBiwjOuC8,1067
|
|
6
|
+
howler_sentinel_plugin-0.2.0.dev20.dist-info/LICENSE,sha256=Wg2luVnxEkP2NSn11nh1US6W_nFFbICBAVTG9iG3t5M,1091
|
|
7
|
+
howler_sentinel_plugin-0.2.0.dev20.dist-info/METADATA,sha256=cPq8kTNzcCzVNnzxejM7Xr4RuPMjpqlGNMT_7i-dxR0,694
|
|
8
|
+
howler_sentinel_plugin-0.2.0.dev20.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
9
|
+
howler_sentinel_plugin-0.2.0.dev20.dist-info/entry_points.txt,sha256=4IJyMY0V49s3Wp659ngN_7U8g66-czeKxI-_dNAFP5g,60
|
|
10
|
+
howler_sentinel_plugin-0.2.0.dev20.dist-info/RECORD,,
|
sentinel/routes/ingest.py
CHANGED
|
@@ -28,11 +28,12 @@ def ingest_alert(**kwargs):
|
|
|
28
28
|
|
|
29
29
|
Result Example:
|
|
30
30
|
"""
|
|
31
|
-
|
|
32
|
-
logger.info("Recieved authorization header with value %s", re.sub(r"^(.{3}).+(.{3})$", r"\1...\2", apikey))
|
|
31
|
+
apikey = request.headers.get("Authorization", "Basic ", type=str).split(" ")[1]
|
|
33
32
|
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
if not apikey or apikey != SECRET:
|
|
34
|
+
return unauthorized(err="API Key does not match expected value.")
|
|
35
|
+
|
|
36
|
+
logger.info("Recieved authorization header with value %s", re.sub(r"^(.{3}).+(.{3})$", r"\1...\2", apikey))
|
|
36
37
|
|
|
37
38
|
sentinel_alert = request.json
|
|
38
39
|
|
|
File without changes
|
{howler_sentinel_plugin-0.2.0.dev19.dist-info → howler_sentinel_plugin-0.2.0.dev20.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|