You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2022/03/14 23:49:43 UTC
[GitHub] [ozone] smengcl commented on a change in pull request #3177: HDDS-6396. [Multi-Tenant] Remove TenantGroupTable and TenantRoleTable, add roleId field in OmDBAccessIdInfo, refactor isTenantAdmin
smengcl commented on a change in pull request #3177:
URL: https://github.com/apache/ozone/pull/3177#discussion_r826468123
##########
File path: hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmDBAccessIdInfo.java
##########
@@ -42,16 +42,19 @@
* Only effective if isAdmin is true.
*/
private final boolean isDelegatedAdmin;
-
- // This implies above String fields should NOT contain the split key.
- public static final String SERIALIZATION_SPLIT_KEY = ";";
+ /**
+ * Role name of the user (that this access ID is assigned to) in this tenant.
+ * e.g. "user", "admin", "auditor"
+ */
+ private final String roleId;
public OmDBAccessIdInfo(String tenantId, String userPrincipal,
- boolean isAdmin, boolean isDelegatedAdmin) {
+ boolean isAdmin, boolean isDelegatedAdmin, String roleId) {
this.tenantId = tenantId;
this.userPrincipal = userPrincipal;
this.isAdmin = isAdmin;
this.isDelegatedAdmin = isDelegatedAdmin;
+ this.roleId = roleId;
Review comment:
Thanks @prashantpogde . Very good point. I have addressed the issue by making the protobuf a `repeated` one.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org