[
https://issues.apache.org/jira/browse/HDDS-939?focusedWorklogId=218266&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-218266
]
ASF GitHub Bot logged work on HDDS-939:
---------------------------------------
Author: ASF GitHub Bot
Created on: 25/Mar/19 21:12
Start Date: 25/Mar/19 21:12
Worklog Time Spent: 10m
Work Description: ajayydv commented on pull request #634: HDDS-939. Add
S3 access check to Ozone manager. Contributed by Ajay Kumar.
URL: https://github.com/apache/hadoop/pull/634#discussion_r268853326
##########
File path:
hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/util/OzoneS3Util.java
##########
@@ -0,0 +1,36 @@
+/*
+ * 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.
+ *
+ */
+package org.apache.hadoop.ozone.s3.util;
+
+import org.apache.commons.codec.digest.DigestUtils;
+import java.util.Objects;
+
+/**
+ * Ozone util for S3 related operations.
+ */
+public final class OzoneS3Util {
+
+ private OzoneS3Util() {
+ }
+
+ public static String getVolumeName(String userName) {
+ Objects.nonNull(userName);
+ return DigestUtils.md5Hex(userName);
Review comment:
Idea is to keep it consistent with what we do right now for volume names.
With hex encoding i think volume name will be little bigger and hence take more
space in embedded metadata store.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 218266)
Time Spent: 2h (was: 1h 50m)
> Add S3 access check to Ozone manager
> ------------------------------------
>
> Key: HDDS-939
> URL: https://issues.apache.org/jira/browse/HDDS-939
> Project: Hadoop Distributed Data Store
> Issue Type: Bug
> Components: Ozone Manager, S3
> Reporter: Anu Engineer
> Assignee: Ajay Kumar
> Priority: Blocker
> Labels: pull-request-available
> Time Spent: 2h
> Remaining Estimate: 0h
>
> Add the mapping from S3 User Identity to UGI inside Ozone Manager. Also add
> the access check permission, that is call into the checkAccess, which will be
> intercepted by Ranger or Ozone access check.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]