feat: add .env based configuration for API, Web, and Auth options
This commit is contained in:
11
.env.example
Normal file
11
.env.example
Normal file
@@ -0,0 +1,11 @@
|
||||
# API Options
|
||||
DECNET_API_HOST=0.0.0.0
|
||||
DECNET_API_PORT=8000
|
||||
DECNET_JWT_SECRET=supersecretkey12345
|
||||
DECNET_INGEST_LOG_FILE=/var/log/decnet/decnet.log
|
||||
|
||||
# Web Dashboard Options
|
||||
DECNET_WEB_HOST=0.0.0.0
|
||||
DECNET_WEB_PORT=8080
|
||||
DECNET_ADMIN_USER=admin
|
||||
DECNET_ADMIN_PASSWORD=admin
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -17,3 +17,5 @@ webmail
|
||||
windows1
|
||||
*.db
|
||||
decnet.json
|
||||
.env
|
||||
.env.local
|
||||
|
||||
4
.hypothesis/constants/12924abcbf0c075f
Normal file
4
.hypothesis/constants/12924abcbf0c075f
Normal file
@@ -0,0 +1,4 @@
|
||||
# file: /home/anti/Tools/DECNET/decnet/web/api.py
|
||||
# hypothesis_version: 6.151.11
|
||||
|
||||
[404, 500, 1000, '*', '/api/v1/auth/login', '/api/v1/deckies', '/api/v1/logs', '/api/v1/stats', '/api/v1/stream', '1.0.0', 'Authorization', 'Bearer', 'Bearer ', 'Decky not found', 'No active deployment', 'WWW-Authenticate', 'access_token', 'admin', 'bearer', 'data', 'id', 'lastEventId', 'limit', 'logs', 'message', 'must_change_password', 'offset', 'password_hash', 'role', 'stats', 'text/event-stream', 'token', 'token_type', 'total', 'type', 'username', 'uuid']
|
||||
4
.hypothesis/constants/3048c6da87ba838d
Normal file
4
.hypothesis/constants/3048c6da87ba838d
Normal file
@@ -0,0 +1,4 @@
|
||||
# file: /home/anti/Tools/DECNET/decnet/web/auth.py
|
||||
# hypothesis_version: 6.151.11
|
||||
|
||||
[1440, 'HS256', 'exp', 'iat', 'utf-8']
|
||||
4
.hypothesis/constants/39f59c66c174e4ce
Normal file
4
.hypothesis/constants/39f59c66c174e4ce
Normal file
@@ -0,0 +1,4 @@
|
||||
# file: /home/anti/Tools/DECNET/decnet/cli.py
|
||||
# hypothesis_version: 6.151.11
|
||||
|
||||
[8000, ',', ', ', '--all', '--api', '--api-port', '--archetype', '--config', '--deckies', '--decky', '--distro', '--dry-run', '--emit-syslog', '--host', '--id', '--interface', '--ip-start', '--ipvlan', '--log-file', '--log-target', '--min-deckies', '--mode', '--mutate-interval', '--no-cache', '--output', '--port', '--randomize-distros', '--randomize-services', '--services', '--subnet', '--watch', '--web-port', '-a', '-c', '-d', '-f', '-i', '-m', '-n', '-o', '-w', '/index.html', '0.0.0.0', 'Available Services', 'Default Services', 'Description', 'Display Name', 'Docker Image', 'Image', 'Machine Archetypes', 'Name', 'Ports', 'Slug', 'archetypes', 'bold cyan', 'correlate', 'decnet', 'decnet.cli', 'decnet.log', 'decnet.web.api:app', 'decnet_web', 'dim', 'dist', 'distros', 'green', 'json', 'linux', 'mutate', 'services', 'swarm', 'syslog', 'table', 'unihost', 'uvicorn', 'web']
|
||||
4
.hypothesis/constants/42a1dcb5c22b1ac1
Normal file
4
.hypothesis/constants/42a1dcb5c22b1ac1
Normal file
@@ -0,0 +1,4 @@
|
||||
# file: /home/anti/Tools/DECNET/decnet/ini_loader.py
|
||||
# hypothesis_version: 6.151.11
|
||||
|
||||
[100, 512, 1024, ',', '.', '1', '[', ']', 'amount', 'archetype', 'binary', 'custom-', 'exceeds maximum', 'exec', 'general', 'gw', 'interface', 'ip', 'log-target', 'log_target', 'mutate-interval', 'mutate_interval', 'net', 'nmap-os', 'nmap_os', 'ports', 'services']
|
||||
4
.hypothesis/constants/46cebe14ff55dbd1
Normal file
4
.hypothesis/constants/46cebe14ff55dbd1
Normal file
@@ -0,0 +1,4 @@
|
||||
# file: /home/anti/Tools/DECNET/decnet/cli.py
|
||||
# hypothesis_version: 6.151.11
|
||||
|
||||
[5173, 8000, ',', ', ', '--all', '--api', '--api-port', '--archetype', '--config', '--deckies', '--decky', '--distro', '--dry-run', '--emit-syslog', '--host', '--id', '--interface', '--ip-start', '--ipvlan', '--log-file', '--log-target', '--min-deckies', '--mode', '--mutate-interval', '--no-cache', '--output', '--port', '--randomize-distros', '--randomize-services', '--services', '--subnet', '--watch', '--web-port', '-a', '-c', '-d', '-f', '-i', '-m', '-n', '-o', '-w', '/index.html', '0.0.0.0', 'Available Services', 'Default Services', 'Description', 'Display Name', 'Docker Image', 'Image', 'Machine Archetypes', 'Name', 'Ports', 'Slug', 'archetypes', 'bold cyan', 'correlate', 'decnet', 'decnet.cli', 'decnet.log', 'decnet.web.api:app', 'decnet_web', 'dim', 'dist', 'distros', 'green', 'json', 'linux', 'mutate', 'services', 'swarm', 'syslog', 'table', 'unihost', 'uvicorn', 'web']
|
||||
4
.hypothesis/constants/4efedb0b38145ee9
Normal file
4
.hypothesis/constants/4efedb0b38145ee9
Normal file
@@ -0,0 +1,4 @@
|
||||
# file: /home/anti/Tools/DECNET/decnet/env.py
|
||||
# hypothesis_version: 6.151.11
|
||||
|
||||
['.env', '.env.local', '0.0.0.0', '8000', '8080', 'DECNET_ADMIN_USER', 'DECNET_API_HOST', 'DECNET_API_PORT', 'DECNET_JWT_SECRET', 'DECNET_WEB_HOST', 'DECNET_WEB_PORT', 'admin']
|
||||
4
.hypothesis/constants/56584ef41d5dcfbb
Normal file
4
.hypothesis/constants/56584ef41d5dcfbb
Normal file
@@ -0,0 +1,4 @@
|
||||
# file: /home/anti/Tools/DECNET/decnet/web/auth.py
|
||||
# hypothesis_version: 6.151.11
|
||||
|
||||
[1440, 'HS256', 'exp', 'iat', 'utf-8']
|
||||
4
.hypothesis/constants/653cbfe0ead00867
Normal file
4
.hypothesis/constants/653cbfe0ead00867
Normal file
@@ -0,0 +1,4 @@
|
||||
# file: /home/anti/Tools/DECNET/decnet/web/api.py
|
||||
# hypothesis_version: 6.151.11
|
||||
|
||||
[404, 500, 1000, '*', '/api/v1/auth/login', '/api/v1/deckies', '/api/v1/logs', '/api/v1/stats', '/api/v1/stream', '1.0.0', 'Authorization', 'Bearer', 'Bearer ', 'Decky not found', 'No active deployment', 'WWW-Authenticate', 'access_token', 'admin', 'bearer', 'data', 'id', 'lastEventId', 'limit', 'logs', 'message', 'must_change_password', 'offset', 'password_hash', 'role', 'stats', 'text/event-stream', 'token', 'token_type', 'total', 'type', 'username', 'uuid']
|
||||
4
.hypothesis/constants/6ef9c847efdbbda6
Normal file
4
.hypothesis/constants/6ef9c847efdbbda6
Normal file
@@ -0,0 +1,4 @@
|
||||
# file: /home/anti/Tools/DECNET/decnet/web/api.py
|
||||
# hypothesis_version: 6.151.11
|
||||
|
||||
[400, 404, 500, 512, 1000, 1024, '*', '/api/v1/auth/login', '/api/v1/deckies', '/api/v1/logs', '/api/v1/stats', '/api/v1/stream', '1.0.0', 'Authorization', 'Bearer', 'Bearer ', 'Decky not found', 'No active deployment', 'WWW-Authenticate', 'access_token', 'admin', 'bearer', 'data', 'decnet.web.api', 'id', 'lastEventId', 'limit', 'logs', 'message', 'must_change_password', 'offset', 'password_hash', 'role', 'stats', 'text/event-stream', 'token', 'token_type', 'total', 'type', 'unihost', 'username', 'uuid']
|
||||
4
.hypothesis/constants/7a3f92bbfaebef4e
Normal file
4
.hypothesis/constants/7a3f92bbfaebef4e
Normal file
@@ -0,0 +1,4 @@
|
||||
# file: /home/anti/Tools/DECNET/decnet/ini_loader.py
|
||||
# hypothesis_version: 6.151.11
|
||||
|
||||
[',', '.', '1', 'amount', 'archetype', 'binary', 'custom-', 'exec', 'general', 'gw', 'interface', 'ip', 'log-target', 'log_target', 'mutate-interval', 'mutate_interval', 'net', 'nmap-os', 'nmap_os', 'ports', 'services']
|
||||
4
.hypothesis/constants/84bbb6b2519f3506
Normal file
4
.hypothesis/constants/84bbb6b2519f3506
Normal file
@@ -0,0 +1,4 @@
|
||||
# file: /home/anti/Tools/DECNET/decnet/web/api.py
|
||||
# hypothesis_version: 6.151.11
|
||||
|
||||
[400, 404, 500, 1000, '*', '/api/v1/auth/login', '/api/v1/deckies', '/api/v1/logs', '/api/v1/stats', '/api/v1/stream', '1.0.0', 'Authorization', 'Bearer', 'Bearer ', 'Decky not found', 'No active deployment', 'WWW-Authenticate', 'access_token', 'admin', 'bearer', 'data', 'decnet.web.api', 'id', 'lastEventId', 'limit', 'logs', 'message', 'must_change_password', 'offset', 'password_hash', 'role', 'stats', 'text/event-stream', 'token', 'token_type', 'total', 'type', 'unihost', 'username', 'uuid']
|
||||
4
.hypothesis/constants/bae355075973c2af
Normal file
4
.hypothesis/constants/bae355075973c2af
Normal file
@@ -0,0 +1,4 @@
|
||||
# file: /home/anti/Tools/DECNET/decnet/web/api.py
|
||||
# hypothesis_version: 6.151.11
|
||||
|
||||
[400, 404, 500, 512, 1000, 1024, '*', '/api/v1/auth/login', '/api/v1/deckies', '/api/v1/logs', '/api/v1/stats', '/api/v1/stream', '1.0.0', 'Authorization', 'Bearer', 'Bearer ', 'Decky not found', 'No active deployment', 'WWW-Authenticate', 'access_token', 'admin', 'bearer', 'data', 'decnet.web.api', 'id', 'lastEventId', 'limit', 'logs', 'message', 'must_change_password', 'offset', 'password_hash', 'role', 'stats', 'text/event-stream', 'token', 'token_type', 'total', 'type', 'unihost', 'username', 'uuid']
|
||||
4
.hypothesis/constants/cbd8a83626f88ea8
Normal file
4
.hypothesis/constants/cbd8a83626f88ea8
Normal file
@@ -0,0 +1,4 @@
|
||||
# file: /home/anti/Tools/DECNET/decnet/web/sqlite_repository.py
|
||||
# hypothesis_version: 6.151.11
|
||||
|
||||
['SELECT * FROM logs', 'active_deckies', 'attacker_ip', 'decky', 'decnet.db', 'deployed_deckies', 'event_type', 'fields', 'max_id', 'msg', 'must_change_password', 'password_hash', 'raw_line', 'role', 'service', 'timestamp', 'total', 'total_logs', 'unique_attackers', 'username', 'uuid']
|
||||
4
.hypothesis/constants/dbb3e0fb1231c2a3
Normal file
4
.hypothesis/constants/dbb3e0fb1231c2a3
Normal file
@@ -0,0 +1,4 @@
|
||||
# file: /home/anti/Tools/DECNET/decnet/cli.py
|
||||
# hypothesis_version: 6.151.11
|
||||
|
||||
[8000, ',', ', ', '--all', '--api', '--api-port', '--archetype', '--config', '--deckies', '--decky', '--distro', '--dry-run', '--emit-syslog', '--host', '--id', '--interface', '--ip-start', '--ipvlan', '--log-file', '--log-target', '--min-deckies', '--mode', '--mutate-interval', '--no-cache', '--output', '--port', '--randomize-distros', '--randomize-services', '--services', '--subnet', '--watch', '--web-port', '-a', '-c', '-d', '-f', '-i', '-m', '-n', '-o', '-w', '/index.html', '0.0.0.0', 'Available Services', 'Default Services', 'Description', 'Display Name', 'Docker Image', 'Image', 'Machine Archetypes', 'Name', 'Ports', 'Slug', 'archetypes', 'bold cyan', 'correlate', 'decnet', 'decnet.cli', 'decnet.log', 'decnet.web.api:app', 'decnet_web', 'dim', 'dist', 'distros', 'green', 'json', 'linux', 'mutate', 'services', 'swarm', 'syslog', 'table', 'unihost', 'uvicorn', 'web']
|
||||
4
.hypothesis/constants/e6075ef770e33fe2
Normal file
4
.hypothesis/constants/e6075ef770e33fe2
Normal file
@@ -0,0 +1,4 @@
|
||||
# file: /home/anti/Tools/DECNET/decnet/web/api.py
|
||||
# hypothesis_version: 6.151.11
|
||||
|
||||
[400, 404, 500, 512, 1000, 1024, '*', '/api/v1/auth/login', '/api/v1/deckies', '/api/v1/logs', '/api/v1/stats', '/api/v1/stream', '1.0.0', 'Authorization', 'Bearer', 'Bearer ', 'Decky not found', 'No active deployment', 'WWW-Authenticate', 'access_token', 'admin', 'bearer', 'data', 'decnet.web.api', 'id', 'lastEventId', 'limit', 'logs', 'message', 'must_change_password', 'offset', 'password_hash', 'role', 'stats', 'text/event-stream', 'token', 'token_type', 'total', 'type', 'unihost', 'username', 'uuid']
|
||||
4
.hypothesis/constants/e9250999acae5d85
Normal file
4
.hypothesis/constants/e9250999acae5d85
Normal file
@@ -0,0 +1,4 @@
|
||||
# file: /home/anti/Tools/DECNET/decnet/cli.py
|
||||
# hypothesis_version: 6.151.11
|
||||
|
||||
[5173, 8000, ',', ', ', '--all', '--api', '--api-port', '--archetype', '--config', '--deckies', '--decky', '--distro', '--dry-run', '--emit-syslog', '--host', '--id', '--interface', '--ip-start', '--ipvlan', '--log-file', '--log-target', '--min-deckies', '--mode', '--mutate-interval', '--no-cache', '--output', '--port', '--randomize-distros', '--randomize-services', '--services', '--subnet', '--watch', '--web-port', '-a', '-c', '-d', '-f', '-i', '-m', '-n', '-o', '-w', '/index.html', '0.0.0.0', 'Available Services', 'Default Services', 'Description', 'Display Name', 'Docker Image', 'Image', 'Machine Archetypes', 'Name', 'Ports', 'Slug', 'archetypes', 'bold cyan', 'correlate', 'decnet', 'decnet.cli', 'decnet.log', 'decnet.web.api:app', 'decnet_web', 'dim', 'dist', 'distros', 'green', 'json', 'linux', 'mutate', 'services', 'swarm', 'syslog', 'table', 'unihost', 'uvicorn', 'web']
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙没锘<EFBFBD>妺否彮旘,濖С倔€憢€
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙喹狇妺否彮旘,濖С倔€憢€
|
||||
@@ -1 +0,0 @@
|
||||
<EFBFBD>I0000000000ࠀ𥕻<EFBFBD>
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙么每锘<EFBFBD>妺否彮旘,濖С倔€憢€
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聙聙聙聙聽拢颅脙脵脹盲么玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘,濖С倔€憢€
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙貌煤媒镁每锘<EFBFBD>妺否彮旘,濖С倔€憢€
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聙聙聙聙聙聙聙聙脵脹盲么玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘,濖С倔€憢€
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聙聙聙聮聽拢颅脙脵脹盲么玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘,濖С倔€憢€
|
||||
@@ -1 +0,0 @@
|
||||
烮000000000i聝聫聭聵聹聽拢颅脙脵脹盲么玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘,濖С倔€憢€
|
||||
@@ -1 +0,0 @@
|
||||
<EFBFBD>I0000000000ࠀ𐀀𐀀𒆌<EFBFBD>
|
||||
@@ -1 +0,0 @@
|
||||
<EFBFBD>I0000000000ࠀ𐀀𐀀𒆄<EFBFBD>
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙啜瘩妺否彮旘,濖С倔€憢€
|
||||
@@ -1 +0,0 @@
|
||||
<EFBFBD>I0000000000ࠀ𐀀𐀀𑲎<EFBFBD>
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙冒煤媒镁每锘<EFBFBD>妺否彮旘,濖С倔€憢€
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聙聙聙聙聙聙聙陆脵脹盲么玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘,濖С倔€憢€
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聙聙聙聙聙聶颅脙脵脹盲么玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘,濖С倔€憢€
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聙聙聙聙聙聙聙聙脮脹盲么玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘,濖С倔€憢€
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聙聙聙聙聙聙聙聙聙脹盲么玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘,濖С倔€憢€
|
||||
@@ -1 +0,0 @@
|
||||
<EFBFBD>I0000000000ࠀ𐀀𐀀𐀀𐙿<EFBFBD>
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聙聛聵聹聽拢颅脙脵脹盲么玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘,濖С倔€憢€
|
||||
@@ -1 +0,0 @@
|
||||
<EFBFBD>I0000000000ࠀ𐀀𐀀𐀞<EFBFBD>
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙酄€饞到駨瓟颍瑵颛尘髝憢€
|
||||
@@ -1 +0,0 @@
|
||||
<EFBFBD>I0000000000ࠀ𐀀𐀀𐀀𐀀𐀉<EFBFBD>
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙梅锘<EFBFBD>妺否彮旘,濖С倔€憢€
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙酄€饜€<EFBFBD>彮旘,濖С倔€憢€
|
||||
@@ -1 +0,0 @@
|
||||
<EFBFBD>I0000000000ࠀ𐀀𐀀𐀀𐀀𐑇<EFBFBD>
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙霉镁每锘<EFBFBD>妺否彮旘,濖С倔€憢€
|
||||
@@ -1 +0,0 @@
|
||||
<EFBFBD>I0000000000ࠀ<EFBFBD>
|
||||
@@ -1 +0,0 @@
|
||||
<EFBFBD>I0000000000ࠀ𐀀𐀀𐀀𐀀𐀅<EFBFBD>
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙庐每锘<EFBFBD>妺否彮旘,濖С倔€憢€
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙炉锘<EFBFBD>妺否彮旘,濖С倔€憢€
|
||||
@@ -1 +0,0 @@
|
||||
<EFBFBD>I0000000000ࠀ𐀀𐏕<EFBFBD>
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聠玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘,濖С倔€憢€
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聜玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘,濖С倔€憢€
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聙聙聙聙聙聙聙聙聙脳盲么玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘,濖С倔€憢€
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聛聭聵聹聽拢颅脙脵脹盲么玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘,濖С倔€憢€
|
||||
@@ -1 +0,0 @@
|
||||
<EFBFBD>I0000000000ࠀ<EFBFBD>
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聙聙聙聙聙聙聙聙卤脹盲么玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘,濖С倔€憢€
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聙聙聙聙聙聙聙脙脵脹盲么玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘,濖С倔€憢€
|
||||
@@ -1 +0,0 @@
|
||||
<EFBFBD>I0000000000ࠀ𐀀𐀀𐀀<EFBFBD>
|
||||
@@ -1 +0,0 @@
|
||||
<EFBFBD>I0000000000ࠀ𐀀𐀀𐀀<EFBFBD>
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聜媒镁每锘<EFBFBD>妺否彮旘,濖С倔€憢€
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙么玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘,濖С倔€憢€
|
||||
@@ -1 +0,0 @@
|
||||
<EFBFBD>I0000000000ࠀ<EFBFBD>
|
||||
@@ -1 +0,0 @@
|
||||
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙媒锘<EFBFBD>妺否彮旘,濖С倔€憢€
|
||||
Binary file not shown.
Binary file not shown.
24
README.md
24
README.md
@@ -490,6 +490,30 @@ See [`test-full.ini`](test-full.ini) — covers all 25 services across 10 role-t
|
||||
|
||||
---
|
||||
|
||||
## Environment Configuration (.env)
|
||||
|
||||
DECNET supports loading configuration from `.env.local` and `.env` files located in the project root. This is useful for securing secrets like the JWT key and configuring default ports without passing flags every time.
|
||||
|
||||
An example `.env.example` is provided:
|
||||
|
||||
```ini
|
||||
# API Options
|
||||
DECNET_API_HOST=0.0.0.0
|
||||
DECNET_API_PORT=8000
|
||||
DECNET_JWT_SECRET=supersecretkey12345
|
||||
DECNET_INGEST_LOG_FILE=/var/log/decnet/decnet.log
|
||||
|
||||
# Web Dashboard Options
|
||||
DECNET_WEB_HOST=0.0.0.0
|
||||
DECNET_WEB_PORT=8080
|
||||
DECNET_ADMIN_USER=admin
|
||||
DECNET_ADMIN_PASSWORD=admin
|
||||
```
|
||||
|
||||
Copy `.env.example` to `.env.local` and modify it to suit your environment.
|
||||
|
||||
---
|
||||
|
||||
## Logging
|
||||
|
||||
All attacker interactions are forwarded off the decoy network to an isolated logging sink. The log pipeline lives on a separate internal Docker bridge (`decnet_logs`) that is not reachable from the fake LAN.
|
||||
|
||||
443
decnet.log
443
decnet.log
@@ -361,3 +361,446 @@
|
||||
<134>1 2026-04-08T03:05:15.848801+00:00 decky-webmail pop3 - connect [decnet@55555 src="192.168.1.5" src_port="50550"]
|
||||
<134>1 2026-04-08T03:05:15.848882+00:00 decky-webmail pop3 - command [decnet@55555 src="192.168.1.5" cmd=" | ||||