-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Fix migration to non-empty secret #35600
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
Conversation
Add a fallback for empty keys Signed-off-by: Carl Schwan <[email protected]>
| $auth->setPassword($this->config->getSystemValue('secret', '')); | ||
| if (!$auth->loadKey($storage->getBackendOption('private_key'))) { | ||
| throw new \RuntimeException('unable to load private key'); | ||
| $auth->setPassword(''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a comment here why?
| $auth->setPassword($this->config->getSystemValue('secret', '')); | ||
| if (!$auth->loadKey($storage->getBackendOption('private_key'))) { | ||
| throw new \RuntimeException('unable to load private key'); | ||
| $auth->setPassword(''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
szaimen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but didnt test
|
/backport to stable25 |
Signed-off-by: Carl Schwan <[email protected]>
|
obsoleted by #35605 ? @CarlSchwan |
|
seems not obsolete |
PVince81
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Add a fallback for empty keys
Fix #35347
Fix #35443