Repository navigation
Closed
Labels
priority: mediumMedium prioritytype: maintenanceRelated to general repository maintenancetype: securityRelated to securityworkload: hoursLikely takes hours to resolve
Description
Problem
api/middleware_management.yaml specifies a runtime management API for
middlewares (list/add/update/delete/reorder, with Git, PyPI and local
code sources: remote code execution if served). It was never served,
and the maintainer decided against any runtime management API (#197 and
PR #199 closed as not planned): plugins are managed by config only. The
spec and the middlewares collection (with two unique indexes, created
at every start) are dead weight and mislead readers.
Proposal
- Delete
pro_tes/api/middleware_management.yamland the comment in
config.yamlthat refers to it. - Remove the
middlewarescollection fromdb.dbs.taskStorein
config.yaml. Existing collections are left alone; the upgrading
notes say they can be dropped. - Docs: remove the "Middleware management API" sections
(docs/middlewares.md,docs/api.md,docs/index.md); upgrading
notes updated. - Tests: the tests of failing unique indexes other than that of task
identifiers use a collection from a test overlay instead.
Acceptance criteria
- No management spec, no
middlewarescollection;GET /protes/v1/middlewaresstays404. - The start still fails with FOCA's error for other conflicting
unique indexes (tests with an overlay collection). - ruff, mypy, ast-grep, semgrep, pytest (100% coverage),
mkdocs build --strictpass locally.
Verification (local)
All checks pass (1035 passed, 80 skipped; 100% coverage). Not run:
smoke test, MongoDB 7.0 matrix entry.
Dependencies
- None (after the closing of feat: Implement Controllers for Middleware Management API #197 as not planned). Merges cleanly with
refactor!: pass tasks to middlewares, not requests #315.
Open questions
- None.
Metadata
Metadata
Assignees
Labels
priority: mediumMedium prioritytype: maintenanceRelated to general repository maintenancetype: securityRelated to securityworkload: hoursLikely takes hours to resolve
Activity