Merged
Conversation
Member
Author
|
1cab40a to
0bc7ba5
Compare
MorrisJobke
reviewed
Jul 29, 2020
MorrisJobke
reviewed
Jul 29, 2020
MorrisJobke
reviewed
Jul 29, 2020
MorrisJobke
reviewed
Jul 29, 2020
MorrisJobke
reviewed
Jul 30, 2020
MorrisJobke
reviewed
Jul 30, 2020
There might be cases where multiple requests trigger the key generation at the same time and the instance ends up with a non-fitting public/private key pair. Therefore the whole key generation should be locked. Other than that this makes sure that user key generation return values are properly validated. Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
5340f57 to
00e6217
Compare
|
🤖 beep boop beep 🤖 Here are the logs for the failed build: Status of 31784: failuremariadb10.4-php7.3Show full logmysql8.0-php7.2Could not fetch logs acceptance-app-files
Show full log |
MorrisJobke
reviewed
Aug 14, 2020
MorrisJobke
approved these changes
Aug 14, 2020
Member
MorrisJobke
left a comment
There was a problem hiding this comment.
Looks good beside the typo in the error message. 👍
rullzer
approved these changes
Aug 18, 2020
Member
rullzer
left a comment
There was a problem hiding this comment.
All good indeed besides the typo
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Member
|
/backport to stable19 |
Member
|
/backport to stable18 |
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There might be cases where multiple requests trigger the key generation at the same time and the instance ends up with a non-fitting public/private key pair. Therefore the whole key generation should be locked.
Other than that this makes sure that user key generation return values are properly validated.
Somehow related to #8349 but I did not see any reason why the key might be overwritten during operation or upgrade from the existing code, so it is rather related than a fix for this. There is also not much we can do if the keys don't match. We could probably add a setupcheck to warn the admin if the modulus of both keys doesn't match, but this of course just helps to understand the issue.