Commit Graph

25 Commits

Author SHA1 Message Date
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
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
GW_MC
c52c0b3103 refactor: reorganize settings into separate modules for improved structure and maintainability 2026-05-31 02:56:03 +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
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
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
a9a08d2ef8 feat: Enhance SSH Agent gRPC server logging for better monitoring 2026-04-18 07:31:45 +00:00
GW_MC
bbde3c1b60 feat: Refactor agent server initialization to support parallel api server 2026-04-18 07:31:29 +00:00
GW_MC
e2d364722b feat: Add frontend routing and asset handling with Axum 2026-04-18 07:30:37 +00:00
GW_MC
da0ab29b2a feat: Update dependencies and add frontend distribution path 2026-04-18 07:26:37 +00:00
GW_MC
109d693d59 feat: Add comprehensive unit tests for CLI and CertificateService, covering command parsing and certificate generation 2026-03-21 03:42:47 +00:00
GW_MC
d7cbb2a2ce feat: Remove unused SeaORM entity files for certificates, organizations, setup tokens, upstreams, users, virtual hosts, and workspaces 2026-03-21 03:17:43 +00:00
GW_MC
f5eb25993b feat: Implement SSH Agent Connector and gRPC server
- Added `AgentConnectorTrait` and `AgentConnector` for managing agent connections.
- Introduced `SshAgentConnector` to handle SSH-related functionalities and start a gRPC server.
- Created database entities for `agents`, `certificates`, `organizations`, `public_key_revocations`, `setup_tokens`, `upstreams`, `users`, `virtual_hosts`, and `workspaces` using SeaORM.
- Developed `CertificateService` for managing certificate generation and retrieval.
- Implemented the main server logic to initialize the database connection and start the agent server.
- Configured development settings in `development.toml` for server and database connections.
2026-03-21 03:09:39 +00:00
GW_MC
9c55a11712 init project structure 2026-03-06 13:28:14 +00:00