0yukali0 commented on code in PR #290: URL: https://github.com/apache/yunikorn-site/pull/290#discussion_r1193696106
########## i18n/zh-cn/docusaurus-plugin-content-docs/current/user_guide/acls.md: ########## @@ -0,0 +1,119 @@ +--- +id: acls +title: ACLs +--- + +<!-- +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. +--> + +:::info +用户信息通过 [这里](usergroup_resolution) 定义的方法从 kubernetes shim 传递给核心调度器。 +::: + +## 使用方法 +访问控制列表对 YuniKorn 来说是通用的。 +它们可以在 YuniKorn 的多个地方使用。 +目前的使用情况仅限于队列 ACL。 + +访问控制列表允许对列表中指定的用户和组进行访问。 +他们不提供明确删除或拒绝访问列表中指定的用户和组的可能性。 + +如果没有配置访问控制列表,默认情况下访问是 *拒绝* 的。 + +## 语法 +访问控制列表的定义如下: +``` +ACL ::= “*” | userlist [ “ “ grouplist ] +userlist ::= “” | user { “,” user } +grouplist ::= “” | group { “,” group } +``` + +这个定义指定了一个通配符 *,结果是每个人都可以访问。 + +如果用户列表为空,组列表为空,则没有人可以访问。 +拒绝所有的 ACL 有两种可能的表现形式: +* 一个空的访问控制列表。(隐含的) +* 一个单一的空格。(显式的) + +## 示例配置 + +### 简单示例 +一个只允许用户 `sue` 访问的 ACL +```yaml + adminacl: sue +``` +其他人不会得到访问权,这只是为了 `sue`。 Review Comment: 这仅适用于`sue`。 -- 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]
