Commit Graph

14 Commits

Author SHA1 Message Date
GW_MC
2c20d08127 fmt: format 2026-07-18 04:54:29 +00:00
GW_MC
6f560c981b feat(api): add API routes with full state wiring and integration test fixtures
- Add /api routes for agents and proxy resources

- Wire all services into ApiState in service/mod.rs

- Update route tests with all mock services
2026-07-05 05:29:22 +00:00
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
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
9f72cd4bbb refactor: update health report to connection test and simplify proto definitions 2026-05-31 02:36:30 +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
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
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