diff --git a/content/zh/docs/concepts/security/index.md b/content/zh/docs/concepts/security/index.md index cc69595fac5fe..8d647aeec25c1 100644 --- a/content/zh/docs/concepts/security/index.md +++ b/content/zh/docs/concepts/security/index.md @@ -619,9 +619,9 @@ spec: 授权策略中的大多数字段都支持以下所有匹配模式: - 完全匹配:即完整的字符串匹配。 -- 前缀匹配:`"*"` 结尾的字符串。例如,`"test.abc.*"` +- 后缀匹配:`"*"` 结尾的字符串。例如,`"test.abc.*"` 匹配 `"test.abc.com"`、`"test.abc.com.cn"`、`"test.abc.org"` 等等。 -- 后缀匹配:`"*"` 开头的字符串。例如,`"*.abc.com"` +- 前缀匹配:`"*"` 开头的字符串。例如,`"*.abc.com"` 匹配 `"eng.abc.com"`、`"test.eng.abc.com"` 等等。 - 存在匹配:`*` 用于指定非空的任意内容。您可以使用格式 `fieldname: ["*"]` 指定必须存在的字段。这意味着该字段可以匹配任意内容,但是不能为空。