34a57d6f09
fix: make setcap resilient — no-op when Python absent or symlink-only
2026-04-09 19:04:52 -04:00
016115a523
fix: clear all addressable technical debt (DEBT-005 through DEBT-025)
...
Security:
- DEBT-008: remove query-string token auth; header-only Bearer now enforced
- DEBT-013: add regex constraint ^[a-z0-9\-]{1,64}$ on decky_name path param
- DEBT-015: stop leaking raw exception detail to API clients; log server-side
- DEBT-016: validate search (max_length=512) and datetime params with regex
Reliability:
- DEBT-014: wrap SSE event_generator in try/except; yield error frame on failure
- DEBT-017: emit log.warning/error on DB init retry; silent failures now visible
Observability / Docs:
- DEBT-020: add 401/422 response declarations to all route decorators
Infrastructure:
- DEBT-018: add HEALTHCHECK to all 24 template Dockerfiles
- DEBT-019: add USER decnet + setcap cap_net_bind_service to all 24 Dockerfiles
- DEBT-024: bump Redis template version 7.0.12 → 7.2.7
Config:
- DEBT-012: validate DECNET_API_PORT and DECNET_WEB_PORT range (1-65535)
Code quality:
- DEBT-010: delete 22 duplicate decnet_logging.py copies; deployer injects canonical
- DEBT-022: closed as false positive (print only in module docstring)
- DEBT-009: closed as false positive (templates already use structured syslog_line)
Build:
- DEBT-025: generate requirements.lock via pip freeze
Testing:
- DEBT-005/006/007: comprehensive test suite added across tests/api/
- conftest: in-memory SQLite + StaticPool + monkeypatched session_factory
- fuzz mark added; default run excludes fuzz; -n logical parallelism
DEBT.md updated: 23/25 items closed; DEBT-011 (Alembic) and DEBT-023 (digest pinning) remain
2026-04-09 19:02:51 -04:00
0166d0d559
fix: clean up db layer — model_dump, timezone-aware timestamps, unified histogram, async load_state
2026-04-09 18:46:35 -04:00
dbf6d13b95
fix: use :memory: + StaticPool for test DBs, eliminates file:testdb_* garbage
2026-04-09 18:39:36 -04:00
d15c106b44
test: fix async fixture isolation, add fuzz marks, parallelize with xdist
...
- Rebuild repo.engine and repo.session_factory per-test using unique
in-memory SQLite URIs — fixes KeyError: 'access_token' caused by
stale session_factory pointing at production DB
- Add @pytest.mark.fuzz to all Hypothesis and Schemathesis tests;
default run excludes them (addopts = -m 'not fuzz')
- Add missing fuzz tests to bounty, fleet, histogram, and repository
- Use tmp_path for state file in patch_state_file/mock_state_file to
eliminate file-path race conditions under xdist parallelism
- Set default addopts: -v -q -x -n logical (26 tests in ~7s)
2026-04-09 18:32:46 -04:00
6fc1a2a3ea
test: refactor suite to use AsyncClient, in-memory DBs, and parallel coverage
2026-04-09 16:43:49 -04:00
de84cc664f
refactor: migrate database to SQLModel and implement modular DB structure
2026-04-09 16:43:30 -04:00
1541b4b7e0
docs: close DEBT-002 as by-design
2026-04-09 13:25:40 -04:00
2b7d872ab7
fix: revert DECNET_ADMIN_PASSWORD to default 'admin'; first-login change enforces security
2026-04-09 13:25:29 -04:00
4ae6f4f23d
test: expand coverage 64%→76%; add BUGS.md for Gemini migration issues
2026-04-09 12:55:52 -04:00
310c2a1fbe
feat: add pytest-asyncio, freezegun, schemathesis, pytest-cov to test toolchain
2026-04-09 12:40:59 -04:00
44de453bb2
refactor: modularize API tests to match router structure
2026-04-09 12:32:31 -04:00
ec66e01f55
fix: add missing __init__.py to tests/api subpackages to fix relative imports
2026-04-09 12:24:09 -04:00
a22f996027
docs: mark DEBT-001–004 as resolved in DEBT.md
2026-04-09 12:14:16 -04:00
b6b046c90b
fix: harden startup security — require strong secrets, restrict CORS
...
- decnet/env.py: DECNET_JWT_SECRET and DECNET_ADMIN_PASSWORD are now
required env vars; startup raises ValueError if unset or set to a
known-bad default ("admin", "password", etc.)
- decnet/env.py: add DECNET_CORS_ORIGINS (comma-separated, defaults to
http://localhost:8080 ) replacing the previous allow_origins=["*"]
- decnet/web/api.py: use DECNET_CORS_ORIGINS and tighten allow_methods
and allow_headers to explicit lists
- tests/conftest.py: set required env vars at module level so test
collection works without real credentials
- tests/test_web_api.py, test_web_api_fuzz.py: use DECNET_ADMIN_PASSWORD
from env instead of hardcoded "admin"
Closes DEBT-001, DEBT-002, DEBT-004
2026-04-09 12:13:22 -04:00
29a2cf2738
refactor: modularize API routes into separate files and clean up dependencies
2026-04-09 11:58:57 -04:00
551664bc43
fix: stabilize test suite by ensuring proper test DB isolation and initialization
2026-04-09 02:31:14 -04:00
a2d07bd67c
fix: refactor Bounty UI to match dashboard style and fix layout
2026-04-09 02:00:49 -04:00
a3b92d4dd6
docs: tag API endpoints for better organization
2026-04-09 01:58:54 -04:00
30edf9a55d
feat: add DECNET_DEVELOPER toggle for API documentation
2026-04-09 01:55:31 -04:00
69626d705d
feat: implement Bounty Vault for captured credentials and artifacts
2026-04-09 01:52:50 -04:00
0f86f883fe
fix: resolve remaining bandit warnings and stabilize lifespan
2026-04-09 01:35:08 -04:00
13f3d15a36
fix: stabilize tests with synchronous DB init and handle Bandit security findings
2026-04-09 01:33:15 -04:00
8c7ec2953e
fix: handle bcrypt 72-byte limit and increase JWT secret length
2026-04-09 01:11:32 -04:00
0123e1c69e
fix: suppress noisy cleanup warnings in pytest and fix fleet test auth
2026-04-09 01:05:34 -04:00
9dc6ff3887
ui: ensure inputs and buttons inherit Ubuntu Mono font
2026-04-08 21:31:44 -04:00
fe25798425
ui: change main dashboard font to Ubuntu Mono
2026-04-08 21:30:30 -04:00
6c2478ede3
fix: restore missing API endpoints, fix chart rendering, and update date filter formatting
2026-04-08 21:25:59 -04:00
532a4e2dc5
fix: resolve SSE CORS issues and fix date filter format mismatch
2026-04-08 21:15:26 -04:00
ec503b9ec6
feat: implement advanced live logs with KQL search, histogram, and live/historical modes
2026-04-08 21:01:05 -04:00
fe6b349e5e
modified: ci.yml, fucked up last time lol
CI / Lint (ruff) (push) Successful in 11s
CI / Test (pytest) (3.11) (push) Successful in 1m42s
CI / Test (pytest) (3.12) (push) Successful in 1m45s
CI / SAST (bandit) (push) Failing after 12s
CI / Dependency audit (pip-audit) (push) Successful in 20s
CI / Open PR to main (push) Has been skipped
2026-04-08 15:53:49 -04:00
65b220fdbe
modified: ci.yml, pyproject: added missing installs and modified pip install command
CI / Lint (ruff) (push) Successful in 16s
CI / Test (pytest) (3.11) (push) Failing after 20s
CI / Test (pytest) (3.12) (push) Failing after 20s
CI / SAST (bandit) (push) Failing after 11s
CI / Dependency audit (pip-audit) (push) Successful in 19s
CI / Open PR to main (push) Has been skipped
2026-04-08 15:50:17 -04:00
6f10e7556f
chore: deleted trash
CI / Lint (ruff) (push) Successful in 11s
CI / Test (pytest) (3.11) (push) Failing after 18s
CI / Test (pytest) (3.12) (push) Failing after 18s
CI / SAST (bandit) (push) Failing after 11s
CI / Dependency audit (pip-audit) (push) Successful in 18s
CI / Open PR to main (push) Has been skipped
2026-04-08 02:07:11 -04:00
fc99375c62
feat: add systemd service templates for API and Web Dashboard
CI / Lint (ruff) (push) Successful in 15s
CI / Test (pytest) (3.11) (push) Failing after 21s
CI / Test (pytest) (3.12) (push) Failing after 22s
CI / SAST (bandit) (push) Failing after 13s
CI / Dependency audit (pip-audit) (push) Successful in 19s
CI / Open PR to main (push) Has been skipped
2026-04-08 01:48:05 -04:00
6bdb5922fa
fix: ensure shared log volume mount by default and disable container-side rotation
2026-04-08 01:42:05 -04:00
32b06afef6
feat: add .env based configuration for API, Web, and Auth options
2026-04-08 01:27:11 -04:00
31e0c5151b
fix: ensure API-deployed deckies inherit the correct log ingestion path
2026-04-08 01:09:48 -04:00
cc3d434c02
feat: add server-side validation for web-based INI deployments
2026-04-08 01:04:59 -04:00
1b5d366b38
ui: add file upload support to web-based INI deployment
2026-04-08 00:59:53 -04:00
168ecf14ab
feat: add API-only mode and web-based INI deployment
2026-04-08 00:56:25 -04:00
db9a2699b9
ui: fix dashboard overflow and overlap with sidebar
2026-04-08 00:44:33 -04:00
d139729fa2
docs: revert incorrect roadmap ticks
2026-04-08 00:38:03 -04:00
dd363629ab
docs: update roadmap items in DEVELOPMENT.md
2026-04-08 00:35:43 -04:00
c544964f57
feat: migrate dashboard live logs to Server-Sent Events (SSE)
2026-04-08 00:30:31 -04:00
6e19848723
ui: improve mutation feedback and increase timeout for long-running docker ops
2026-04-08 00:22:23 -04:00
e24da92e0f
fix: increase timeout for mutate API call to handle slow docker ops
2026-04-08 00:21:16 -04:00
47f0e6da8f
fix: correctly iterate over all deckies in _build_deckies_from_ini
2026-04-08 00:19:42 -04:00
18de381a43
feat: implement dynamic decky mutation and fix dot-separated INI sections
2026-04-08 00:16:57 -04:00
1f5c6604d6
feat: integrate API lifecycle with teardown and update dependencies
2026-04-07 23:30:08 -04:00
a9c7ddec2b
fix: enforce absolute paths for state and database files
2026-04-07 23:21:16 -04:00