Skip to content

Add support for pushing secrets and receiving secret pushes#6164

Open
uhoreg wants to merge 15 commits intomatrix-org:mainfrom
uhoreg:secret_push
Open

Add support for pushing secrets and receiving secret pushes#6164
uhoreg wants to merge 15 commits intomatrix-org:mainfrom
uhoreg:secret_push

Conversation

@uhoreg
Copy link
Copy Markdown
Member

@uhoreg uhoreg commented Feb 12, 2026

see MSC4385

Pushing secrets allow devices to send secrets to other devices without waiting for a secret request.

closes #6040

  • Public API changes documented in changelogs (optional)

Signed-off-by:

@uhoreg uhoreg requested review from a team as code owners February 12, 2026 00:29
@uhoreg uhoreg requested review from poljar and stefanceriu and removed request for a team February 12, 2026 00:29
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 12, 2026

Codecov Report

❌ Patch coverage is 86.13139% with 19 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.85%. Comparing base (1fc7b34) to head (5a1f80b).
⚠️ Report is 9 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
crates/matrix-sdk-sqlite/src/crypto_store.rs 86.99% 2 Missing and 14 partials ⚠️
crates/matrix-sdk-crypto/src/store/types.rs 50.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6164      +/-   ##
==========================================
- Coverage   89.87%   89.85%   -0.02%     
==========================================
  Files         378      378              
  Lines      103367   103473     +106     
  Branches   103367   103473     +106     
==========================================
+ Hits        92900    92976      +76     
- Misses       6898     6918      +20     
- Partials     3569     3579      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Feb 12, 2026

Merging this PR will not alter performance

✅ 50 untouched benchmarks


Comparing uhoreg:secret_push (5a1f80b) with main (a65fec3)

Open in CodSpeed

Copy link
Copy Markdown
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of initial thoughts.

Copy link
Copy Markdown
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, needs more CHANGELOG.md

@stefanceriu stefanceriu removed their request for review March 4, 2026 08:36
@poljar poljar removed their request for review March 11, 2026 10:39
@uhoreg
Copy link
Copy Markdown
Member Author

uhoreg commented Mar 19, 2026

I believe this is ready for re-review

@uhoreg uhoreg requested a review from richvdh March 19, 2026 19:51
Copy link
Copy Markdown
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Various comments.

@uhoreg
Copy link
Copy Markdown
Member Author

uhoreg commented Mar 31, 2026

I messed up the latest commits, because I forgot to enable the feature flag when trying to build it, so it failed to build without me noticing. :( So I'll have to redo some of the latest commits.

@uhoreg
Copy link
Copy Markdown
Member Author

uhoreg commented Mar 31, 2026

Should be ready for re-review, though I'm going to have to work out the merge conflict (merge conflicts with db migrations are fun).

@uhoreg uhoreg requested a review from richvdh March 31, 2026 19:28
uhoreg and others added 5 commits April 1, 2026 11:07
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
Co-authored-by: Hubert Chathi <hubert@uhoreg.ca>
Signed-off-by: Hubert Chathi <hubert@uhoreg.ca>
@uhoreg uhoreg requested a review from richvdh April 1, 2026 21:40
Copy link
Copy Markdown
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm other than the minor problems below

// delete the db in case it was used in a previous run
let _ = Database::delete_by_name(&db_name).unwrap().await.unwrap();

// Given a DB with data in it as it was at v5
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why v5, of all things?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because there was already a helper function for creating a v5 db

@uhoreg
Copy link
Copy Markdown
Member Author

uhoreg commented Apr 2, 2026

@richvdh can you mash the "Merge" button? I don't seem to have permissions to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add support for pushing secrets

2 participants