Commit Graph

78 Commits

Author SHA1 Message Date
GW_MC
a7863b9e87 feat(proxy): add render_config method and UpstreamService mock
- Add render_config to ProxyServiceTrait and implement it

- Add mockall automock to UpstreamService

- Remove unused OverrideRef import
2026-07-05 05:29:19 +00:00
GW_MC
b7891ec200 feat(proxy): add mockall automock to all proxy sub-services 2026-07-05 05:29:16 +00:00
GW_MC
e44a67f5a8 feat(agent): implement AgentService with CRUD and gRPC stream handler
- Add AgentService trait with full CRUD operations

- Implement AgentServiceImpl backed by AgentRepo

- Refactor gRPC AgentServerService with real stream handler

- Add agent types and repository module
2026-07-05 05:29:13 +00:00
GW_MC
6d1df8dcca feat: add shared RepoError module 2026-07-05 05:29:10 +00:00
GW_MC
c7cc006212 chore: add anyhow and tokio-stream dependencies
- anyhow for error handling with backtrace support

- tokio-stream for gRPC stream handling
2026-07-05 05:29:08 +00:00
GW_MC
d976c22683 chore: add .act/ to gitignore and fix dev-agent command
- Add .act/ to .gitignore

- Change dev-agent to run with --release flag
2026-07-05 05:29:05 +00:00
GW_MC
7c233b5f77 feat(proxy): implement log setting, proxy setting, rewrite rule, server block, and SSL certificate services
- Added LogSettingService with CRUD operations for log settings.
- Introduced ProxySettingService for managing proxy settings with CRUD functionality.
- Created RewriteRuleService to handle rewrite rules with full CRUD capabilities.
- Implemented ServerBlockService for managing server blocks, including relationships with access rules and location blocks.
- Added SslCertificateService for managing SSL certificates with create, read, update, and delete operations.
- Updated types.rs to include new service configurations and ensure proper merging of overrides.
- Enhanced existing tests to cover new functionalities and ensure correctness.
2026-06-21 12:14:26 +00:00
GW_MC
2e758c67fc feat(proxy): enhance proxy service with CRUD operations and agent config binding 2026-06-21 11:59:23 +00:00
GW_MC
692b17534c feat(proxy): implement Nginx configuration handling and rendering logic 2026-06-21 11:47:19 +00:00
GW_MC
9c07fce607 feat(proxy): add proxy service module with configuration handling
- Introduced a new `proxy` module in the service layer.
- Created `ProxyServiceTrait` for managing proxy configurations.
- Implemented various configuration types including access rules, cache zones, limit rules, and more.
- Added rendering logic for Nginx configuration components.
- Developed a repository implementation for fetching and merging proxy configurations from the database.
- Enhanced error handling with `ProxyServiceError` for better clarity on configuration issues.
2026-06-21 11:07:13 +00:00
GW_MC
2dbab85c87 feat: add new database entities and migration for proxy configuration
- Introduced `log_setting`, `proxy_config`, `proxy_setting`, `rewrite_rule`, `server_block`, `ssl_certificate`, and `upstream` entities with their respective fields and relationships.
- Updated `mod.rs` and `prelude.rs` to include new entities.
- Created migration script to set up new tables and relationships in the database.
- Altered existing `agents` table to include a foreign key reference to `agent_group`.
2026-06-21 11:06:20 +00:00
be1d2e3fa9 Merge pull request 'feature/nginx-handler' (#6) from feature/nginx-handler into master
Some checks failed
Test / get-ci-image (push) Successful in 6s
Test / lint-frontend (push) Successful in 13s
Test / test-frontend (push) Successful in 23s
Test / frontend-build (push) Successful in 15s
Verify / get-ci-image (push) Successful in 5s
Test / test-crates (push) Failing after 1m27s
Test / lint-crates (push) Failing after 1m25s
Verify / verify-generated-db-entities (push) Successful in 1m53s
Reviewed-on: #6
2026-06-19 19:13:15 +08:00
143a280d26 feat: add dashmap dependency and update once_cell version in Cargo.lock
Some checks failed
Test / get-ci-image (pull_request) Successful in 23s
Test / test-frontend (pull_request) Successful in 26s
Test / lint-frontend (pull_request) Successful in 28s
Verify / get-ci-image (pull_request) Successful in 6s
Test / frontend-build (pull_request) Successful in 16s
Test / lint-crates (pull_request) Failing after 8m27s
Test / test-crates (pull_request) Failing after 8m34s
Verify / verify-generated-db-entities (pull_request) Successful in 9m23s
2026-06-16 11:09:44 +00:00
4376167d74 feat: add experimental support for proto3 optional fields in Nginx handler 2026-06-16 11:09:28 +00:00
24d3f46a5c feat: add persistence for last deployment path in Nginx handler 2026-06-16 11:09:24 +00:00
3c2cda88f1 feat: add command handling support to Nginx message handler 2026-06-16 10:55:13 +00:00
GW_MC
c0d243f661 feat: added config update message handling 2026-06-06 10:46:42 +00:00
GW_MC
f7162f0c17 feat: implement service initialization and shutdown handling for NxMesh Agent 2026-06-01 10:05:49 +00:00
GW_MC
d6a829c529 refactor: enhance handler traits to support dynamic sizing and improve cancellation handling 2026-06-01 10:05:40 +00:00
GW_MC
9991b20b28 feat: implement Nginx command and file system handlers for configuration management 2026-06-01 08:25:04 +00:00
GW_MC
8dbbeb4b24 refactor: streamline master message handling by removing unnecessary Arc and Mutex usage, and reorganizing handler structure 2026-05-31 09:41:48 +00:00
GW_MC
93a36cb101 refactor: simplify client handling by removing Arc and Mutex wrappers from MasterConnectorTrait 2026-05-31 09:41:22 +00:00
GW_MC
f65cae7f33 Merge branch 'master' into feature/nginx-handler 2026-05-31 03:10:55 +00:00
GW_MC
5f439f6231 Merge branch 'refactor' 2026-05-31 03:06:31 +00:00
GW_MC
c52c0b3103 refactor: reorganize settings into separate modules for improved structure and maintainability 2026-05-31 02:56:03 +00:00
GW_MC
153c092abe refactor: update act command to include artifact server path for improved functionality 2026-05-31 02:37:41 +00:00
GW_MC
cb4ad27e89 refactor: enhance asset retrieval logic to support fallback for client subfolder 2026-05-31 02:36:42 +00:00
GW_MC
9f72cd4bbb refactor: update health report to connection test and simplify proto definitions 2026-05-31 02:36:30 +00:00
GW_MC
7173f504ed refactor: settings into modules 2026-05-31 02:31:15 +00:00
GW_MC
3b7916d66c feat: add additional VSCode extensions for improved development experience 2026-05-31 02:09:56 +00:00
GW_MC
94d5e178d2 feat: refactor import_certs command into separate module for improved structure 2026-05-31 02:09:51 +00:00
GW_MC
f428f18f87 feat: implement MasterHandler for handling master messages and add retry logic 2026-05-06 09:23:51 +00:00
GW_MC
4252154420 fix: enhance NginxHandler to return config file paths and improve error handling 2026-04-27 07:15:30 +00:00
GW_MC
984334c232 fix: update NginxSettings to be non-optional and improve validation logic 2026-04-27 07:15:09 +00:00
GW_MC
98e07715fa fix: update ConfigUpdate message to include root_config and improve documentation 2026-04-27 07:14:47 +00:00
GW_MC
7a0111c4c5 fix: update anyhow dependency to include backtrace feature
Some checks failed
Test / get-ci-image (pull_request) Successful in 5s
Test / lint-frontend (pull_request) Successful in 24s
Test / frontend-build (pull_request) Successful in 23s
Verify / get-ci-image (pull_request) Successful in 5s
Test / test-frontend (pull_request) Successful in 37s
Test / lint-crates (pull_request) Successful in 1m46s
Test / test-crates (pull_request) Successful in 1m56s
Verify / verify-generated-db-entities (pull_request) Failing after 2m15s
2026-04-25 07:22:44 +00:00
GW_MC
0575c34fd6 fix: improve config file handling and add tests for NginxHandler
Co-authored-by: Copilot <copilot@github.com>
2026-04-25 07:22:19 +00:00
GW_MC
1daac01583 Merge branch 'master' into feature/nginx-handler
All checks were successful
Test / get-ci-image (pull_request) Successful in 6s
Test / lint-frontend (pull_request) Successful in 24s
Test / test-frontend (pull_request) Successful in 25s
Verify / get-ci-image (pull_request) Successful in 5s
Test / frontend-build (pull_request) Successful in 40s
Test / lint-crates (pull_request) Successful in 4m58s
Test / test-crates (pull_request) Successful in 5m16s
Verify / verify-generated-db-entities (pull_request) Successful in 5m42s
2026-04-25 06:43:58 +00:00
cd28b5009a Merge pull request 'feature/embbed-frontend' (#7) from feature/embbed-frontend into master
All checks were successful
Test / get-ci-image (push) Successful in 6s
Test / lint-frontend (push) Successful in 24s
Test / frontend-build (push) Successful in 23s
Verify / get-ci-image (push) Successful in 4s
Test / test-frontend (push) Successful in 35s
Test / lint-crates (push) Successful in 1m50s
Test / test-crates (push) Successful in 2m1s
Verify / verify-generated-db-entities (push) Successful in 2m21s
Reviewed-on: http://gitea.gwmc.dev/GW_MC/NxMesh/pulls/7
2026-04-25 14:34:55 +08:00
GW_MC
171e505f22 fix: update migration and entity generation commands in CI workflow
All checks were successful
Test / get-ci-image (pull_request) Successful in 5s
Test / lint-frontend (pull_request) Successful in 26s
Test / frontend-build (pull_request) Successful in 24s
Verify / get-ci-image (pull_request) Successful in 6s
Test / test-frontend (pull_request) Successful in 33s
Test / lint-crates (pull_request) Successful in 1m52s
Test / test-crates (pull_request) Successful in 2m3s
Verify / verify-generated-db-entities (pull_request) Successful in 2m25s
2026-04-25 06:30:13 +00:00
GW_MC
dff828addf fix: update frontend build process to create dummy artifacts and comment out artifact handling
Some checks failed
Test / get-ci-image (pull_request) Successful in 6s
Test / lint-frontend (pull_request) Successful in 21s
Verify / get-ci-image (pull_request) Successful in 5s
Test / frontend-build (pull_request) Successful in 26s
Test / test-frontend (pull_request) Successful in 37s
Test / lint-crates (pull_request) Successful in 1m45s
Test / test-crates (pull_request) Successful in 1m57s
Verify / verify-generated-db-entities (pull_request) Failing after 1m45s
Co-authored-by: Copilot <copilot@github.com>
2026-04-25 06:04:55 +00:00
GW_MC
1481e31182 Revert "fix: update frontend build process and add logging for embedded assets"
Some checks failed
Test / get-ci-image (pull_request) Successful in 11s
Test / lint-frontend (pull_request) Failing after 30s
Test / test-frontend (pull_request) Successful in 21s
Verify / get-ci-image (pull_request) Successful in 35s
Test / frontend-build (pull_request) Successful in 51s
Test / test-crates (pull_request) Failing after 4m37s
Test / lint-crates (pull_request) Failing after 40s
Verify / verify-generated-db-entities (pull_request) Successful in 9m14s
This reverts commit 4b80619c97.
2026-04-25 04:26:59 +00:00
GW_MC
4b80619c97 fix: update frontend build process and add logging for embedded assets
Some checks failed
Test / get-ci-image (pull_request) Successful in 14s
Test / test-frontend (pull_request) Successful in 47s
Verify / get-ci-image (pull_request) Successful in 6s
Test / lint-frontend (pull_request) Successful in 1m14s
Verify / verify-generated-db-entities (pull_request) Failing after 15m14s
Test / frontend-build (pull_request) Failing after 19m51s
Test / test-crates (pull_request) Has been skipped
Test / lint-crates (pull_request) Has been skipped
Co-authored-by: Copilot <copilot@github.com>
2026-04-25 03:21:36 +00:00
GW_MC
836617fa54 test: Add asset listing test for embedded frontend assets
Some checks failed
Test / get-ci-image (pull_request) Successful in 6s
Test / test-frontend (pull_request) Successful in 30s
Test / lint-frontend (pull_request) Successful in 32s
Verify / get-ci-image (pull_request) Successful in 5s
Verify / verify-generated-db-entities (pull_request) Successful in 3m12s
Test / frontend-build (pull_request) Successful in 23s
Test / lint-crates (pull_request) Failing after 4m6s
Test / test-crates (pull_request) Failing after 4m14s
Co-authored-by: Copilot <copilot@github.com>
2026-04-25 02:49:47 +00:00
GW_MC
e74ddb96ab fix: embed frontend builds in test
Some checks failed
Test / get-ci-image (pull_request) Successful in 5s
Test / lint-frontend (pull_request) Successful in 24s
Test / frontend-build (pull_request) Successful in 23s
Verify / get-ci-image (pull_request) Successful in 5s
Test / test-frontend (pull_request) Successful in 38s
Test / lint-crates (pull_request) Successful in 2m34s
Test / test-crates (pull_request) Failing after 2m44s
Verify / verify-generated-db-entities (pull_request) Successful in 3m2s
2026-04-25 02:41:16 +00:00
GW_MC
86e9fd42bb test: Add unit tests for frontend routing and file handling
Some checks failed
Test / get-ci-image (pull_request) Successful in 48s
Test / lint-frontend (pull_request) Successful in 1m10s
Test / frontend-build (pull_request) Successful in 25s
Test / test-frontend (pull_request) Successful in 1m13s
Verify / get-ci-image (pull_request) Successful in 5s
Test / lint-crates (pull_request) Successful in 6m10s
Test / test-crates (pull_request) Failing after 6m22s
Verify / verify-generated-db-entities (pull_request) Successful in 7m5s
2026-04-24 12:14:36 +00:00
GW_MC
d9fe053d41 feat: Add new dependencies for axum-test and related packages in Cargo.lock 2026-04-24 12:08:00 +00:00
GW_MC
1eeca606ec feat: Remove debug handler attributes from fallback and file handler functions
All checks were successful
Test / get-ci-image (pull_request) Successful in 7s
Test / lint-frontend (pull_request) Successful in 26s
Test / frontend-build (pull_request) Successful in 23s
Verify / get-ci-image (pull_request) Successful in 4s
Test / test-frontend (pull_request) Successful in 34s
Test / lint-crates (pull_request) Successful in 5m48s
Test / test-crates (pull_request) Successful in 5m59s
Verify / verify-generated-db-entities (pull_request) Successful in 6m28s
2026-04-18 08:37:08 +00:00
GW_MC
6ce8850ddb feat: Update frontend build cache path and add dummy artifact to prevent build failure 2026-04-18 08:22:05 +00:00
GW_MC
a9a08d2ef8 feat: Enhance SSH Agent gRPC server logging for better monitoring 2026-04-18 07:31:45 +00:00