The docker build contexts and syslog_bridge.py lived at repo root, which meant setuptools (include = ["decnet*"]) never shipped them. Agents installed via `pip install $RELEASE_DIR` got site-packages/decnet/** but no templates/, so every deploy blew up in deployer._sync_logging_helper with FileNotFoundError on templates/syslog_bridge.py. Move templates/ -> decnet/templates/ and declare it as setuptools package-data. Path resolutions in services/*.py and engine/deployer.py drop one .parent since templates now lives beside the code. Test fixtures, bandit exclude path, and coverage omit glob updated to match.
31 lines
923 B
Django/Jinja
31 lines
923 B
Django/Jinja
[honeypot]
|
|
hostname = {{ COWRIE_HOSTNAME | default('svr01') }}
|
|
listen_endpoints = tcp:2222:interface=0.0.0.0
|
|
kernel_version = {{ COWRIE_HONEYPOT_KERNEL_VERSION | default('5.15.0-76-generic') }}
|
|
kernel_build_string = {{ COWRIE_HONEYPOT_KERNEL_BUILD_STRING | default('#83-Ubuntu SMP Thu Jun 15 19:16:32 UTC 2023') }}
|
|
hardware_platform = {{ COWRIE_HONEYPOT_HARDWARE_PLATFORM | default('x86_64') }}
|
|
|
|
[ssh]
|
|
enabled = true
|
|
listen_endpoints = tcp:2222:interface=0.0.0.0
|
|
version = {{ COWRIE_SSH_VERSION | default('SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.5') }}
|
|
|
|
{% if COWRIE_LOG_HOST is defined and COWRIE_LOG_HOST %}
|
|
[output_jsonlog]
|
|
enabled = true
|
|
logfile = cowrie.json
|
|
|
|
[output_localsocket]
|
|
enabled = false
|
|
|
|
# Forward JSON events to SIEM/aggregator
|
|
[output_tcp]
|
|
enabled = true
|
|
host = {{ COWRIE_LOG_HOST }}
|
|
port = {{ COWRIE_LOG_PORT | default('5140') }}
|
|
{% else %}
|
|
[output_jsonlog]
|
|
enabled = true
|
|
logfile = cowrie.json
|
|
{% endif %}
|