clue-api 1.6.0.dev339__tar.gz → 1.6.0.dev359__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.6.0.dev339 → clue_api-1.6.0.dev359}/PKG-INFO +1 -1
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/common/logging/audit.py +14 -11
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/pyproject.toml +1 -1
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/LICENSE +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/README.md +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/.gitignore +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/__init__.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/api/__init__.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/api/base.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/api/v1/__init__.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/api/v1/actions.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/api/v1/auth.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/api/v1/configs.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/api/v1/fetchers.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/api/v1/lookup.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/api/v1/registration.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/api/v1/static.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/api/v1/sync.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/app.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/cache/__init__.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/common/__init__.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/common/bytes_utils.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/common/classification.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/common/classification.yml +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/common/dict_utils.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/common/exceptions.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/common/forge.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/common/json_utils.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/common/list_utils.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/common/logging/__init__.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/common/logging/format.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/common/regex.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/common/str_utils.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/common/swagger.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/common/uid.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/config.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/constants/__init__.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/constants/env.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/constants/supported_types.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/cronjobs/__init__.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/cronjobs/plugins.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/error.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/extensions/__init__.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/extensions/config.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/gunicorn_config.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/healthz.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/helper/discover.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/helper/headers.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/helper/oauth.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/models/__init__.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/models/actions.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/models/config.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/models/fetchers.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/models/graph.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/models/model_list.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/models/network.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/models/results/__init__.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/models/results/base.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/models/results/file.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/models/results/graph.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/models/results/image.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/models/results/status.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/models/results/validation.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/models/schema.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/models/selector.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/models/sync.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/models/validators.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/patched.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/plugin/__init__.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/plugin/celery_app.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/plugin/helpers/__init__.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/plugin/helpers/central_server.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/plugin/helpers/email_render.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/plugin/helpers/token.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/plugin/helpers/trino.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/plugin/models.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/plugin/utils.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/py.typed +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/remote/__init__.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/remote/datatypes/__init__.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/remote/datatypes/cache.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/remote/datatypes/events.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/remote/datatypes/hash.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/remote/datatypes/queues/__init__.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/remote/datatypes/queues/comms.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/remote/datatypes/set.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/remote/datatypes/user_quota_tracker.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/security/__init__.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/security/obo.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/security/utils.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/services/action_service.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/services/auth_service.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/services/config_service.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/services/fetcher_service.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/services/jwt_service.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/services/lookup_service.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/services/mongo_service.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/services/type_service.py +0 -0
- {clue_api-1.6.0.dev339 → clue_api-1.6.0.dev359}/clue/services/user_service.py +0 -0
|
@@ -60,18 +60,21 @@ AUDIT_LOG.propagate = False
|
|
|
60
60
|
if AUDIT:
|
|
61
61
|
AUDIT_LOG.setLevel(logging.DEBUG)
|
|
62
62
|
|
|
63
|
-
if
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
logging.
|
|
70
|
-
|
|
71
|
-
|
|
63
|
+
if config.logging.log_to_file:
|
|
64
|
+
# When logging to file, create a log directory if it doesn't already exist
|
|
65
|
+
if not os.path.exists(config.logging.log_directory):
|
|
66
|
+
os.makedirs(config.logging.log_directory)
|
|
67
|
+
|
|
68
|
+
# Setup a handler to emit logs to disk
|
|
69
|
+
fh = logging.FileHandler(os.path.join(config.logging.log_directory, "clue_audit.log"))
|
|
70
|
+
fh.setLevel(logging.DEBUG)
|
|
71
|
+
fh.setFormatter(
|
|
72
|
+
logging.Formatter(
|
|
73
|
+
CLUE_LOG_FORMAT if DEBUG else CLUE_AUDIT_FORMAT,
|
|
74
|
+
CLUE_DATE_FORMAT if DEBUG else CLUE_ISO_DATE_FORMAT,
|
|
75
|
+
)
|
|
72
76
|
)
|
|
73
|
-
)
|
|
74
|
-
AUDIT_LOG.addHandler(fh)
|
|
77
|
+
AUDIT_LOG.addHandler(fh)
|
|
75
78
|
|
|
76
79
|
ch = logging.StreamHandler(sys.stdout)
|
|
77
80
|
ch.setLevel(logging.INFO)
|
|
@@ -141,7 +141,7 @@ log_cli_level = "WARN"
|
|
|
141
141
|
[tool.poetry]
|
|
142
142
|
package-mode = true
|
|
143
143
|
name = "clue-api"
|
|
144
|
-
version = "1.6.0.
|
|
144
|
+
version = "1.6.0.dev359"
|
|
145
145
|
description = "Clue distributed enrichment service"
|
|
146
146
|
authors = ["Canadian Centre for Cyber Security <contact@cyber.gc.ca>"]
|
|
147
147
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|