Commit graph

53 commits

Author SHA1 Message Date
hhftechnologies
516a06a393 Add tests and atomicize service watcher flag
Add extensive unit tests across the codebase (api/errors, cache, many models tests, util/id_normalizer and others) to improve coverage and validate behavior. Replace ServiceWatcher.isRunning bool with atomic.Bool for safer concurrent access, update Start/Stop logic and related imports, and adjust service_watcher_test accordingly. Also update traefik_fetcher_test to use atomic counters for request counting and add minor import changes (sync/atomic).
2026-02-17 16:03:23 +05:30
hhftechnologies
fca08e470b Add support for external (Traefik) middlewares
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
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
hhftechnologies
ce71c4037c testfiles
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
2026-01-24 11:58:12 +05:30
hhftechnologies
35c1218613 testfiles-update 2026-01-24 02:47:17 +05:30
hhftechnologies
f655a310b2 bugfixes-router 2026-01-23 17:14:12 +05:30
hhftechnologies
84101c4018 service-mismatch 2026-01-23 13:37:23 +05:30
hhftechnologies
e578ec6a81 bugfixes-clearing-router-and-merge 2026-01-23 12:46:21 +05:30
hhftechnologies
5781578eca Handle empty body in TestDataSourceConnection
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
Update TestDataSourceConnection to support requests with an empty body by loading the existing data source config if available. Returns 404 if the data source is not found, otherwise proceeds as before.
2026-01-22 17:18:11 +05:30
hhftechnologies
f3405a2f0b update-router-resources-UUID 2026-01-22 15:34:22 +05:30
hhftechnologies
ca0731389b router-priority-fix 2026-01-22 14:48:36 +05:30
hhftechnologies
d194ccd2da remove-IPWhiteList-deprecated 2026-01-21 19:27:23 +05:30
hhftechnologies
77eb4e7a62 bugfixes-security-headers 2026-01-21 16:22:16 +05:30
hhftechnologies
dfa2118dbb secure-headers-implementation 2026-01-21 11:39:45 +05:30
hhftechnologies
4c76756593 updated-test-files-mtlsbugsfix 2026-01-17 13:12:44 +05:30
hhftechnologies
323d77661b mtls-whitelist 2026-01-17 12:17:09 +05:30
hhftechnologies
a44a3db656 update-ENABLE_FILE_CONFIG=true-default-false 2026-01-16 19:57:15 +05:30
hhftechnologies
7cb68c0c39 update-api 2026-01-16 13:09:59 +05:30
hhftechnologies
aa66d51e2e refactor-api
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
2026-01-15 15:52:40 +05:30
hhftechnologies
7ad07565d7 bugfixes-ui-update
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
2026-01-14 17:11:32 +05:30
hhftechnologies
0e9e516439 mtls-update
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
2026-01-14 04:19:52 +05:30
hhftechnologies
c1a7d607b4 bug-deleting-services-middleware 2026-01-13 17:48:15 +05:30
hhftechnologies
ec83c4e9a2 UI-Bugfixes 2026-01-12 01:12:13 +05:30
hhftechnologies
59282721dd refactoring 2026-01-11 15:24:17 +05:30
hhftechnologies
56d33a7560 update-ui 2025-12-31 21:53:32 +05:30
hhftechnologies
0dc2d5f988 update-router-priority
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
2025-08-27 18:16:12 +05:30
hhftechnologies
8421fb6721 update 2025-05-18 19:51:41 +05:30
hhftechnologies
f212df2293 update 2025-05-18 19:30:23 +05:30
hhftechnologies
97506f3a72 update 2025-05-18 18:49:57 +05:30
hhftechnologies
ced7d69bb9 update 2025-05-18 16:36:32 +05:30
hhftechnologies
5b4f949b86 plugins 2025-05-18 15:32:13 +05:30
hhftechnologies
f22b891cf3 Update resources.go 2025-05-18 13:14:53 +05:30
hhftechnologies
1409563549 Update resources.go 2025-05-18 13:13:00 +05:30
hhftechnologies
bf948eaaad update 2025-05-18 10:44:36 +05:30
hhftechnologies
73fdfc4a4a services-int 2025-05-05 12:35:30 +05:30
hhftechnologies
88a2a02a0d update 2025-04-29 11:13:11 +05:30
hhftechnologies
7156fdc34f update 2025-04-27 20:37:08 +05:30
hhftechnologies
5f3e4baa0f Update common.go 2025-04-23 14:52:23 +05:30
hhftechnologies
10a2cf3ce4 refactoring 2025-04-22 16:25:17 +05:30
hhftechnologies
56a447ebab Update handlers.go 2025-04-20 22:46:39 +05:30
hhftechnologies
865edc1be2 update 2025-04-20 22:11:12 +05:30
hhftechnologies
24168fc1b9 update 2025-04-17 23:09:24 +05:30
hhftechnologies
5c3bd12892 update 2025-04-17 22:09:01 +05:30
hhftechnologies
8c07fc89e7 update 2025-04-17 15:19:02 +05:30
hhftechnologies
6a0708048d update 2025-04-17 10:08:59 +05:30
hhftechnologies
48ec8cb07e Update handlers.go 2025-04-16 17:33:06 +05:30
hhftechnologies
2180e8d596 Update routes.go 2025-04-16 17:28:52 +05:30
hhftechnologies
7fa6e2fe27 update 2025-04-16 15:43:01 +05:30
hhftechnologies
64a7cf330d update 2025-04-14 20:29:30 +05:30
hhftechnologies
950cb7c88a update 2025-04-14 18:27:36 +05:30
hhftechnologies
3693aed23c update 2025-04-14 17:36:47 +05:30