clue-api 1.4.0.dev166__tar.gz → 1.4.0.dev168__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.
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/PKG-INFO +1 -1
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/plugin/__init__.py +4 -3
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/pyproject.toml +1 -1
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/LICENSE +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/README.md +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/.gitignore +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/__init__.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/api/__init__.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/api/base.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/api/v1/__init__.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/api/v1/actions.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/api/v1/auth.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/api/v1/configs.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/api/v1/fetchers.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/api/v1/lookup.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/api/v1/registration.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/api/v1/static.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/app.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/cache/__init__.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/common/__init__.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/common/bytes_utils.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/common/classification.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/common/classification.yml +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/common/dict_utils.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/common/exceptions.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/common/forge.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/common/json_utils.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/common/list_utils.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/common/logging/__init__.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/common/logging/audit.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/common/logging/format.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/common/regex.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/common/str_utils.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/common/swagger.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/common/uid.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/config.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/constants/__init__.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/constants/env.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/constants/supported_types.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/cronjobs/__init__.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/cronjobs/plugins.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/error.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/extensions/__init__.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/extensions/config.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/gunicorn_config.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/healthz.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/helper/discover.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/helper/headers.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/helper/oauth.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/models/__init__.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/models/actions.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/models/config.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/models/fetchers.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/models/graph.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/models/model_list.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/models/network.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/models/results/__init__.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/models/results/base.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/models/results/file.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/models/results/graph.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/models/results/image.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/models/results/status.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/models/results/validation.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/models/selector.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/models/validators.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/patched.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/plugin/celery_app.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/plugin/helpers/__init__.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/plugin/helpers/central_server.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/plugin/helpers/email_render.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/plugin/helpers/token.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/plugin/helpers/trino.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/plugin/models.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/plugin/utils.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/py.typed +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/remote/__init__.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/remote/datatypes/__init__.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/remote/datatypes/cache.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/remote/datatypes/events.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/remote/datatypes/hash.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/remote/datatypes/queues/__init__.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/remote/datatypes/queues/comms.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/remote/datatypes/set.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/remote/datatypes/user_quota_tracker.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/security/__init__.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/security/obo.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/security/utils.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/services/action_service.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/services/auth_service.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/services/config_service.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/services/fetcher_service.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/services/jwt_service.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/services/lookup_service.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/services/type_service.py +0 -0
- {clue_api-1.4.0.dev166 → clue_api-1.4.0.dev168}/clue/services/user_service.py +0 -0
|
@@ -231,7 +231,7 @@ class CluePlugin:
|
|
|
231
231
|
A readiness probe for kubernetes implementations of clue.
|
|
232
232
|
"""
|
|
233
233
|
|
|
234
|
-
alternate_bulk_lookup: Callable[[list[dict[str, str]], Params], dict[str, dict[str, BulkEntry]]] | None
|
|
234
|
+
alternate_bulk_lookup: Callable[[list[dict[str, str]], Params, str | None], dict[str, dict[str, BulkEntry]]] | None
|
|
235
235
|
"""Provides an alternative implementation for bulk enrichment.
|
|
236
236
|
|
|
237
237
|
By default, clue plugins will split bulk enrichments into many parallel threads, allowing the plugin to
|
|
@@ -324,7 +324,8 @@ class CluePlugin:
|
|
|
324
324
|
self: Self,
|
|
325
325
|
app_name: str,
|
|
326
326
|
actions: list[Action] = [],
|
|
327
|
-
alternate_bulk_lookup: Callable[[list[dict[str, str]], Params], dict[str, dict[str, BulkEntry]]]
|
|
327
|
+
alternate_bulk_lookup: Callable[[list[dict[str, str]], Params, str | None], dict[str, dict[str, BulkEntry]]]
|
|
328
|
+
| None = None,
|
|
328
329
|
cache_timeout: int = 5 * 60, # five minute timeout
|
|
329
330
|
classification: str | None = os.environ.get("CLASSIFICATION", None),
|
|
330
331
|
enable_apm: bool = False,
|
|
@@ -998,7 +999,7 @@ class CluePlugin:
|
|
|
998
999
|
self.logger.debug("Executing plugin-provided alternate bulk lookup script")
|
|
999
1000
|
|
|
1000
1001
|
try:
|
|
1001
|
-
alternate_results = self.alternate_bulk_lookup(remaining_items, params)
|
|
1002
|
+
alternate_results = self.alternate_bulk_lookup(remaining_items, params, token)
|
|
1002
1003
|
|
|
1003
1004
|
for _type, _values in alternate_results.items():
|
|
1004
1005
|
for _value, _result in _values.items():
|
|
@@ -139,7 +139,7 @@ log_cli_level = "WARN"
|
|
|
139
139
|
[tool.poetry]
|
|
140
140
|
package-mode = true
|
|
141
141
|
name = "clue-api"
|
|
142
|
-
version = "1.4.0.
|
|
142
|
+
version = "1.4.0.dev168"
|
|
143
143
|
description = "Clue distributed enrichment service"
|
|
144
144
|
authors = ["Canadian Centre for Cyber Security <contact@cyber.gc.ca>"]
|
|
145
145
|
license = "MIT"
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|