-
Notifications
You must be signed in to change notification settings - Fork 267
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
crypto: extra logging in OtherUserIdentity
#4415
Conversation
@@ -392,6 +392,7 @@ impl OtherUserIdentity { | |||
|
|||
/// Pin the current identity (public part of the master signing key). | |||
pub async fn pin_current_master_key(&self) -> Result<(), CryptoStoreError> { | |||
info!(master_key = ?self.master_key.get_first_key(), "Pinning current identity for user '{}'", self.user_id()); |
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.
Sample output (on Element web):
INFO matrix_sdk_crypto::identities::user: Pinning current identity for user '@g:xps9320.sw1v.org'
master_key=Some("ed25519:pKj/3plhPwWMRhfe0F5CzrPk3RHzU0BPxBb/QpL0kNs")
at /home/rav/work/matrix-rust-sdk/crates/matrix-sdk-crypto/src/identities/user.rs:395
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4415 +/- ##
==========================================
- Coverage 85.31% 85.30% -0.01%
==========================================
Files 282 282
Lines 31259 31261 +2
==========================================
Hits 26668 26668
- Misses 4591 4593 +2 ☔ View full report in Codecov by Sentry. |
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.
Approved, assuming the logged key is safe to have in logs.
It's someone else's cross-signing key, so by definition, a public key. |
Rebase failed
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.
Yep, thanks!
Add some extra logging in these two methids, to try to narrow down a bug report we received.
23e189a
to
ed1178c
Compare
Add some extra logging in these two methods, to try to narrow down a bug report
we received.