Skip to content

KAFKA-4943: Make /config/users with SCRAM credentials not world-readable#2733

Closed
rajinisivaram wants to merge 3 commits intoapache:trunkfrom
rajinisivaram:KAFKA-4943
Closed

KAFKA-4943: Make /config/users with SCRAM credentials not world-readable#2733
rajinisivaram wants to merge 3 commits intoapache:trunkfrom
rajinisivaram:KAFKA-4943

Conversation

@rajinisivaram
Copy link
Copy Markdown
Contributor

No description provided.

@asfbot
Copy link
Copy Markdown

asfbot commented Mar 24, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.10/2368/
Test PASSed (JDK 7 and Scala 2.10).

@asfbot
Copy link
Copy Markdown

asfbot commented Mar 24, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.11/2372/
Test PASSed (JDK 8 and Scala 2.11).

@asfbot
Copy link
Copy Markdown

asfbot commented Mar 24, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/2368/
Test PASSed (JDK 8 and Scala 2.12).

@ijuma
Copy link
Copy Markdown
Member

ijuma commented Mar 27, 2017

cc @junrao

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 4, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.11/2683/
Test FAILed (JDK 8 and Scala 2.11).

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 4, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.10/2679/
Test PASSed (JDK 7 and Scala 2.10).

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 4, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/2679/
Test PASSed (JDK 8 and Scala 2.12).

Copy link
Copy Markdown
Member

@ijuma ijuma left a comment

Choose a reason for hiding this comment

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

I left a couple of minor comments, but I'll leave it to @junrao to do the proper review.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should it not be 0.10.2.1 since you set the target version of the JIRA to 0.10.2.1?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Methods should start with lowercase. Yes, DefaultAcls was not following that convention. Maybe we can leave the deprecated one like that, but we should have the right capitalisation for the newly introduced ones.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Copy Markdown
Contributor

@junrao junrao left a comment

Choose a reason for hiding this comment

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

@rajinisivaram : Thanks for the patch. LGTM. Just a minor comment.

Not sure if this is critical enough for 0.10.2 since there is a workaround to change the permission in ZK manually.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is there a reason that null should be a sensitive path?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No, null check was mainly to prevent NPE. I have changed to return false for null.

@ijuma
Copy link
Copy Markdown
Member

ijuma commented Apr 6, 2017

@junrao When it comes to security issues like this one, the default position should be to backport unless there's a reason not to. It's true that there is a workaround, but people may not realise that they have to do it until it's too late.

@gwenshap
Copy link
Copy Markdown
Contributor

gwenshap commented Apr 6, 2017

I'd like to see it in 0.10.2 unless there is special complication in cherry-picking.

@rajinisivaram
Copy link
Copy Markdown
Contributor Author

@ijuma @junrao @gwenshap Thank you for the review. I have made the updates.

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 7, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.10/2814/
Test FAILed (JDK 7 and Scala 2.10).

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 7, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.11/2818/
Test PASSed (JDK 8 and Scala 2.11).

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 7, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/2814/
Test PASSed (JDK 8 and Scala 2.12).

@deprecated("This is deprecated, use DefaultAcls(isSecure, path) which doesn't make sensitive data world readable", since = "0.10.2.1")
def DefaultAcls(isSecure: Boolean): java.util.List[ACL] = DefaultAcls(isSecure, "")

def DefaultAcls(isSecure: Boolean, path: String): java.util.List[ACL] = {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Shall we make this lowercase as well?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@ijuma Thank you for the review. Have changed to lower case.

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 7, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.10/2820/
Test PASSed (JDK 7 and Scala 2.10).

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 7, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/2820/
Test FAILed (JDK 8 and Scala 2.12).

@asfbot
Copy link
Copy Markdown

asfbot commented Apr 7, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.11/2824/
Test PASSed (JDK 8 and Scala 2.11).

Copy link
Copy Markdown
Member

@ijuma ijuma left a comment

Choose a reason for hiding this comment

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

LGTM, merging to trunk and 0.10.2.

@asfgit asfgit closed this in 67fc2a9 Apr 7, 2017
asfgit pushed a commit that referenced this pull request Apr 7, 2017
Author: Rajini Sivaram <rajinisivaram@googlemail.com>

Reviewers: Ismael Juma, Jun Rao

Closes #2733 from rajinisivaram/KAFKA-4943

(cherry picked from commit 67fc2a9)
Signed-off-by: Gwen Shapira <cshapi@gmail.com>
@ijuma
Copy link
Copy Markdown
Member

ijuma commented Apr 8, 2017

@rajinisivaram @gwenshap Can you please check #2829

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants