Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: replace random password generation logic #1939

Merged
merged 2 commits into from
Sep 17, 2023

Conversation

bossenti
Copy link
Contributor

Purpose

This PR replaces the logic behind the default password generation when no password is provided for a new user.
So far we have been using the randomAscii() method of RandomStringUtils from apache.commons.lang3.
However, this is not a good choice for password generation because it is only a weak pseudorandom generation. Therefore, its documentation recommends using the RandomStringGenerator of apache.commons.text.

Remarks

PR introduces (a) breaking change(s): no

PR introduces (a) deprecation(s): no

@bossenti bossenti added this to the 0.93.0 milestone Sep 16, 2023
@github-actions github-actions bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code backend Everything that is related to the StreamPipes backend testing Relates to any kind of test (unit test, integration, or E2E test). labels Sep 16, 2023
@dominikriemer dominikriemer merged commit 0d77725 into dev Sep 17, 2023
18 checks passed
@dominikriemer dominikriemer deleted the chore/replace-random-ascii branch September 17, 2023 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Everything that is related to the StreamPipes backend dependencies Pull requests that update a dependency file java Pull requests that update Java code testing Relates to any kind of test (unit test, integration, or E2E test).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants