middleware-manager/database
hhftechnologies fca08e470b
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
Tests / Run Tests (push) Waiting to run
Tests / Lint (push) Waiting to run
Tests / Build (push) Blocked by required conditions
Add support for external (Traefik) middlewares
Introduce support for Traefik-native external middlewares referenced by resources.

- Database: add resource_external_middlewares table in migrations and ensure creation in post-migration updates.
- API: add handlers and routes to assign, remove and list external middlewares; include external_middlewares field in GetResources/GetResource responses (comma-separated name:priority:provider entries). Handlers validate resource status, use transactions, and log errors.
- Services: ConfigProxy now loads external middleware refs, merges them with internal middlewares sorted by priority when building resource config.
- UI: Resource detail component, API client, store and types updated to expose listing, assigning and removing external middlewares with UI controls and confirmation modal.
- Tests: add unit tests for assign/remove/list handlers and inclusion on GetResource.

This enables referencing middlewares defined outside MW-manager (e.g., Traefik dynamic config or plugins) and honors priority/provider metadata.
2026-02-12 18:24:05 +05:30
..
cleanup.go update-db 2025-08-27 16:47:52 +05:30
database_test.go updated-test-files-mtlsbugsfix 2026-01-17 13:12:44 +05:30
db.go Add support for external (Traefik) middlewares 2026-02-12 18:24:05 +05:30
migrations.sql Add support for external (Traefik) middlewares 2026-02-12 18:24:05 +05:30
sqlite_cgo.go updated-test-files-mtlsbugsfix 2026-01-17 13:12:44 +05:30
sqlite_nocgo.go updated-test-files-mtlsbugsfix 2026-01-17 13:12:44 +05:30
transaction.go update 2025-05-20 13:13:23 +05:30