-
Notifications
You must be signed in to change notification settings - Fork 7
feat: Switch to higress-hosted image repo and update README.md #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,18 @@ | ||
| # plugin-server | ||
| http server for higress wasmplugin | ||
| # Higress Plugin Server | ||
| ======= | ||
|
|
||
| HTTP server for Higress Wasm plugins | ||
|
|
||
| ## 构建插件服务器镜像并推送 | ||
|
|
||
| ### 构建本地架构镜像 | ||
|
|
||
| ```bash | ||
| docker build -t higress-plugin-server:1.0.0 -f Dockerfile . | ||
| ``` | ||
|
|
||
| ### 构建多架构镜像并推送至仓库 | ||
|
|
||
| ```bash | ||
| docker buildx build \ | ||
| --platform linux/amd64,linux/arm64 \ | ||
|
|
@@ -9,10 +21,42 @@ docker buildx build \ | |
| --push \ | ||
| . | ||
| ``` | ||
| ## 在 higress-console 中配置插件下载地址 | ||
|
|
||
| ## 本地启动插件服务器 | ||
|
|
||
| ```bash | ||
| docker run -d --name higress-plugin-server --rm -p 8080:8080 higress-plugin-server:1.0.0 | ||
| ``` | ||
|
|
||
| ## 配置插件地址 | ||
|
|
||
| ### 在 Higress Console 中配置插件下载地址 | ||
|
|
||
| 要满足这一需求,只需要为 Higress Console 容器添加 HIGRESS_ADMIN_WASM_PLUGIN_CUSTOM_IMAGE_URL_PATTERN 环境变量,值为自定义镜像地址的格式模版。模版可以按需使用 ${name} 和 ${version} 作为插件名称和镜像版本的占位符。 | ||
| 在进行了以下配置后, | ||
|
|
||
| 示例: | ||
|
|
||
| ```bash | ||
| HIGRESS_ADMIN_WASM_PLUGIN_CUSTOM_IMAGE_URL_PATTERN=http://higress-plugin-server.higress-system.svc/plugins/${name}/${version}/plugin.wasm | ||
| ``` | ||
|
|
||
| > `higress-plugin-server.higress-system.svc` 替换为 Higress Gateway 可以用来访问插件服务器的地址。 | ||
|
|
||
| Higress Console 针对 key-rate-limit 插件生成的镜像地址将为:http://higress-plugin-server.higress-system.svc/plugins/key-rate-limit/1.0.0/plugin.wasm | ||
|
|
||
| ### 修改对接 Nacos 3.x 所生成的 MCP Server 插件地址配置 | ||
|
|
||
| 要满足这一需求,只需要为 Higress Controller 容器添加 MCP_SERVER_WASM_IMAGE_URL 环境变量,值为根据自定义镜像地址格式模版生成的 mcp-server 插件地址。 | ||
|
|
||
| 示例: | ||
|
|
||
| ```bash | ||
| MCP_SERVER_WASM_IMAGE_URL=http://higress-plugin-server.higress-system.svc/plugins/mcp-server/1.0.0/plugin.wasm | ||
| ``` | ||
|
|
||
| > `higress-plugin-server.higress-system.svc` 替换为 Higress Gateway 可以用来访问插件服务器的地址。 | ||
|
|
||
| ## 参考文档 | ||
|
|
||
| - 如何修改内置插件镜像地址:https://higress.cn/docs/latest/ops/how-tos/builtin-plugin-url/ | ||
| - 如何使用 HTTP/HTTPS 协议加载 Wasm 插件:https://higress.cn/docs/latest/ops/how-tos/load-wasm-with-http/ | ||
|
Comment on lines
+38
to
+62
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 示例配置中使用HTTP协议存在安全风险
📋 问题详情在配置Wasm插件地址时,示例使用了HTTP协议,这可能导致中间人攻击和数据泄露。建议在生产环境中使用HTTPS协议确保传输安全。 💡 解决方案将HTTP协议改为HTTPS: -http://higress-plugin-server.higress-system.svc/plugins/${name}/${version}/plugin.wasm
+https://higress-plugin-server.higress-system.svc/plugins/${name}/${version}/plugin.wasm
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
文档中存在重复的地址替换说明
📋 问题详情
在Higress Console和MCP Server配置章节都出现了相同的地址替换说明,存在重复内容。建议将重复的说明合并到统一位置,提升文档可读性。
💡 解决方案
合并重复说明:
有用意见👍 | 无用意见👎 | 错误意见❌