Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

ACL Support#211

Open
adrianluisgonzalez wants to merge 1 commit intosoabase:masterfrom
ef-labs:feature/acl_support
Open

ACL Support#211
adrianluisgonzalez wants to merge 1 commit intosoabase:masterfrom
ef-labs:feature/acl_support

Conversation

@adrianluisgonzalez
Copy link

Added support for ACLs. ACL support is turned off by default in configuration. Also made the tracking fields possible to be turned off via configuration.

@xxthegonzxx
Copy link

Any update on when this change will be merged?

@simplesteph
Copy link

Would love to see this merged cc @xiaochuanyu

@xiaochuanyu
Copy link
Contributor

Will try to test out this PR this weekend.

@simplesteph
Copy link

@xiaochuanyu any luck?

@xiaochuanyu
Copy link
Contributor

@simplesteph sorry I didn't have time last weekend. Will try to find some time for this.

.retryPolicy(new ExponentialBackoffRetry(1000, 3));

String zkSuperUserPassword = configManager.getConfig().getString(StringConfigs.ZK_SUPER_USER_PASSWORD);
if (zkSuperUserPassword != null && !zkSuperUserPassword.equals("")) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style: !Strings.isNullOrEmpty(zkSuperUserPassword)

/**
* Contains a list of all those properties that we don't want returned in the 'get-state' method.
*/
private static final List<StringConfigs> EXCLUSIONS = Arrays.asList(
Copy link
Contributor

@xiaochuanyu xiaochuanyu Mar 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style:

private static final Set<StringConfigs> EXCLUSIONS = Sets.immutableEnumSet(
        StringConfigs.ZK_SUPER_USER_PASSWORD
);

try
{
List<ACL> acls = new ArrayList<ACL>();
boolean processAcls = (aclsEnabled && (aclsJsonArray != null && !aclsJsonArray.equals("")));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style: !Strings.isNullOrEmpty(aclsJsonArray)


for (ACL acl : acls) {
aclsAsString.append(encodeAclToString(acl));
aclsAsString.append("<br/>");
Copy link
Contributor

@xiaochuanyu xiaochuanyu Mar 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should have html tags in return values of the REST API.
Maybe JSON list of strings?

$("#stat").text(data.stat);
$("#data-bytes").text(data.bytes);
$("#data-str").text(data.str);
$("#node-acl").html(data.acls)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming we want data.acl to be json list of strings.
This part will need to be changed to parse it into html.

@xiaochuanyu
Copy link
Contributor

Closing and re-opening to trigger Travis CI.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants