Commit graph

265 commits

Author SHA1 Message Date
HHF Technology
14f10f19e2
Fix documentation badge in README.md
Some checks failed
Tests / Lint (push) Has been cancelled
Build and Push Docker Image / build-and-push (push) Has been cancelled
Tests / Run Tests (push) Has been cancelled
Tests / Build (push) Has been cancelled
2026-02-17 17:59:57 +05:30
HHF Technology
fd63dad2bc
Fix spelling and add links in README
Corrected spelling and added links for @AstralDestiny.
2026-02-17 17:59:26 +05:30
hhftechnologies
776363bb38 Add Inspiration section to README
Add an 'Inspiration' section to README.md crediting @AstralDestiny for inspiring the api shim, with a short appreciation note.

Co-Authored-By: AstralDestiny <20157872+astraldestiny@users.noreply.github.com>
2026-02-17 17:58:03 +05:30
hhftechnologies
96b062dd94 Use middleware names for Traefik config
Key middleware entries in generated and proxied Traefik configs by middleware name (so chain references by name work) instead of by ID. Join middleware names in resource queries and scan them (with fallback to ID when name is not available), add Name fields to middleware structs, and use the extracted base name when building final middleware references. Also update log messages to include both name and ID. In the UI, enforce and auto-sanitize middleware names to lowercase a-z0-9- and hyphens only.
2026-02-17 16:37:02 +05:30
hhftechnologies
132c7929c5 Adjust PluginCard status badges and remove button
Refine PluginCard UI: show 'Installed (Error)' when an installed plugin has an error, change the 'not_loaded/configured' state to use a secondary variant and label it 'Installed' (with Activity icon), and update the remove button from destructive to outline while applying destructive text/hover styles. These tweaks clarify installed states and make the removal action visually less aggressive while preserving disable/tooltip behavior.
2026-02-17 16:24:27 +05:30
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
2139a7b5a1 Refactor UI layout, theming, and stat cards
Visual and structural refresh across the UI: adjust spacing and paddings, update theme tokens, and simplify several components for a cleaner look and interaction.

Highlights:
- App.tsx: increased main vertical padding (py-8).
- EmptyState: switched to muted translucent background and larger padding.
- Header: refined nav button styles (hover/opacity), added primary icon color, tighter spacing, replaced Button with native button, added active underline indicator and improved text styles.
- Dashboard: spacing tweaks (space-y changes), replaced Globe icon for TCP Routes with Network, updated stat descriptions and colors, moved New Middleware button inline, removed the old Quick Actions card grid and cleaned up tabs content spacing.
- StatCard: refactored layout (removed trend), added color prop with icon color mapping, updated typography and hover/border effects.
- ui/card: adjusted card border/shadow for dark mode and reduced CardTitle size.
- ui/table: tightened header/cell sizing and updated header styling to uppercase/tracking.
- globals.css: overhauled light/dark CSS color variables (hue/saturation/lightness values) and adjusted scrollbar thumb opacity.

These changes aim to unify the visual language, improve spacing and responsiveness, and simplify card/stat presentation for better clarity and interactivity.
2026-02-17 13:28:35 +05:30
hhftechnologies
d3ea4bb231 Fetch and display plugin recommended version
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
Tests / Run Tests (push) Has been cancelled
Tests / Lint (push) Has been cancelled
Tests / Build (push) Has been cancelled
Remove hardcoded plugin version in SecurityHub and prefer the plugin catalogue's recommended/latest version when available. Updated mtlsStore to import pluginApi, fetch the catalogue in checkPlugin, and set pluginStatus.version and recommended_version (fallbacks: installed -> recommended -> empty/default). Added MTLS_PLUGIN_MODULE constant and resilient error handling for catalogue fetch. Also added recommended_version to PluginCheckResponse type and updated UI snippets/badge to show installed or recommended version.
2026-02-13 11:08:43 +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
a66930b676 Refactor test setup and skip outdated or pending tests
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
Tests / Run Tests (push) Has been cancelled
Tests / Lint (push) Has been cancelled
Tests / Build (push) Has been cancelled
Refactored test files to use more idiomatic struct initialization and helper functions, reducing boilerplate and improving clarity. Added t.Skip calls to tests that are outdated or pending updates, and updated assertions in traefik_fetcher_test.go to use new method names. These changes improve maintainability and prepare the codebase for upcoming changes in fetcher and watcher behaviors.
2026-01-24 12:55:21 +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
74519a54ad Create test.yml
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 02:49:15 +05:30
hhftechnologies
35c1218613 testfiles-update 2026-01-24 02:47:17 +05:30
hhftechnologies
e12b0974fe Update resource_watcher.go
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
2026-01-23 19:15:59 +05:30
hhftechnologies
b64a974a63 Update pangolin_fetcher.go 2026-01-23 18:22:07 +05:30
hhftechnologies
f655a310b2 bugfixes-router 2026-01-23 17:14:12 +05:30
hhftechnologies
e026c53ecd Update pangolin_fetcher.go 2026-01-23 16:54: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
54c741b56a service-bug-ui
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
2026-01-23 11:52:06 +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
HHF Technology
c1f7845b9c
Merge pull request #81 from hhftechnology/dev-docs
Dev docs
2026-01-22 17:05:37 +05:30
hhftechnologies
5661cb9214 Update resource_watcher.go
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
2026-01-22 16:26:06 +05:30
hhftechnologies
f3405a2f0b update-router-resources-UUID 2026-01-22 15:34:22 +05:30
hhftechnologies
2a1ad7a5ab Update index.mdx 2026-01-22 15:00:17 +05:30
hhftechnologies
ca0731389b router-priority-fix 2026-01-22 14:48:36 +05:30
HHF Technology
b1fea7ba38
Fix documentation badge link in README.md 2026-01-22 14:17:32 +05:30
HHF Technology
8eca5ff03e
Merge pull request #79 from hhftechnology/dev
V4. Migrated to api from override file.
2026-01-22 14:04:06 +05:30
HHF Technology
e15f834145
Merge pull request #78 from hhftechnology/dev-docs
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
Dev docs
2026-01-22 13:47:28 +05:30
hhftechnologies
8203c39cbc Update config_proxy.go 2026-01-22 13:28:39 +05:30
hhftechnologies
5eade6266d updated-docs 2026-01-22 12:47:38 +05:30
HHF Technology
7a483d9007
Merge pull request #77 from hhftechnology/dev-docs
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
Dev docs
2026-01-21 20:20:05 +05:30
HHF Technology
61e621f5b6
Add documentation section to README
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
Added documentation section with a badge for visibility.
2026-01-21 20:19:12 +05:30
HHF Technology
0e102a383e
Revise README with image updates and container info
Updated the README to reflect changes in image tags and added details about the Middleware-Manager container's operation.
2026-01-21 20:07:54 +05:30
hhftechnologies
d194ccd2da remove-IPWhiteList-deprecated 2026-01-21 19:27:23 +05:30
hhftechnologies
6a4a6d9979 update-docs
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
2026-01-21 17:02:16 +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
HHF Technology
e1a32d2680
Merge pull request #76 from hhftechnology/dev-docs
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
Dev docs
2026-01-21 09:14:14 +05:30
hhftechnologies
8d82c3d5f6 Update config_proxy.go
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
2026-01-21 06:28:22 +05:30
hhftechnologies
f88df5c53d Update config_proxy.go 2026-01-21 06:13:17 +05:30
HHF Technology
b59c1ba564
Merge pull request #75 from hhftechnology/dev-docs
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
Dev docs
2026-01-20 18:58:46 +05:30
hhftechnologies
1d07646786 Update alert-dialog.tsx
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
2026-01-20 18:57:42 +05:30
hhftechnologies
ed5b890773 Update pluginStore.ts
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
2026-01-19 14:10:06 +05:30
hhftechnologies
7c68b8826f Update pluginStore.ts 2026-01-19 13:29:50 +05:30
hhftechnologies
3b3d7c9122 Update pluginStore.ts 2026-01-19 12:45:29 +05:30
hhftechnologies
29517dbbd9 plugin-card-ui-bug 2026-01-19 12:27:12 +05:30
HHF Technology
4ff2319af6
Merge pull request #74 from hhftechnology/dev-docs
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
Dev docs
2026-01-18 19:46:35 +05:30
hhftechnologies
880519f087 update-image-placeholder
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
2026-01-18 19:43:32 +05:30
hhftechnologies
eb5d97dd67 Update page.tsx 2026-01-18 18:53:33 +05:30