Skip to content

Conversation

@yanboliang
Copy link
Contributor

@yanboliang yanboliang commented Oct 11, 2017

What is this PR for?

Hardcoded seed/key may cause security issue, so remove potential risk.

What type of PR is it?

[Improvement]

Todos

No.

What is the Jira issue?

No jira created.

@yanboliang
Copy link
Contributor Author

@prabhjyotsingh Please help review.

@yanboliang yanboliang closed this Oct 12, 2017
@yanboliang yanboliang reopened this Oct 12, 2017
Copy link
Contributor

@prabhjyotsingh prabhjyotsingh left a comment

Choose a reason for hiding this comment

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

LGTM, there shouldn't be any hard-coded KEY.

@khalidhuseynov
Copy link
Member

LGTM

@felixcheung
Copy link
Member

@Leemoonsoo

@krishna-pandey
Copy link
Contributor

We need to consider below while removing the key. Are we relying on any such behaviour by specifying the seed value?
"If two instances of Random are created with the same seed, and the same sequence of method calls is made for each, they will generate and return identical sequences of numbers."

Refer: http://docs.oracle.com/javase/8/docs/api/java/util/Random.html

@krishna-pandey
Copy link
Contributor

LGTM.
It seems we are using SecureRandom which does not require seed explicitly to initialise and hence hardcoded key can be removed, unless we intentionally wanted a deterministic output.

@yanboliang yanboliang closed this Oct 12, 2017
@yanboliang yanboliang reopened this Oct 12, 2017
@prabhjyotsingh
Copy link
Contributor

prabhjyotsingh commented Oct 13, 2017

Merging this if no more discussion.

Build fails for profile #4(selenium, https://travis-ci.org/yanboliang/zeppelin/jobs/286776182) which looks flaky and unrelated to me.

@asfgit asfgit closed this in ed8755d Oct 14, 2017
@yanboliang yanboliang deleted the key branch October 16, 2017 23:46
prabhjyotsingh pushed a commit to prabhjyotsingh/zeppelin that referenced this pull request Oct 23, 2017
Hardcoded seed/key may cause security issue, so remove potential risk.

[Improvement]

No.

No jira created.

Author: Yanbo Liang <[email protected]>

Closes apache#2621 from yanboliang/key and squashes the following commits:

2515283 [Yanbo Liang] Remove hardcoded key in zeppelinhub.
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