Skip to content
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

fix: change the domain #310

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
426 changes: 213 additions & 213 deletions sitemap.xml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/components/home/OverViewImage/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@ export const hoverHigressData = {
apiLink: "https://git-proxy-test-git-proxy-ieeqhwptvv.cn-hongkong.fcapp.run/api/alibaba/higress",
},
官网: {
link: "https://higress.io/",
link: "https://higress.cn/",
},
最新版本: {
link: "https://github.com/alibaba/higress/releases/tag/v0.5.0",
},
快速入门: {
link: "https://higress.io/zh-cn/docs/overview/what-is-higress.html",
link: "https://higress.cn/docs/latest/overview/what-is-higress/",
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/home/SecurityCapability.astro
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const t = useTranslations(Astro);
size="large"
type="normal"
class="security-btn rounded-3xl text-neutral"
href="https://higress.io/zh-cn/docs/plugins/security/waf"
href="https://higress.cn/docs/latest/plugins/security/waf/"
iconClass="text-neutral"
data-aos="zoom-in"
data-aos-duration="1500"
Expand Down
2 changes: 1 addition & 1 deletion src/components/home/Standards.astro
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const t = useTranslations(Astro);
size="large"
type="normal"
class="standards-btn rounded-3xl text-neutral"
href="https://higress.io/zh-cn/docs/user/annotation"
href="https://higress.cn/docs/latest/user/annotation"
iconClass="text-neutral"
data-aos="zoom-in"
data-aos-duration="1500"
Expand Down
5 changes: 4 additions & 1 deletion src/components/starlight/Head.astro
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const head = createHead(headDefaults, config.head, data.head);
"//g.alicdn.com/aes/??tracker/3.3.4/index.js,tracker-plugin-pv/3.0.5/index.js,tracker-plugin-event/3.0.0/index.js,tracker-plugin-autolog/3.0.3/index.js,tracker-plugin-survey/3.0.3/index.js,tracker-plugin-jserror/3.0.3/index.js,tracker-plugin-resourceError/3.0.3/index.js";
t.onload = function () {
// TODO: 设置aem sdk环境
if (window.location.hostname !== "higress.io") {
if (window.location.hostname !== "higress.io" && window.location.hostname !== "higress.cn") {
return;
}
window.AES_CONFIG = window.AES_CONFIG || {
Expand Down Expand Up @@ -197,6 +197,9 @@ const head = createHead(headDefaults, config.head, data.head);
<script>
var _hmt = _hmt || [];
(function () {
if (window.location.hostname !== "higress.io" && window.location.hostname !== "higress.cn") {
return;
}
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?4debd66ec73a32e236b30b46d219e2e3";
var s = document.getElementsByTagName("script")[0];
Expand Down
2 changes: 1 addition & 1 deletion src/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
site:
name: Higress
site: 'https://higress.io/'
site: 'https://higress.cn/'
base: '/'
trailingSlash: 'always'
websiteGithubUrl: 'https://github.com/higress-group/higress-group.github.io/blob/develop-astro-higress'
Expand Down
6 changes: 3 additions & 3 deletions src/content/blog/30-line-wasm.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ category: "case"
在11月15号的直播 《Higress 开源背后的发展历程和上手 Demo 演示》中,为大家演示了 Higress 的 Wasm 插件如何面向 Ingress 资源进行配置生效,本文对当天的 Demo 进行一个回顾,并说明背后的原理机制。
<!--truncate-->
本文中 Demo 运行的前提,需要在 K8s 集群中安装了 Higress,并生效了下面这份 quickstart 配置:
[https://higress.io/samples/quickstart.yaml](https://higress.io/samples/quickstart.yaml)
[https://higress.io/samples/quickstart.yaml](https://higress.cn/samples/quickstart.yaml)
这个 Demo 要实现的功能是一个 Mock 应答的功能,需要实现根据配置的内容,返回 HTTP 应答。
本文会按以下方式进行介绍:

Expand Down Expand Up @@ -75,7 +75,7 @@ func onHttpRequestHeaders(ctx HttpContext, config MyConfig, log Log) types.Actio

这个 30 行代码实现的插件功能比较简单,这里有一些功能相对复杂的例子:[https://github.com/alibaba/higress/tree/main/plugins/wasm-go/extensions](https://github.com/alibaba/higress/tree/main/plugins/wasm-go/extensions)
这里有插件 sdk 的详细使用文档:
[https://higress.io/zh-cn/docs/user/wasm-go.html](https://higress.io/zh-cn/docs/user/wasm-go.html)
[https://higress.cn/docs/latest/user/wasm-go/](https://higress.cn/docs/latest/user/wasm-go/)
这个插件 sdk 是基于 Tetrate 社区的 proxy-wasm-go-sdk 实现的,如果关注更底层的细节,可以查看:
[https://github.com/tetratelabs/proxy-wasm-go-sdk](https://github.com/tetratelabs/proxy-wasm-go-sdk)
[https://github.com/alibaba/higress/blob/main/plugins/wasm-go/pkg/wrapper](https://github.com/alibaba/higress/blob/main/plugins/wasm-go/pkg/wrapper/plugin_wrapper.go)
Expand Down Expand Up @@ -240,5 +240,5 @@ Envoy 目前支持多种 Wasm 的运行时,例如 V8,WAMR,wasmtime 等等
特别感谢 Tetrate 社区实现的 proxy-wasm-go-sdk,Higress 在这个基础上封装了 wasm-go sdk,降低了开发插件的上手门槛。
Higress 对 Istio/Envoy 的 Wasm 能力做了一些 Bugfix 的工作,目前已经都合并进了上游社区。后续的一些 Feature 能力,也会持续反哺上游社区。
同时欢迎大家一起为 Higress 的插件以及其他社区生态添砖加瓦,为 Higress 贡献请参考文档:
[https://higress.io/zh-cn/docs/developers/guide_dev.html](https://higress.io/zh-cn/docs/developers/guide_dev.html)
[https://higress.cn/docs/latest/developers/guide_dev/](https://higress.cn/docs/latest/developers/guide_dev/)

2 changes: 1 addition & 1 deletion src/content/blog/DeployOnWindows.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,4 @@ curl http://localhost/get?foo=bar -H 'host: foo.bar.com'

![E.png](/img/blog/windows/pic/E.png)

更多详情与部署方案可参考 [quick start](https://higress.io/zh-cn/docs/user/quickstart)
更多详情与部署方案可参考 [quick start](https://higress.cn/docs/latest/user/quickstart/)
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,6 @@ var _ Transformer = (*responseTransformer)(nil)
目前 handler 中的转换顺序是被硬编码的(remove -> rename -> replace -> add -> append -> map -> dedupe),我们对此有优化的打算,也欢迎感兴趣的同学参与进来 ~
<a name="BqD0N"></a>
## 六、总结
本文带大家了解了 Higress Transformer 插件,并与 Spring Cloud Gateway 进行了性能比较,在文章的最后还说明了该插件的核心代码逻辑,希望能够为大家从 Spring Cloud Gateway 迁移至 Higress 提供帮助!<br />![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/299576/1723429808530-4e970e54-d65a-47d2-8004-4722a56435d0.png#clientId=uf034894f-3def-4&from=paste&id=u5b3875f2&originHeight=691&originWidth=1080&originalType=url&ratio=1.7999999523162842&rotation=0&showTitle=false&status=done&style=none&taskId=uf5abe500-540c-4166-9401-b7baf324385&title=)<br />如果您觉得 Higress 对您有帮助,欢迎前往 Github: Higress**[11]**为我们 star⭐️ 一下!期待与您在 Higress 社区相遇 ~<br />**相关链接:**<br />**[1] Spring Cloud Gateway: **https://cloud.spring.io/spring-cloud-gateway/reference/html/<br />**[2] SCG GatewayFilter Factories: **https://cloud.spring.io/spring-cloud-gateway/reference/html/#gatewayfilter-factories<br />**[3] Higress Transformer 插件:**https://github.com/alibaba/higress/tree/main/plugins/wasm-go/extensions/transformer<br />**[4] Higress 官方文档:** https://higress.io/zh-cn/<br />**[5] Higress Wasm SDK:** https://github.com/alibaba/higress/tree/main/plugins<br />**[6] Higress 快速开始:**https://higress.io/zh-cn/docs/user/quickstart<br />**[7] httpbin: **https://httpbin.org/<br />**[8] 开发 Higress Wasm 插件:**https://higress.io/zh-cn/docs/user/wasm-go<br />**[9] GJSON:** https://github.com/tidwall/gjson<br />**[10] SJSON:** https://github.com/tidwall/sjson<br />**[11] Higress 代码仓库:**https://github.com/alibaba/higress<br />**[12] Transformer Demo:**https://github.com/higress-group/higress-demo/tree/main/wasm-demo/wasm-demo-go/wasm-plugin-transformer<br />**[13] 性能对比配置:**https://gist.github.com/WeixinX/c24f4ded37832dd7e753b2d27470f0fc
本文带大家了解了 Higress Transformer 插件,并与 Spring Cloud Gateway 进行了性能比较,在文章的最后还说明了该插件的核心代码逻辑,希望能够为大家从 Spring Cloud Gateway 迁移至 Higress 提供帮助!<br />![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/299576/1723429808530-4e970e54-d65a-47d2-8004-4722a56435d0.png#clientId=uf034894f-3def-4&from=paste&id=u5b3875f2&originHeight=691&originWidth=1080&originalType=url&ratio=1.7999999523162842&rotation=0&showTitle=false&status=done&style=none&taskId=uf5abe500-540c-4166-9401-b7baf324385&title=)<br />如果您觉得 Higress 对您有帮助,欢迎前往 Github: Higress**[11]**为我们 star⭐️ 一下!期待与您在 Higress 社区相遇 ~<br />**相关链接:**<br />**[1] Spring Cloud Gateway: **https://cloud.spring.io/spring-cloud-gateway/reference/html/<br />**[2] SCG GatewayFilter Factories: **https://cloud.spring.io/spring-cloud-gateway/reference/html/#gatewayfilter-factories<br />**[3] Higress Transformer 插件:**https://github.com/alibaba/higress/tree/main/plugins/wasm-go/extensions/transformer<br />**[4] Higress 官方文档:** https://higress.cn/<br />**[5] Higress Wasm SDK:** https://github.com/alibaba/higress/tree/main/plugins<br />**[6] Higress 快速开始:**https://higress.cn/docs/latest/user/quickstart/<br />**[7] httpbin: **https://httpbin.org/<br />**[8] 开发 Higress Wasm 插件:**https://higress.cn/docs/latest/user/wasm-go/<br />**[9] GJSON:** https://github.com/tidwall/gjson<br />**[10] SJSON:** https://github.com/tidwall/sjson<br />**[11] Higress 代码仓库:**https://github.com/alibaba/higress<br />**[12] Transformer Demo:**https://github.com/higress-group/higress-demo/tree/main/wasm-demo/wasm-demo-go/wasm-plugin-transformer<br />**[13] 性能对比配置:**https://gist.github.com/WeixinX/c24f4ded37832dd7e753b2d27470f0fc


4 changes: 2 additions & 2 deletions src/content/blog/Higress-gvr7dx_awbbpb_fi4t7317cvughlzh.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func onHttpRequestHeaders(ctx HttpContext, config MyConfig, log Log) types.Actio
- config:提供 parseConfig 解析好的自定义配置
- log:提供日志输出接口

这个 30 行代码实现的插件功能比较简单,这里有一些功能相对复杂的例子:<br />https://github.com/alibaba/higress/tree/main/plugins/wasm-go/extensions<br />这里有插件 sdk 的详细使用文档:<br />https://higress.io/zh-cn/docs/user/wasm-go.html<br />这个插件 sdk 是基于 Tetrate 社区的 proxy-wasm-go-sdk 实现的,如果关注更底层的细节,可以查看:<br />https://github.com/tetratelabs/proxy-wasm-go-sdk<br />https://github.com/alibaba/higress/blob/main/plugins/wasm-go/pkg/wrapper<br />可以看到,Higress 的 wasm-go sdk 是通过 Go 1.18 引入的泛型特性封装了插件上下文处理细节,从而降低插件开发所需代码量,开发者只用关心配置解析和请求应答处理的逻辑。
这个 30 行代码实现的插件功能比较简单,这里有一些功能相对复杂的例子:<br />https://github.com/alibaba/higress/tree/main/plugins/wasm-go/extensions<br />这里有插件 sdk 的详细使用文档:<br />https://higress.cn/docs/latest/user/wasm-go/<br />这个插件 sdk 是基于 Tetrate 社区的 proxy-wasm-go-sdk 实现的,如果关注更底层的细节,可以查看:<br />https://github.com/tetratelabs/proxy-wasm-go-sdk<br />https://github.com/alibaba/higress/blob/main/plugins/wasm-go/pkg/wrapper<br />可以看到,Higress 的 wasm-go sdk 是通过 Go 1.18 引入的泛型特性封装了插件上下文处理细节,从而降低插件开发所需代码量,开发者只用关心配置解析和请求应答处理的逻辑。
<a name="q0pYf"></a>
## 生效插件
编写完成代码后,一共有三个步骤,实现插件逻辑的生效:
Expand Down Expand Up @@ -183,5 +183,5 @@ https://github.com/kubernetes/ingress-nginx/blob/main/rootfs/etc/nginx/lua/plugi
Envoy 目前支持多种 Wasm 的运行时,例如 V8,WAMR,wasmtime 等等,这些运行时均提供了安全沙箱能力,即 Wasm 插件中出现了访问空指针、异常未捕获等逻辑,也不会令 Envoy 宿主进程 Crash。并且可以通过配置,在插件逻辑出现异常后进行 Fail Open 处理,跳过插件的执行逻辑,将对业务的影响降至最低。
<a name="Jy8LI"></a>
## 开源社区
特别感谢 Istio/Envoy 社区的前置工作,让 Higress 可以实现对 Ingress 资源启用 WasmPlugin ,增强了 Ingress Controller 的自定义扩展能力。<br />特别感谢 Tetrate 社区实现的 proxy-wasm-go-sdk,Higress 在这个基础上封装了 wasm-go sdk,降低了开发插件的上手门槛。<br />Higress 对 Istio/Envoy 的 Wasm 能力做了一些 Bugfix 的工作,目前已经都合并进了上游社区。后续的一些 Feature 能力,也会持续反哺上游社区。<br />同时欢迎大家一起为 Higress 的插件以及其他社区生态添砖加瓦,为 Higress 贡献请参考文档:<br />https://higress.io/zh-cn/docs/developers/guide_dev.html<br />如有产品疑问,可以扫码立即加入群聊:<br />Higress社区交流3群<br />![](https://intranetproxy.alipay.com/skylark/lark/0/2024/webp/299576/1723449123354-874e2ef4-789a-426e-8d3d-b2a12525f08b.webp#clientId=ubaf1ae1d-09cd-4&from=paste&id=ub225813a&originHeight=512&originWidth=522&originalType=url&ratio=1.7999999523162842&rotation=0&showTitle=false&status=done&style=none&taskId=u1f7c8c03-9174-4af6-b290-f870d42c6e1&title=)
特别感谢 Istio/Envoy 社区的前置工作,让 Higress 可以实现对 Ingress 资源启用 WasmPlugin ,增强了 Ingress Controller 的自定义扩展能力。<br />特别感谢 Tetrate 社区实现的 proxy-wasm-go-sdk,Higress 在这个基础上封装了 wasm-go sdk,降低了开发插件的上手门槛。<br />Higress 对 Istio/Envoy 的 Wasm 能力做了一些 Bugfix 的工作,目前已经都合并进了上游社区。后续的一些 Feature 能力,也会持续反哺上游社区。<br />同时欢迎大家一起为 Higress 的插件以及其他社区生态添砖加瓦,为 Higress 贡献请参考文档:<br />https://higress.cn/docs/latest/developers/guide_dev/<br />如有产品疑问,可以扫码立即加入群聊:<br />Higress社区交流3群<br />![](https://intranetproxy.alipay.com/skylark/lark/0/2024/webp/299576/1723449123354-874e2ef4-789a-426e-8d3d-b2a12525f08b.webp#clientId=ubaf1ae1d-09cd-4&from=paste&id=ub225813a&originHeight=512&originWidth=522&originalType=url&ratio=1.7999999523162842&rotation=0&showTitle=false&status=done&style=none&taskId=u1f7c8c03-9174-4af6-b290-f870d42c6e1&title=)

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ authors: "CH3CHO"
## Higress 无缝接入 OKG
> 前置步骤:
> 1. 安装[OpenKruiseGame](https://openkruise.io/zh/kruisegame/installation/)。
> 2. 安装[Higress](https://higress.io/zh-cn/docs/user/quickstart)。
> 2. 安装[Higress](https://higress.cn/docs/latest/user/quickstart/)。

OKG提供诸多游戏服热更新和游戏服伸缩的优秀特性,便于游戏运维人员管理游戏服的全生命周期。游戏不同于无状态类型的服务,玩家战斗的网络流量是不允许被负载均衡的,因此每一个游戏服需要独立的访问地址。使用原生工作负载(如Deployment或StatefulSet)时,运维工程师需要为众多游戏服一一配置接入层网络,这无疑阻碍了开服效率,同时手动配置也无形中增加了故障的概率。OKG提供的GameServerSet工作负载可以自动化地管理游戏服的接入网络,大幅度降低运维工程师的负担。对于TCP/UDP网络游戏,OKG提供了诸如HostPort、SLB、NATGW等网络模型;而对于H5/WebSocket类型的网络游戏,OKG也相应提供了Ingress网络模型,如Higress、Nginx、ALB等。![image.png](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/22499/1706061269330-94d61fb0-cf64-4ee4-a68a-0647be4416ee.png#clientId=uf3687708-f69f-4&from=paste&height=1220&id=uc17cbd3e&originHeight=1220&originWidth=2648&originalType=binary&ratio=1&rotation=0&showTitle=false&size=182535&status=done&style=none&taskId=ubb8efab9-052d-459e-8f79-96831bd8c0d&title=&width=2648)<br /> 本文采用了一款开源游戏[Posio](https://github.com/abrenaut/posio/issues)来构建demo游戏服。下述配置中,`IngressClassName="higress"`指定了Higress作为游戏服的网络层,Higress通过下面配置可以无缝接入Posio游戏服,并且可以基于Annotation实现Higress定义的高阶流量治理等功能。示例Yaml如下所示,GameServerSet生成的游戏服对应的访问域名与游戏服ID相关。在此例中,游戏服0的访问域名为game0.postio.example.com,游戏服1的访问域名为game1.postio.example.com.客户端以此来访问不同的游戏服。
```yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ authors: "阿里云高级工程师"
# **已经使用了哪些Higress能力**
<a name="7ee1b4f7"></a>
## **1、开发自定义Wasm插件对Open API调用进行认证鉴权**
Higress开源版本已经提供了如hmac-auth、jwt-auth、basic-auth等认证鉴权插件,但这些插件并不能完全满足我们的需要,如:<br />· 访问凭证只能写在插件的yaml中,不能动态调用其他服务或存储进行校验。<br />· 访问凭证校验通过后,需要根据调用的密钥所归属的企业租户,在header中设置访问租户信息,只允许访问属于该租户的数据。<br />所以我们参考[官方文档](https://higress.io/zh-cn/docs/user/wasm-go)使用GO语言开发自己的认证鉴权、设置Header插件,流程如下图:<br />![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/299576/1723111352546-e70cebaf-ccff-4ee2-af07-4876a4b79c0f.png#clientId=u755c0a2b-3f7a-4&from=paste&id=uaf3f5029&originHeight=509&originWidth=1000&originalType=url&ratio=1.7999999523162842&rotation=0&showTitle=false&status=done&style=none&taskId=u7059500b-5cc3-44d8-baa0-a8eed27c78a&title=) <br />a. 使用Go语言开发、编译、测试<br />#1、在plugins/wasm-go/yong9ai-***-auth目录下执行<br />go mod init yong9ai-***-auth
Higress开源版本已经提供了如hmac-auth、jwt-auth、basic-auth等认证鉴权插件,但这些插件并不能完全满足我们的需要,如:<br />· 访问凭证只能写在插件的yaml中,不能动态调用其他服务或存储进行校验。<br />· 访问凭证校验通过后,需要根据调用的密钥所归属的企业租户,在header中设置访问租户信息,只允许访问属于该租户的数据。<br />所以我们参考[官方文档](https://higress.cn/docs/latest/user/wasm-go/)使用GO语言开发自己的认证鉴权、设置Header插件,流程如下图:<br />![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/299576/1723111352546-e70cebaf-ccff-4ee2-af07-4876a4b79c0f.png#clientId=u755c0a2b-3f7a-4&from=paste&id=uaf3f5029&originHeight=509&originWidth=1000&originalType=url&ratio=1.7999999523162842&rotation=0&showTitle=false&status=done&style=none&taskId=u7059500b-5cc3-44d8-baa0-a8eed27c78a&title=) <br />a. 使用Go语言开发、编译、测试<br />#1、在plugins/wasm-go/yong9ai-***-auth目录下执行<br />go mod init yong9ai-***-auth

#2、编写main.go文件,按需实现onHttpRequestHeaders、onHttpRequestBody等方法

Expand Down
Loading
Loading