-
Notifications
You must be signed in to change notification settings - Fork 509
Verify signaling token keys #15332
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
Verify signaling token keys #15332
Conversation
|
Federation is failing because of
|
01a5d58 to
53995f7
Compare
Antreesy
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.
Looks good from manual tests
nickvergessen
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.
I was about to comment that this should be part of the setup check, but I see you have both.
Signed-off-by: Marcel Müller <[email protected]>
b7fea0b to
c0f0246
Compare
|
Should we backport to 31 and 30? |
| $publicKeyDerived = $this->talkConfig->deriveSignalingTokenPublicKey($privateKey, $alg); | ||
|
|
||
| if ($publicKey != $publicKeyDerived) { | ||
| return SetupResult::error($this->l->t('The stored public key for used algorithm %$1s does not match the stored private key. Run %$2s to fix the issue.', [$alg, '`occ talk:signaling:verify-keys --update`'])); |
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.
Sorry, I always mess this up:
| return SetupResult::error($this->l->t('The stored public key for used algorithm %$1s does not match the stored private key. Run %$2s to fix the issue.', [$alg, '`occ talk:signaling:verify-keys --update`'])); | |
| return SetupResult::error($this->l->t('The stored public key for used algorithm %1$s does not match the stored private key. Run %2$s to fix the issue.', [$alg, '`occ talk:signaling:verify-keys --update`'])); |
Signed-off-by: Marcel Müller <[email protected]>
c0f0246 to
6f45ccb
Compare
|
/backport to stable31 |
🛠️ API Checklist
Error handling based on
https://github.com/nextcloud/server/blob/a8f46af20f4fccac0257eba950e70d0da96c4a5a/lib/private/Authentication/Token/PublicKeyTokenProvider.php#L559-L565
🏁 Checklist
docs/has been updated or is not required