From f460101f4ec0421e869cd6ca01bfb4346814f877 Mon Sep 17 00:00:00 2001 From: Kegan Dougal <7190048+kegsay@users.noreply.github.com> Date: Fri, 12 Jul 2024 17:59:22 +0100 Subject: [PATCH] Encrypt the rust DB by default, to match EX --- internal/api/rust/rust.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/api/rust/rust.go b/internal/api/rust/rust.go index e364c15..fb4b3ca 100644 --- a/internal/api/rust/rust.go +++ b/internal/api/rust/rust.go @@ -73,7 +73,8 @@ func NewRustClient(t ct.TestLike, opts api.ClientCreationOpts) (api.Client, erro } // @alice:hs1, FOOBAR => alice_hs1_FOOBAR username := strings.Replace(opts.UserID[1:], ":", "_", -1) + "_" + opts.DeviceID - ab = ab.SessionPath("rust_storage/" + username).Username(username) + passphrase := "complement-crypto" + ab = ab.SessionPath("rust_storage/" + username).Username(username).Passphrase(&passphrase) client, err := ab.Build() if err != nil { return nil, fmt.Errorf("ClientBuilder.Build failed: %s", err)