SylviaBABY commented on code in PR #10115:
URL: https://github.com/apache/apisix/pull/10115#discussion_r1311070034


##########
docs/zh/latest/support-fips-in-apisix.md:
##########
@@ -0,0 +1,60 @@
+---
+id: support-fips-in-apisix
+title: 在 APISIX 中支持 FIPS

Review Comment:
   ```suggestion
   title: 通过 OpenSSL 3.0 使 APISIX 支持 FIPS 模式
   ```



##########
docs/zh/latest/support-fips-in-apisix.md:
##########
@@ -0,0 +1,60 @@
+---
+id: support-fips-in-apisix
+title: 在 APISIX 中支持 FIPS
+keywords:
+  - API 网关
+  - Apache APISIX
+  - 贡献代码
+  - 构建 APISIX
+  - OpenSSL 3.0 FIPS
+description: 用 OpenSSL 3.0编译 apisix-base ,即可启用 FIPS。

Review Comment:
   ```suggestion
   description: 本文将介绍如何在 Apache APISIX 中使用 OpenSSL 3.0 来编译 apisix-base,即可启用 
FIPS 模式。
   ```



##########
docs/zh/latest/support-fips-in-apisix.md:
##########
@@ -0,0 +1,60 @@
+---
+id: support-fips-in-apisix
+title: 在 APISIX 中支持 FIPS
+keywords:
+  - API 网关
+  - Apache APISIX
+  - 贡献代码
+  - 构建 APISIX
+  - OpenSSL 3.0 FIPS
+description: 用 OpenSSL 3.0编译 apisix-base ,即可启用 FIPS。
+---
+
+<!--
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+-->
+
+OpenSSL 3.0 
[支持](https://www.openssl.org/blog/blog/2022/08/24/FIPS-validation-certificate-issued/)
 [FIPS](https://en.wikipedia.org/wiki/FIPS_140-2) 模式. 为了在 APISIX 中支持 FIPS 
,你应该使用 OpenSSL 3.0来编译 apisix-base。
+
+## 编译
+
+如果你要使用 OpenSSL 3.0来编译 apisix-base,请以root用户执行以下命令:

Review Comment:
   ```suggestion
   如果你需要使用 OpenSSL 3.0 来编译 apisix-base,请以 root 用户角色来执行以下命令:
   ```



##########
docs/zh/latest/support-fips-in-apisix.md:
##########
@@ -0,0 +1,60 @@
+---
+id: support-fips-in-apisix
+title: 在 APISIX 中支持 FIPS
+keywords:
+  - API 网关
+  - Apache APISIX
+  - 贡献代码
+  - 构建 APISIX
+  - OpenSSL 3.0 FIPS
+description: 用 OpenSSL 3.0编译 apisix-base ,即可启用 FIPS。
+---
+
+<!--
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+-->
+
+OpenSSL 3.0 
[支持](https://www.openssl.org/blog/blog/2022/08/24/FIPS-validation-certificate-issued/)
 [FIPS](https://en.wikipedia.org/wiki/FIPS_140-2) 模式. 为了在 APISIX 中支持 FIPS 
,你应该使用 OpenSSL 3.0来编译 apisix-base。
+
+## 编译
+
+如果你要使用 OpenSSL 3.0来编译 apisix-base,请以root用户执行以下命令:
+
+```bash
+cd $(mktemp -d)
+OPENSSL3_PREFIX=${OPENSSL3_PREFIX-/usr/local}
+apt install -y build-essential
+git clone https://github.com/openssl/openssl
+cd openssl
+./Configure --prefix=$OPENSSL3_PREFIX/openssl-3.0 enable-fips
+make install
+echo $OPENSSL3_PREFIX/openssl-3.0/lib64 > /etc/ld.so.conf.d/openssl3.conf
+ldconfig
+$OPENSSL3_PREFIX/openssl-3.0/bin/openssl fipsinstall -out 
$OPENSSL3_PREFIX/openssl-3.0/ssl/fipsmodule.cnf -module 
$OPENSSL3_PREFIX/openssl-3.0/lib64/ossl-modules/fips.so
+sed -i 's@# .include [email protected] 
'"$OPENSSL3_PREFIX"'/openssl-3.0/ssl/fipsmodule.cnf@g; s/# \(fips = 
fips_sect\)/\1\nbase = base_sect\n\n[base_sect]\nactivate=1\n/g' 
$OPENSSL3_PREFIX/openssl-3.0/ssl/openssl.cnf
+cd ..
+
+export cc_opt="-I$OPENSSL3_PREFIX/openssl-3.0/include"
+export ld_opt="-L$OPENSSL3_PREFIX/openssl-3.0/lib64 
-Wl,-rpath,$OPENSSL3_PREFIX/openssl-3.0/lib64"
+
+wget 
https://raw.githubusercontent.com/api7/apisix-build-tools/master/build-apisix-base.sh
+chmod +x build-apisix-base.sh
+./build-apisix-base.sh latest
+```
+
+apisix-base 将安装在 `/usr/local/openresty-debug`。

Review Comment:
   I think that if the translation is based on the English document, you can 
add some instructions on how to use it during the process, or if there are 
problems in the English document itself, you can modify it in the Chinese 
document instead of directly translating it. The ending of the current Chinese 
document looks like it is unfinished. I think you can add your own thoughts 
with this document^^



##########
docs/zh/latest/support-fips-in-apisix.md:
##########
@@ -0,0 +1,60 @@
+---
+id: support-fips-in-apisix
+title: 在 APISIX 中支持 FIPS
+keywords:
+  - API 网关
+  - Apache APISIX
+  - 贡献代码
+  - 构建 APISIX
+  - OpenSSL 3.0 FIPS
+description: 用 OpenSSL 3.0编译 apisix-base ,即可启用 FIPS。
+---
+
+<!--
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+-->
+
+OpenSSL 3.0 
[支持](https://www.openssl.org/blog/blog/2022/08/24/FIPS-validation-certificate-issued/)
 [FIPS](https://en.wikipedia.org/wiki/FIPS_140-2) 模式. 为了在 APISIX 中支持 FIPS 
,你应该使用 OpenSSL 3.0来编译 apisix-base。
+
+## 编译
+
+如果你要使用 OpenSSL 3.0来编译 apisix-base,请以root用户执行以下命令:

Review Comment:
   ```suggestion
   如果你需要使用 OpenSSL 3.0 来编译 apisix-base,请以 root 用户角色来执行以下命令:
   ```



##########
docs/zh/latest/support-fips-in-apisix.md:
##########
@@ -0,0 +1,60 @@
+---
+id: support-fips-in-apisix
+title: 在 APISIX 中支持 FIPS
+keywords:
+  - API 网关
+  - Apache APISIX
+  - 贡献代码
+  - 构建 APISIX
+  - OpenSSL 3.0 FIPS
+description: 用 OpenSSL 3.0编译 apisix-base ,即可启用 FIPS。
+---
+
+<!--
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+-->
+
+OpenSSL 3.0 
[支持](https://www.openssl.org/blog/blog/2022/08/24/FIPS-validation-certificate-issued/)
 [FIPS](https://en.wikipedia.org/wiki/FIPS_140-2) 模式. 为了在 APISIX 中支持 FIPS 
,你应该使用 OpenSSL 3.0来编译 apisix-base。

Review Comment:
   ```suggestion
   目前,OpenSSL 3.0 
[支持了](https://www.openssl.org/blog/blog/2022/08/24/FIPS-validation-certificate-issued/)
 [FIPS](https://en.wikipedia.org/wiki/FIPS_140-2) 模式。为了在 APISIX 中支持 FIPS 
模式,你应该使用 OpenSSL 3.0 来编译 apisix-base。
   ```



##########
docs/zh/latest/support-fips-in-apisix.md:
##########
@@ -0,0 +1,60 @@
+---
+id: support-fips-in-apisix
+title: 在 APISIX 中支持 FIPS
+keywords:
+  - API 网关
+  - Apache APISIX
+  - 贡献代码
+  - 构建 APISIX
+  - OpenSSL 3.0 FIPS
+description: 用 OpenSSL 3.0编译 apisix-base ,即可启用 FIPS。
+---
+
+<!--
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+-->
+
+OpenSSL 3.0 
[支持](https://www.openssl.org/blog/blog/2022/08/24/FIPS-validation-certificate-issued/)
 [FIPS](https://en.wikipedia.org/wiki/FIPS_140-2) 模式. 为了在 APISIX 中支持 FIPS 
,你应该使用 OpenSSL 3.0来编译 apisix-base。

Review Comment:
   ```suggestion
   目前,OpenSSL 3.0 
[支持了](https://www.openssl.org/blog/blog/2022/08/24/FIPS-validation-certificate-issued/)
 [FIPS](https://en.wikipedia.org/wiki/FIPS_140-2) 模式。为了在 APISIX 中支持 FIPS 
模式,你应该使用 OpenSSL 3.0 来编译 apisix-base。
   ```



##########
docs/zh/latest/support-fips-in-apisix.md:
##########
@@ -0,0 +1,60 @@
+---
+id: support-fips-in-apisix
+title: 在 APISIX 中支持 FIPS

Review Comment:
   ```suggestion
   title: 通过 OpenSSL 3.0 使 APISIX 支持 FIPS 模式
   ```



##########
docs/zh/latest/support-fips-in-apisix.md:
##########
@@ -0,0 +1,60 @@
+---
+id: support-fips-in-apisix
+title: 在 APISIX 中支持 FIPS
+keywords:
+  - API 网关
+  - Apache APISIX
+  - 贡献代码
+  - 构建 APISIX
+  - OpenSSL 3.0 FIPS
+description: 用 OpenSSL 3.0编译 apisix-base ,即可启用 FIPS。

Review Comment:
   ```suggestion
   description: 本文将介绍如何在 Apache APISIX 中使用 OpenSSL 3.0 来编译 apisix-base,即可启用 
FIPS 模式。
   ```



##########
docs/zh/latest/support-fips-in-apisix.md:
##########
@@ -0,0 +1,60 @@
+---
+id: support-fips-in-apisix
+title: 在 APISIX 中支持 FIPS
+keywords:
+  - API 网关
+  - Apache APISIX
+  - 贡献代码
+  - 构建 APISIX
+  - OpenSSL 3.0 FIPS
+description: 用 OpenSSL 3.0编译 apisix-base ,即可启用 FIPS。
+---
+
+<!--
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+-->
+
+OpenSSL 3.0 
[支持](https://www.openssl.org/blog/blog/2022/08/24/FIPS-validation-certificate-issued/)
 [FIPS](https://en.wikipedia.org/wiki/FIPS_140-2) 模式. 为了在 APISIX 中支持 FIPS 
,你应该使用 OpenSSL 3.0来编译 apisix-base。

Review Comment:
   please pay attention to the punctuation changes in Chinese and English



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to