Skip to content

Shuffling the password to avoid having a subset of characters in fixed positions.#1058

Merged
asfgit merged 1 commit into
apache:masterfrom
greenqloud:pr/password_security
Nov 22, 2015
Merged

Shuffling the password to avoid having a subset of characters in fixed positions.#1058
asfgit merged 1 commit into
apache:masterfrom
greenqloud:pr/password_security

Conversation

@nnesic
Copy link
Copy Markdown
Contributor

@nnesic nnesic commented Nov 10, 2015

Related to CLOUDSTACK-9052.

I am shuffling the characters in the password, to avoid having a certain char type in fixed positions. I modified the tests accordingly to only check that the different character types are present.

I think it would be good to remove the hard requirement to have at least one of digits, upper-case, and lowercase chars, as it reduces the number of possible combinations passwords can take. What do you think?

@wido
Copy link
Copy Markdown
Contributor

wido commented Nov 11, 2015

LGTM to me. Simple fix to make passwords more secure

@ustcweizhou
Copy link
Copy Markdown
Contributor

LGTM
nice!

@DaanHoogland
Copy link
Copy Markdown
Contributor

@wido @ustcweizhou I see two "looks good to me" without validation test explenation. Did you guys test this and how?

@remibergsma
Copy link
Copy Markdown
Contributor

I will run some tests on this branch and report back.

@remibergsma
Copy link
Copy Markdown
Contributor

LGTM, based on a set of tests that I run on this branch (which I rebased myself first). Screenshot is from an experimental Jenkins job (that runs the same tests I did manually until now).

screen shot 2015-11-22 at 12 43 15

These test may not cover your change, all they do is show you didn't break them.

asfgit pushed a commit that referenced this pull request Nov 22, 2015
Shuffling the password to avoid having a subset of characters in fixed positions.Related to CLOUDSTACK-9052.

I am shuffling the characters in the password, to avoid having a certain char type in fixed positions. I modified the tests accordingly to only check that the different character types are present.

I think it would be good to remove the hard requirement to have at least one of digits, upper-case, and  lowercase chars, as it reduces the number of possible combinations passwords can take. What do you think?

* pr/1058:
  CLOUDSTACK-9052 Shuffling the password to avoid having a subset of characters in fixed positions.

Signed-off-by: Remi Bergsma <github@remi.nl>
@asfgit asfgit merged commit 52ccfaa into apache:master Nov 22, 2015
@remibergsma
Copy link
Copy Markdown
Contributor

This was merged to 4.6, then to master as it is a security improvement that applied cleanly.

@bhaisaab You may want to include this in the final 4.5 release.

@ProjectMoon ProjectMoon deleted the pr/password_security branch November 23, 2015 00:30
@yadvr
Copy link
Copy Markdown
Member

yadvr commented Nov 23, 2015

@remibergsma thanks, will merge this on 4.5 soon.

@ProjectMoon ProjectMoon restored the pr/password_security branch November 23, 2015 10:54
@ProjectMoon ProjectMoon deleted the pr/password_security branch November 23, 2015 10:54
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.

7 participants