Commit Graph

28 Commits

Author SHA1 Message Date
Blackoutta b86f12fbaa Add Redis caching to FetchPluginInstallation middleware for performance optimization (#400)
* add caching to fetch plugin installation middleware

* invalidate plugin inst cache after successfully upgrading or uninstalling operations

* optimize: refactored cache invalidation ops from curd layer to service layer

---------

Co-authored-by: yangyi.hu593671 <yangyi.hu593671@seres.cn>
2025-08-27 14:16:52 +08:00
Yeuoly d884cab8ae feat: add plugin reinstallation functionality and admin API support (#285)
* feat: add plugin reinstallation functionality and admin API support

- Implemented ReinstallToAWSFromPkg method to allow reinstallation of plugins on AWS Lambda, updating function URL and name.
- Added clearServerlessRuntimeCache method to manage serverless runtime cache.
- Enhanced LaunchPlugin to support an ignoreIdempotent flag for forced reinstallation.
- Introduced admin API endpoints for plugin reinstallation, secured with an API key validation middleware.
- Updated configuration to include AdminApiEnabled and AdminApiKey settings.

* refactor: update plugin reinstallation endpoint and improve unauthorized response

- Changed the plugin reinstallation endpoint from "/plugins/reinstall" to "/plugin/serverless/reinstall" for better clarity.
- Modified the unauthorized response in the AdminAPIKey middleware to return a more descriptive JSON message.
2025-05-15 15:22:25 +08:00
Yeuoly 15060ee312 refactor: move entities to pkg 2025-01-06 14:52:02 +08:00
Yeuoly 0d51a59e9d fix: connection closed unexpectedly 2024-12-27 21:45:04 +08:00
Yeuoly 1974c683dc fix: avoid buffered data occurd in redirectPluginInvokeByIdentifier 2024-12-14 01:15:30 +08:00
Yeuoly 407fb941ca feat: support for pprof 2024-12-04 14:15:16 +08:00
Yeuoly ef1ffa9f6c refactor: change to use generic errors in controllers 2024-11-22 16:44:44 +08:00
Yeuoly 26fd94ebcd refactor: convert snakecase to camelcase 2024-11-12 21:24:41 +08:00
Yeuoly 670096c977 feat: support detailed error messages 2024-11-06 20:29:28 +08:00
Yeuoly 8c690305f5 fix: missing tenant id while querying plugin installation 2024-11-05 19:12:03 +08:00
Yeuoly b92d497ced refactor: using plugin id to dispatch request instead 2024-09-27 21:48:20 +08:00
Yeuoly 864b104fcc refactor: plugin assets management 2024-09-24 18:04:27 +08:00
Yeuoly 544c8dea33 fix 2024-09-20 15:01:42 +08:00
Yeuoly 140602667c fix: missing file extension 2024-09-20 14:28:46 +08:00
Yeuoly 026c76ba1d refactor: plugin identifier 2024-09-14 17:23:06 +08:00
Yeuoly b23b52de82 duplex installation 2024-09-10 13:58:27 +08:00
Yeuoly b3d619bc03 feat: enable disable endpoints 2024-09-09 12:38:13 +08:00
Yeuoly 63151efc20 refactor 2024-09-09 12:20:39 +08:00
Yeuoly 50b7c6d138 feat: plugin install 2024-09-09 12:07:11 +08:00
Yeuoly 3603a9c5b9 refactor 2024-09-04 14:39:07 +08:00
Yeuoly 24836759f2 feat: invoke app 2024-08-26 21:06:49 +08:00
Yeuoly 32d0160262 feat: aws lambda function invoke lifetime 2024-08-24 00:36:39 +08:00
Yeuoly 052c1632eb feat: add aws transaction handler 2024-08-23 23:57:21 +08:00
Yeuoly 8294a61d4c refactor: session manager 2024-08-23 23:27:43 +08:00
Yeuoly ef091e4fed feat: redirects webhooks 2024-08-05 18:34:50 +08:00
Yeuoly 9dad6260fb feat: webhook 2024-08-05 15:42:30 +08:00
Yeuoly c86d0060c4 feat: redirect requests 2024-08-05 15:21:35 +08:00
Yeuoly bc3218ca8c feat: examples 2024-07-02 22:28:53 +08:00