GW_MC
a0b4df745e
fix upstream does not contain a target when init
2025-12-31 18:03:54 +08:00
GW_MC
46801fba99
improve error logging
2025-12-31 18:03:42 +08:00
GW_MC
cb65d4e9f7
fix incorrect Extension
2025-12-31 18:03:19 +08:00
GW_MC
10cc8f9d97
Fix incorrect path
2025-12-31 18:02:45 +08:00
GW_MC
d184261027
feat: added openapi doc
Test / lint-frontend (pull_request) Successful in 45s
Test / test-frontend (pull_request) Successful in 44s
Test / frontend-build (pull_request) Successful in 47s
Verify / verify-generated-agent-code (pull_request) Successful in 1m15s
Verify / verify-openapi-spec (pull_request) Successful in 2m29s
Verify / verify-generated-database-code (pull_request) Successful in 2m35s
Verify / verify-frontend-api-client (pull_request) Successful in 19s
Test / lint-crates (pull_request) Successful in 59s
Test / test-crates (pull_request) Successful in 2m44s
2025-12-31 16:44:18 +08:00
GW_MC
6a30a03e59
feat: enhance socket path validation for reqwest client configuration
2025-12-31 16:11:03 +08:00
GW_MC
9c3f775a67
refactor: remove unused Filters struct and clean up imports in create_upstream tests
2025-12-31 16:05:28 +08:00
GW_MC
331b4e1e96
feat: implement transaction handling for upstream and target operations
...
- Added transaction support in `add_upstream_target`, `remove_upstream`, `remove_upstream_target`, `update_upstream`, and `update_upstream_target` functions to ensure atomicity of operations.
- Updated the `NginxService` to include methods for validating and applying configurations using the agent service.
- Enhanced error handling in agent service interactions, returning appropriate internal server errors when agent communication fails.
- Introduced mock agent service for testing, allowing for simulation of agent interactions without actual network calls.
- Refactored tests to cover scenarios where agent operations fail, ensuring that internal server errors are returned as expected.
2025-12-31 15:57:29 +08:00
GW_MC
4f85d88380
feat: implement conversion from DbErr to ApiError
2025-12-31 14:51:22 +08:00
GW_MC
d81e5fe48d
refactor: clean up test module imports in health info endpoint
2025-12-31 14:48:51 +08:00
GW_MC
b2a322ed79
chore: added trait for upstream service
2025-12-30 18:22:18 +08:00
GW_MC
f05544267c
feat: add remove upstream and remove upstream target handlers
2025-12-30 18:02:46 +08:00
GW_MC
f4db47daf2
feat: implement update handlers for upstream and upstream target management
2025-12-30 15:09:49 +08:00
GW_MC
1b251fd89f
feat: add add_upstream_target handler and response struct for upstream target management
2025-12-29 21:34:40 +08:00
GW_MC
dd79cbe0bb
feat: add create_upstream handler for upstream creation
2025-12-29 20:12:01 +08:00
GW_MC
37f4163870
added mock for require_auth middleware
2025-12-29 19:30:31 +08:00
GW_MC
481abd7f26
fix: AuthenticatedRequestInfo support any state
2025-12-29 18:58:00 +08:00
GW_MC
7a557d6e00
feat: update UpstreamCreateInfo conversion to include upstream targets
2025-12-29 18:45:03 +08:00
GW_MC
0cbc223b4e
feat: implement AuthenticatedRequestInfo for user authentication handling
2025-12-29 18:44:52 +08:00
GW_MC
fdfd1c98e0
feat: introduce ApiError for improved error handling in upstream routes
2025-12-29 18:03:09 +08:00
GW_MC
abeea4fad7
refactor: upstream info response structures and module
2025-12-29 18:01:57 +08:00
GW_MC
fea205cba8
chore: delegate path prefix to router
2025-12-29 17:52:29 +08:00
GW_MC
3cc6b40e61
Fix: missing upstream in From
2025-12-29 17:48:44 +08:00
GW_MC
41023939db
feat: add tests for upstream and upstream target handlers
2025-12-29 17:44:41 +08:00
GW_MC
6eb0d9060b
fix: path not starting with /
2025-12-29 17:24:50 +08:00
GW_MC
7d83838da3
feat: add get_upstream_target endpoint and update router for upstream targets
2025-12-29 16:38:43 +08:00
GW_MC
921165476c
feat: enhance UpstreamTargetInfo with upstream details and refactor imports
2025-12-29 16:38:33 +08:00
GW_MC
a0621e2407
test: added test cases for upstream service
2025-12-29 16:37:57 +08:00
GW_MC
f8b13be650
feat: add Nginx upstream read management routes and handlers
2025-12-29 15:27:03 +08:00
GW_MC
238c3db92b
feat: implement Nginx service with upstream management and configuration generation
2025-12-29 15:21:02 +08:00
GW_MC
814f76291c
fix: update test cases to use mock
2025-12-29 15:19:06 +08:00
GW_MC
7ac3368715
feat: added intoResponse
2025-12-29 15:18:40 +08:00
GW_MC
35fadb46f6
feat: add pagination helper and integrate serde_urlencoded for query extraction
2025-12-29 12:16:09 +08:00
GW_MC
6f5596dc69
Enforce deny unwrap_used
Test / test-frontend (pull_request) Successful in 26s
Test / lint-frontend (pull_request) Successful in 28s
Test / frontend-build (pull_request) Successful in 32s
Verify / verify-generated-database-code (pull_request) Successful in 1m7s
Verify / verify-generated-agent-code (pull_request) Successful in 1m10s
Verify / verify-openapi-spec (pull_request) Successful in 1m9s
Verify / verify-frontend-api-client (pull_request) Successful in 7s
Test / test-crates (pull_request) Successful in 54s
Test / lint-crates (pull_request) Successful in 1m10s
2025-12-28 19:07:17 +08:00
GW_MC
96e7f36731
feat: integrate AgentService into app service and enhance configuration handling
Test / test-frontend (pull_request) Successful in 25s
Test / lint-frontend (pull_request) Successful in 28s
Test / frontend-build (pull_request) Successful in 32s
Verify / verify-generated-database-code (pull_request) Successful in 1m7s
Verify / verify-generated-agent-code (pull_request) Successful in 1m11s
Verify / verify-openapi-spec (pull_request) Successful in 1m13s
Verify / verify-frontend-api-client (pull_request) Successful in 8s
Test / test-crates (pull_request) Successful in 55s
Test / lint-crates (pull_request) Successful in 1m9s
2025-12-28 18:35:53 +08:00
GW_MC
410328a2af
refactor app service
2025-12-28 18:28:28 +08:00
GW_MC
9f122566d0
feat: add agent settings configuration and update agent client service
2025-12-28 18:08:55 +08:00
GW_MC
c65dc3af47
feat: Basic agent-client service
Test / test-frontend (pull_request) Successful in 27s
Test / frontend-build (pull_request) Successful in 33s
Verify / verify-openapi-spec (pull_request) Successful in 7s
Verify / verify-generated-agent-code (pull_request) Successful in 1m7s
Verify / verify-generated-database-code (pull_request) Successful in 2m14s
Verify / verify-frontend-api-client (pull_request) Successful in 6s
Test / lint-crates (pull_request) Failing after 1m28s
Test / test-crates (pull_request) Successful in 2m40s
Test / lint-frontend (pull_request) Successful in 29s
2025-12-28 17:53:27 +08:00
GW_MC
c7a090f78a
fix: frontend deps not installed
2025-12-28 16:23:10 +08:00
GW_MC
bb55e37b49
feat: added openapi generation for agent
2025-12-28 15:15:42 +08:00
GW_MC
0eafd6a264
feat: upgrade actions/cache to v4 and clean up imports in main.rs
Test / test-frontend (pull_request) Successful in 23s
Test / lint-frontend (pull_request) Successful in 26s
Verify / verify-openapi-spec (pull_request) Successful in 4s
Test / frontend-build (pull_request) Successful in 29s
Test / test (pull_request) Successful in 55s
Verify / verify-generated-code (pull_request) Successful in 1m10s
Verify / verify-frontend-api-client (pull_request) Successful in 7s
Test / lint (pull_request) Successful in 1m10s
2025-12-22 18:26:19 +08:00
GW_MC
c14af00c08
feat: update dependencies and refactor command line argument handling for yanpm-agent
Test / test-frontend (pull_request) Successful in 23s
Test / lint-frontend (pull_request) Successful in 27s
Verify / verify-openapi-spec (pull_request) Successful in 4s
Test / frontend-build (pull_request) Successful in 30s
Verify / verify-frontend-api-client (pull_request) Has been cancelled
Verify / verify-generated-code (pull_request) Has been cancelled
Test / test (pull_request) Has been cancelled
Test / lint (pull_request) Has been cancelled
2025-12-22 18:16:26 +08:00
GW_MC
dce8203322
feat: add comprehensive documentation for yanpm-agent, including API reference, configuration, deployment, usage examples, and troubleshooting
2025-12-22 17:56:18 +08:00
GW_MC
5cffb0a519
feat: add nginx reload and validation wrappers with sudo permissions
2025-12-22 17:18:36 +08:00
GW_MC
6e85bda13f
Refactor container definitions
2025-12-22 14:32:57 +08:00
GW_MC
7db23b01df
Add testcontainer for agent image with nginx
2025-12-22 12:54:14 +08:00
GW_MC
61ecd91219
feat: add nix dependency and enhance socket permissions handling
2025-12-21 19:32:48 +08:00
GW_MC
b823fe6281
feat: Fix permission and env errors, add loggings, socket perm args
2025-12-21 18:52:26 +08:00
GW_MC
7781878c2d
feat: implement Dockerfile and service scripts for yanpm-agent
2025-12-21 17:51:43 +08:00
GW_MC
4ca59d2bb6
feat: add agent module with Nginx service commands and routes
...
- Introduced a new agent module with commands for managing Nginx configurations.
- Implemented `NginxService` for handling reload, validation, and configuration writing.
- Added routes for status, validation, and configuration writing using Axum.
- Created necessary command files: `reload.rs`, `run.rs`, `validate.rs`, `write_config.rs`.
- Updated `Cargo.toml` and `Cargo.lock` to include new dependencies.
- Added `.gitignore` for the agent module.
- Updated `justfile` to include OpenAPI generation for the agent.
2025-12-21 15:32:42 +08:00