feat: add .env based configuration for API, Web, and Auth options

This commit is contained in:
2026-04-08 01:24:49 -04:00
parent 31e0c5151b
commit 32b06afef6
76 changed files with 600 additions and 64 deletions

View 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']

View 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']

View 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']

View 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']

View 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']

View 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']

View 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']

View 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']

View 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']

View 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']

View 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']

View 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']

View 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']

View 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']

View 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']

View 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']

View File

@@ -1 +0,0 @@
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙没锘<EFBFBD>妺否彮旘С倔€憢€

View File

@@ -1 +0,0 @@
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙喹狇妺否彮旘С倔€憢€

View File

@@ -1 +0,0 @@
<EFBFBD>I0000000000€€€€€€€€€€€€€€€€€€€€ࠀ𥕻񏭔򣬝򧳾󀑋<EFBFBD>

View File

@@ -1 +0,0 @@
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙么每锘<EFBFBD>妺否彮旘С倔€憢€

View File

@@ -1 +0,0 @@
烮0000000000聙聙聙聙聙聽拢颅脙脵脹盲么玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘С倔€憢€

View File

@@ -1 +0,0 @@
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙貌煤媒镁每锘<EFBFBD>妺否彮旘С倔€憢€

View File

@@ -1 +0,0 @@
烮0000000000聙聙聙聙聙聙聙聙聙脵脹盲么玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘С倔€憢€

View File

@@ -1 +0,0 @@
烮0000000000聙聙聙聙聮聽拢颅脙脵脹盲么玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘С倔€憢€

View File

@@ -1 +0,0 @@
烮000000000i聝聫聭聵聹聽拢颅脙脵脹盲么玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘С倔€憢€

View File

@@ -1 +0,0 @@
<EFBFBD>I0000000000€€€€€€€€€€€€€€€€€€€€ࠀ𐀀𐀀𒆌򧳾󀑋<EFBFBD>

View File

@@ -1 +0,0 @@
<EFBFBD>I0000000000€€€€€€€€€€€€€€€€€€€€ࠀ𐀀𐀀𒆄򧳾󀑋<EFBFBD>

View File

@@ -1 +0,0 @@
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙啜瘩妺否彮旘С倔€憢€

View File

@@ -1 +0,0 @@
<EFBFBD>I0000000000€€€€€€€€€€€€€€€€€€€€ࠀ𐀀𐀀𑲎򧳾󀑋<EFBFBD>

View File

@@ -1 +0,0 @@
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙冒煤媒镁每锘<EFBFBD>妺否彮旘С倔€憢€

View File

@@ -1 +0,0 @@
烮0000000000聙聙聙聙聙聙聙聙陆脵脹盲么玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘С倔€憢€

View File

@@ -1 +0,0 @@
烮0000000000聙聙聙聙聙聙聶颅脙脵脹盲么玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘С倔€憢€

View File

@@ -1 +0,0 @@
烮0000000000聙聙聙聙聙聙聙聙聙脮脹盲么玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘С倔€憢€

View File

@@ -1 +0,0 @@
烮0000000000聙聙聙聙聙聙聙聙聙聙脹盲么玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘С倔€憢€

View File

@@ -1 +0,0 @@
<EFBFBD>I0000000000€€€€€€€€€€€€€€€€€€€€ࠀ𐀀𐀀𐀀𐙿󀑋<EFBFBD>

View File

@@ -1 +0,0 @@
烮0000000000聙聙聛聵聹聽拢颅脙脵脹盲么玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘С倔€憢€

View File

@@ -1 +0,0 @@
<EFBFBD>I0000000000€€€€€€€€€€€€€€€€€€€€ࠀ𐀀𐀀𐀞򧳾󀑋<EFBFBD>

View File

@@ -1 +0,0 @@
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙酄€饞到駨瓟颍瑵颛尘髝憢€

View File

@@ -1 +0,0 @@
<EFBFBD>I0000000000€€€€€€€€€€€€€€€€€€€€ࠀ𐀀𐀀𐀀𐀀𐀉<EFBFBD>

View File

@@ -1 +0,0 @@
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙梅锘<EFBFBD>妺否彮旘С倔€憢€

View File

@@ -1 +0,0 @@
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙酄€饜€<EFBFBD>彮旘С倔€憢€

View File

@@ -1 +0,0 @@
<EFBFBD>I0000000000€€€€€€€€€€€€€€€€€€€€ࠀ𐀀𐀀𐀀𐀀𐑇<EFBFBD>

View File

@@ -1 +0,0 @@
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙霉镁每锘<EFBFBD>妺否彮旘С倔€憢€

View File

@@ -1 +0,0 @@
<EFBFBD>I0000000000€€€€€€€€€€€€€€€€€€€€ࠀ񊋷񏭔򣬝򧳾󀑋<EFBFBD>

View File

@@ -1 +0,0 @@
<EFBFBD>I0000000000€€€€€€€€€€€€€€€€€€€€ࠀ𐀀𐀀𐀀𐀀𐀅<EFBFBD>

View File

@@ -1 +0,0 @@
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙庐每锘<EFBFBD>妺否彮旘С倔€憢€

View File

@@ -1 +0,0 @@
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙炉锘<EFBFBD>妺否彮旘С倔€憢€

View File

@@ -1 +0,0 @@
<EFBFBD>I0000000000€€€€€€€€€€€€€€€€€€€€ࠀ𐀀𐏕򣬝򧳾󀑋<EFBFBD>

View File

@@ -1 +0,0 @@
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聠玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘С倔€憢€

View File

@@ -1 +0,0 @@
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聜玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘С倔€憢€

View File

@@ -1 +0,0 @@
烮0000000000聙聙聙聙聙聙聙聙聙聙脳盲么玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘С倔€憢€

View File

@@ -1 +0,0 @@
烮0000000000聙聛聭聵聹聽拢颅脙脵脹盲么玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘С倔€憢€

View File

@@ -1 +0,0 @@
<EFBFBD>I0000000000€€€€€€€€€€€€€€€€€€€€ࠀ𒸝񏭔򣬝򧳾󀑋<EFBFBD>

View File

@@ -1 +0,0 @@
烮0000000000聙聙聙聙聙聙聙聙聙卤脹盲么玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘С倔€憢€

View File

@@ -1 +0,0 @@
烮0000000000聙聙聙聙聙聙聙聙脙脵脹盲么玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘С倔€憢€

View File

@@ -1 +0,0 @@
<EFBFBD>I0000000000€€€€€€€€€€€€€€€€€€€€ࠀ𐀀𐀀𐀀𓵿󀑋<EFBFBD>

View File

@@ -1 +0,0 @@
<EFBFBD>I0000000000€€€€€€€€€€€€€€€€€€€€ࠀ𐀀𐀀𐀀𒹿󀑋<EFBFBD>

View File

@@ -1 +0,0 @@
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聜媒镁每锘<EFBFBD>妺否彮旘С倔€憢€

View File

@@ -1 +0,0 @@
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙么玫梅酶煤媒镁每锘<EFBFBD>妺否彮旘С倔€憢€

View File

@@ -1 +0,0 @@
<EFBFBD>I0000000000€€€€€€€€€€€€€€€€€€€€ࠀ𒹭񏭔򣬝򧳾󀑋<EFBFBD>

View File

@@ -1 +0,0 @@
烮0000000000聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙聙媒锘<EFBFBD>妺否彮旘С倔€憢€