From 493551fee30f298bee5289d73dffab15e8489224 Mon Sep 17 00:00:00 2001 From: ZhuchkaTriplesix Date: Sun, 25 Oct 2026 10:47:50 +0300 Subject: [PATCH] fix(macos): store connection secrets in the login keychain; the data-protection keychain needs an entitlement the signed build lacks --- lib/core/storage/connection_secrets_store.dart | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/core/storage/connection_secrets_store.dart b/lib/core/storage/connection_secrets_store.dart index bb49b1bd..726446ba 100644 --- a/lib/core/storage/connection_secrets_store.dart +++ b/lib/core/storage/connection_secrets_store.dart @@ -11,8 +11,17 @@ abstract class SecretsStorageBackend { } class _FlutterSecureStorageBackend implements SecretsStorageBackend { +<<<<<<< Updated upstream final FlutterSecureStorage _storage = const FlutterSecureStorage( mOptions: ConnectionSecretsStore.macOsOptions, +======= + /// macOS uses the login keychain: the plugin's default data-protection + /// keychain needs a `keychain-access-groups` entitlement, which the + /// Developer ID build does not carry, so every write failed with -34018 and + /// the new connection was rolled back. + final FlutterSecureStorage _storage = const FlutterSecureStorage( + mOptions: MacOsOptions(usesDataProtectionKeychain: false), +>>>>>>> Stashed changes ); @override