middleware-manager/api/handlers
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
..
common.go remove-IPWhiteList-deprecated 2026-01-21 19:27:23 +05:30
common_test.go testfiles 2026-01-24 11:58:12 +05:30
config.go router-priority-fix 2026-01-22 14:48:36 +05:30
config_test.go testfiles-update 2026-01-24 02:47:17 +05:30
datasource.go Handle empty body in TestDataSourceConnection 2026-01-22 17:18:11 +05:30
datasource_test.go testfiles-update 2026-01-24 02:47:17 +05:30
handlers_test.go updated-test-files-mtlsbugsfix 2026-01-17 13:12:44 +05:30
middlewares.go bug-deleting-services-middleware 2026-01-13 17:48:15 +05:30
middlewares_test.go testfiles 2026-01-24 11:58:12 +05:30
mtls.go bugfixes-ui-update 2026-01-14 17:11:32 +05:30
mtls_test.go testfiles 2026-01-24 11:58:12 +05:30
pagination.go update-ui 2025-12-31 21:53:32 +05:30
pagination_test.go testfiles-update 2026-01-24 02:47:17 +05:30
plugin_handler.go bugfixes-ui-update 2026-01-14 17:11:32 +05:30
plugin_handler_test.go testfiles 2026-01-24 11:58:12 +05:30
proxy.go refactor-api 2026-01-15 15:52:40 +05:30
proxy_test.go testfiles 2026-01-24 11:58:12 +05:30
resources.go Add support for external (Traefik) middlewares 2026-02-12 18:24:05 +05:30
resources_test.go Add support for external (Traefik) middlewares 2026-02-12 18:24:05 +05:30
security.go secure-headers-implementation 2026-01-21 11:39:45 +05:30
security_test.go testfiles-update 2026-01-24 02:47:17 +05:30
services.go service-mismatch 2026-01-23 13:37:23 +05:30
services_test.go testfiles-update 2026-01-24 02:47:17 +05:30
traefik_handler.go refactoring 2026-01-11 15:24:17 +05:30
traefik_handler_test.go testfiles-update 2026-01-24 02:47:17 +05:30
transaction.go refactoring 2026-01-11 15:24:17 +05:30