You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by sa...@apache.org on 2020/07/22 13:00:25 UTC

[hadoop-ozone] 15/39: HDDS-2768. security/SecuringS3.md (#1188)

This is an automated email from the ASF dual-hosted git repository.

sammichen pushed a commit to branch ozone-0.6.0
in repository https://gitbox.apache.org/repos/asf/hadoop-ozone.git

commit 880adec2e6c4c808495fe465d7d0306b241f0be1
Author: Xiang Zhang <xi...@gmail.com>
AuthorDate: Wed Jul 15 14:37:47 2020 +0800

    HDDS-2768. security/SecuringS3.md (#1188)
    
    (cherry picked from commit 10686014b98a01c30f54614e172f57ab99c48c5b)
---
 hadoop-hdds/docs/content/security/SecuringS3.md    |  6 +--
 hadoop-hdds/docs/content/security/SecuringS3.zh.md | 50 ++++++++++++++++++++++
 2 files changed, 53 insertions(+), 3 deletions(-)

diff --git a/hadoop-hdds/docs/content/security/SecuringS3.md b/hadoop-hdds/docs/content/security/SecuringS3.md
index 1cb0c80..578aa33 100644
--- a/hadoop-hdds/docs/content/security/SecuringS3.md
+++ b/hadoop-hdds/docs/content/security/SecuringS3.md
@@ -38,14 +38,14 @@ The user needs to `kinit` first and once they have authenticated via kerberos
 ```bash
 ozone s3 getsecret
 ```
-This command will talk to ozone, validate the user via kerberos and generate
+This command will talk to ozone, validate the user via Kerberos and generate
 the AWS credentials. The values will be printed out on the screen. You can
 set these values up in your _.aws_ file for automatic access while working
 against Ozone S3 buckets.
 
 <div class="alert alert-danger" role="alert">
- Please note: These S3 crediantials are like your kerberos passswords
- that give compelete access to your buckets.
+ Please note: These S3 credentials are like your Kerberos passwords
+ that give complete access to your buckets.
 </div>
 
 
diff --git a/hadoop-hdds/docs/content/security/SecuringS3.zh.md b/hadoop-hdds/docs/content/security/SecuringS3.zh.md
new file mode 100644
index 0000000..b7d52b7
--- /dev/null
+++ b/hadoop-hdds/docs/content/security/SecuringS3.zh.md
@@ -0,0 +1,50 @@
+---
+title: "安全化 S3"
+date: "2019-April-03"
+summary: Ozone 支持 S3 协议,并使用 AWS Signature Version 4 protocol which allows a seamless S3
+ experience.
+weight: 4
+icon: cloud
+---
+<!---
+  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.
+-->
+
+用户需要由 AWS 网站生成的 AWS access key ID 和 AWS secret 来访问 AWS S3 的桶,当你使用 Ozone 的 S3 协议时,你也需要同样的 AWS access key 和 secret。
+
+在 Ozone 中,用户可以直接下载 access key。用户需要先执行 `kinit` 命令进行 Kerberos 认证,认证通过后就可以下载 S3 access key 和 secret。和 AWS S3 一样,access key 和 secret 具有 S3 桶的全部权限,用户需要保管好 key 和 secret。
+
+* S3 客户端可以从 OM 获取 access key id 和 secret。
+
+```bash
+ozone s3 getsecret
+```
+这条命令会与 Ozone 进行通信,对用户进行 Kerberos 认证并生成 AWS 凭据,结果会直接打印在屏幕上,你可以将其配置在 _.aws._ 文件中,这样可以在操作 Ozone S3 桶时自动进行认证。
+
+<div class="alert alert-danger" role="alert">
+请注意:这些 S3 凭据和你的 Kerberos 密码一样,具有你所有桶的完全访问权限。 
+</div>
+
+
+* 在 aws 配置中添加上述凭据:
+
+```bash
+aws configure set default.s3.signature_version s3v4
+aws configure set aws_access_key_id ${accessId}
+aws configure set aws_secret_access_key ${secret}
+aws configure set region us-west-1
+```
+关于通过命令行和 S3 API 使用 S3,请参考 AWS S3 的文档。


---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-commits-help@hadoop.apache.org