π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Tighten paste test fixture cleanup
Manav Rathibb7820d00564
diff --git a/rust/apps/cli/src/commands/paste.rs b/rust/apps/cli/src/commands/paste.rsindex 33909ff7b9..60eaba8cb9 100644--- a/rust/apps/cli/src/commands/paste.rs+++ b/rust/apps/cli/src/commands/paste.rs@@ -92,8 +92,6 @@ async fn consume_paste(access_token: &str,fragment_secret: &str,) -> Result<String> {- validate_fragment_secret(fragment_secret)?;-let client = paste_http_client()?;let request = PasteTokenRequest {access_token: access_token.to_string(),@@ -231,8 +229,6 @@ fn encrypt_paste_for_create(text: &str) -> Result<(String, PastePayload)> {}fn decrypt_consumed_paste(fragment_secret: &str, payload: &PastePayload) -> Result<String> {- validate_fragment_secret(fragment_secret)?;-let salt = BASE64.decode(&payload.kdf_nonce)?;let key_encryption_key = argon::derive_key(fragment_secret,diff --git a/rust/apps/cli/tests/support/fixture.rs b/rust/apps/cli/tests/support/fixture.rsindex b401c82015..c09d5895e4 100644--- a/rust/apps/cli/tests/support/fixture.rs+++ b/rust/apps/cli/tests/support/fixture.rs@@ -9,11 +9,11 @@ use uuid::Uuid;use super::{Cli, LOCAL_HOST, TestResult, museum, pglite, process::ChildProcess};pub struct Fixture {+ _museum: ChildProcess,+ _pglite: ChildProcess,temp_dir: TempDir,endpoint: String,paste_origin: String,- _pglite: ChildProcess,- _museum: ChildProcess,}impl Fixture {@@ -57,11 +57,11 @@ impl Fixture {};Ok(Self {+ _museum: museum,+ _pglite: pglite,temp_dir,endpoint,paste_origin,- _pglite: pglite,- _museum: museum,})}