fluidattacks-core 4.0.0__tar.gz → 4.1.0__tar.gz
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.
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/PKG-INFO +2 -2
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/logging/formatters.py +3 -5
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core.egg-info/PKG-INFO +2 -2
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core.egg-info/requires.txt +1 -1
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/pyproject.toml +2 -2
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/test/test_logging.py +2 -2
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/README.md +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/__init__.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/aio/__init__.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/aio/processes.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/aio/runners.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/aio/tasks.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/aio/threads.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/authz/__init__.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/authz/py.typed +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/authz/types.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/bugsnag/__init__.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/bugsnag/client.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/cpg/__init__.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/cpg/joern.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/filesystem/__init__.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/filesystem/defaults.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/git/__init__.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/git/classes.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/git/clone.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/git/codecommit_utils.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/git/constants.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/git/delete_files.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/git/download_file.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/git/download_repo.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/git/https_utils.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/git/py.typed +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/git/remote.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/git/ssh_utils.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/git/utils.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/git/warp.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/http/__init__.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/http/client.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/http/validations.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/logging/__init__.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/logging/filters.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/logging/handlers.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/logging/presets.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/logging/sources/__init__.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/logging/sources/types.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/logging/sources/utils.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/logging/utils.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/py.typed +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/sarif/__init__.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/semver/__init__.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/semver/match_versions.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/serializers/__init__.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/serializers/snippet.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/serializers/syntax.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core.egg-info/SOURCES.txt +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core.egg-info/dependency_links.txt +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core.egg-info/top_level.txt +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/setup.cfg +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/test/test_aio_tasks.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/test/test_extract_db.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/test/test_language_detection.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/test/test_make_snippet.py +0 -0
- {fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/test/test_match_versions.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fluidattacks-core
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.1.0
|
|
4
4
|
Summary: Fluid Attacks Core Library
|
|
5
5
|
Author-email: Development <development@fluidattacks.com>
|
|
6
6
|
License: MPL-2.0
|
|
@@ -16,7 +16,7 @@ Requires-Dist: aiohttp>=3.10.0
|
|
|
16
16
|
Requires-Dist: certifi>=2024.8.30
|
|
17
17
|
Requires-Dist: python-json-logger>=3.3.0
|
|
18
18
|
Requires-Dist: simplejson>=3.20.1
|
|
19
|
-
Requires-Dist: urllib3
|
|
19
|
+
Requires-Dist: urllib3==2.6.1
|
|
20
20
|
Provides-Extra: aio
|
|
21
21
|
Requires-Dist: uvloop>=0.21.0; extra == "aio"
|
|
22
22
|
Provides-Extra: authz
|
|
@@ -14,9 +14,7 @@ from fluidattacks_core.logging.sources import (
|
|
|
14
14
|
LambdaSource,
|
|
15
15
|
PipelineSource,
|
|
16
16
|
)
|
|
17
|
-
from fluidattacks_core.logging.utils import
|
|
18
|
-
get_telemetry_metadata,
|
|
19
|
-
)
|
|
17
|
+
from fluidattacks_core.logging.utils import get_telemetry_metadata
|
|
20
18
|
|
|
21
19
|
if TYPE_CHECKING:
|
|
22
20
|
from fluidattacks_core.logging.sources.types import SourceStrategy
|
|
@@ -131,13 +129,13 @@ class CustomJsonFormatter(JsonFormatter):
|
|
|
131
129
|
"""Add error fields to the log record.
|
|
132
130
|
|
|
133
131
|
It includes:
|
|
134
|
-
- `error.
|
|
132
|
+
- `error.kind`
|
|
135
133
|
- `error.message`
|
|
136
134
|
- `error.stack`
|
|
137
135
|
"""
|
|
138
136
|
if record.exc_info:
|
|
139
137
|
if exc_type := record.exc_info[0]:
|
|
140
|
-
log_record["error.
|
|
138
|
+
log_record["error.kind"] = exc_type.__name__
|
|
141
139
|
if exc_value := record.exc_info[1]:
|
|
142
140
|
log_record["error.message"] = str(exc_value)
|
|
143
141
|
if exc_tb := record.exc_info[2]:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fluidattacks-core
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.1.0
|
|
4
4
|
Summary: Fluid Attacks Core Library
|
|
5
5
|
Author-email: Development <development@fluidattacks.com>
|
|
6
6
|
License: MPL-2.0
|
|
@@ -16,7 +16,7 @@ Requires-Dist: aiohttp>=3.10.0
|
|
|
16
16
|
Requires-Dist: certifi>=2024.8.30
|
|
17
17
|
Requires-Dist: python-json-logger>=3.3.0
|
|
18
18
|
Requires-Dist: simplejson>=3.20.1
|
|
19
|
-
Requires-Dist: urllib3
|
|
19
|
+
Requires-Dist: urllib3==2.6.1
|
|
20
20
|
Provides-Extra: aio
|
|
21
21
|
Requires-Dist: uvloop>=0.21.0; extra == "aio"
|
|
22
22
|
Provides-Extra: authz
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "fluidattacks-core"
|
|
3
|
-
version = "4.
|
|
3
|
+
version = "4.1.0"
|
|
4
4
|
description = "Fluid Attacks Core Library"
|
|
5
5
|
authors = [{ name = "Development", email = "development@fluidattacks.com" }]
|
|
6
6
|
license = { text = "MPL-2.0" }
|
|
@@ -20,7 +20,7 @@ dependencies = [
|
|
|
20
20
|
"certifi>=2024.8.30",
|
|
21
21
|
"python-json-logger>=3.3.0",
|
|
22
22
|
"simplejson>=3.20.1",
|
|
23
|
-
"urllib3
|
|
23
|
+
"urllib3==2.6.1",
|
|
24
24
|
]
|
|
25
25
|
|
|
26
26
|
[project.optional-dependencies]
|
|
@@ -232,7 +232,7 @@ def test_uncaught_exception_logging(
|
|
|
232
232
|
|
|
233
233
|
assert log_entry["name"] == "unhandled"
|
|
234
234
|
assert log_entry["level"] == "CRITICAL"
|
|
235
|
-
assert log_entry["error.
|
|
235
|
+
assert log_entry["error.kind"] == "ValueError"
|
|
236
236
|
assert log_entry["error.message"] == "This is an uncaught exception"
|
|
237
237
|
|
|
238
238
|
|
|
@@ -257,7 +257,7 @@ def test_json_formatter_adds_keys_for_exception(
|
|
|
257
257
|
assert log_entry["name"] == "product"
|
|
258
258
|
assert log_entry["message"] == "A exception was caught"
|
|
259
259
|
|
|
260
|
-
assert log_entry["error.
|
|
260
|
+
assert log_entry["error.kind"] == "ValueError"
|
|
261
261
|
assert log_entry["error.message"] == "Value error found"
|
|
262
262
|
assert "error.stack" in log_entry
|
|
263
263
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/filesystem/__init__.py
RENAMED
|
File without changes
|
{fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/filesystem/defaults.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/git/codecommit_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/logging/sources/__init__.py
RENAMED
|
File without changes
|
{fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/logging/sources/types.py
RENAMED
|
File without changes
|
{fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/logging/sources/utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/semver/match_versions.py
RENAMED
|
File without changes
|
{fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/serializers/__init__.py
RENAMED
|
File without changes
|
{fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core/serializers/snippet.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{fluidattacks_core-4.0.0 → fluidattacks_core-4.1.0}/fluidattacks_core.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|