Skip to content

Commit 010623c

Browse files
committed
fix: improve keyring availability error detection
Signed-off-by: sheikhlimon <sheikhlimon404@gmail.com>
1 parent 0f2f32b commit 010623c

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

crates/goose/src/config/base.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -911,10 +911,12 @@ impl Config {
911911

912912
/// Check if an error string indicates a keyring availability issue that should trigger fallback
913913
fn is_keyring_availability_error(&self, error_str: &str) -> bool {
914-
error_str.contains("keyring")
915-
|| error_str.contains("DBus error")
916-
|| error_str.contains("org.freedesktop.secrets")
917-
|| error_str.contains("couldn't access platform secure storage")
914+
let lower = error_str.to_lowercase();
915+
lower.contains("keyring")
916+
|| lower.contains("dbus")
917+
|| lower.contains("org.freedesktop.secrets")
918+
|| lower.contains("platform secure storage")
919+
|| lower.contains("no secret service")
918920
}
919921

920922
/// Get a keyring entry for the specified service

0 commit comments

Comments
 (0)