strongbox-password-safe / Strongbox

A KeePass/Password Safe Client for iOS and OS X
https://strongboxsafe.com
GNU Affero General Public License v3.0
1.29k stars 100 forks source link

[BUG] iOS 18 Convience unlock doesn't work with database keyhole #785

Closed SUPERHAMSTERI closed 1 week ago

SUPERHAMSTERI commented 3 weeks ago

Preliminaries I have ensured that:

Versions

Strongbox Version

Describe the bug Safari autofill says that credentials are incorrect when trying to use database with keyhole. Tested with new database without keyfile, and that works ok.

Readded database (Onedrive sync) and now it won't open at all (same error)

Screenshots & Recordings image

Additional context I know it's beta ;)

tommylux commented 3 weeks ago

Replicated on iOS 18.0 (22A5282m) development beta.

Doesn't appear to be limited to convenience lock, it doesn't unlock at all with a keyfile.

At first thought it was special characters but removing the key file it started working.

Workaround, (backup your files) then re-create the keyfile from IOS. The same files can then be used to unlock from other devices, windows etc.

A new keyfile created on Windows doesn't seem to work on iOS, but one created on iOS seems to work in Windows.

strongbox-mark commented 3 weeks ago

Yes, there does look to be an issue involving key files on iOS 18, we'll try to investigate when we can...

In the meantime, could you try;

1) Remove your database 2) Remove your imported Key File 3) Re-add your database and freshly re-import your key file.

Does that work?

SUPERHAMSTERI commented 3 weeks ago

Yes, there does look to be an issue involving key files on iOS 18, we'll try to investigate when we can...

In the meantime, could you try;

  1. Remove your database
  2. Remove your imported Key File
  3. Re-add your database and freshly re-import your key file.

Does that work?

Tried that and that does not work.

strongbox-mark commented 3 weeks ago

Thanks @SUPERHAMSTERI - If you create a new database and create a new key file within Strongbox, does that work?

tommylux commented 3 weeks ago

Thanks @SUPERHAMSTERI - If you create a new database and create a new key file within Strongbox, does that work?

Yes it seems to work, and the same keyfile seems to work in windows (keepass), but interestingly, you get an error when trying to open the file in StrongBox for Mac.

strongbox-mark commented 3 weeks ago

What error do you get on Mac? That's super unexpected

tommylux commented 3 weeks ago

What error do you get on Mac? That's super unexpected

My first point of call was when it was broken, and re-creating a keyfile on IOS worked, was to copy that to windows and Mac..

At a glance, the same error that's from IOS, I can get a screen grab. But for clarity, the Mac is not in Beta - it uses the Keyfile generated from IOS. This semmed to work in windows when I copied the new KeyFile to OneDrive, using the same Keyfile from OneDrive on Mac seemed to cause the same error. But I could always double check.

SUPERHAMSTERI commented 2 weeks ago

Even more strange is that Keepassium can handle key file without problem (assumed that iOS 18 alters some metadata when importing a file for privacy that causes it not to work at all but no, seems like it doesn't)

SUPERHAMSTERI commented 1 week ago

Looks like this is fixed in iOS 18 Beta 2. Maybe?

JLWFuQrioea69ugsykvQcg commented 1 week ago

Yeah I noticed the same thing after updating to beta 2. I was using the 1.60 TestFlight version which did not work on beta 1, but now works on beta 2.

strongbox-mark commented 1 week ago

Yes, this should be fixed for you now with 1.60.0. Please let me know if that's not the case.