Skip to content

Conversation

@gabekole
Copy link

While running Find My decryption on a bare-metal M1 instance (Ventura 13.6) on Scaleway, I encountered an issue: the AES key resolved as empty (key_in_hex: ''), causing decryption to fail. Surprisingly, no password prompt appeared, even though I was connected via VNC (not SSH).

This patch adjusts the authentication/decryption flow, which resolved the issue in my environment. Decryption now completes successfully on Ventura 13.6 on bare-metal M1 instances.

It is only a fallback, so it shouldn't impact any other users.

@malmeloo
Copy link
Owner

Hey! Sorry for taking a while to respond. Your changes look good but I've left one suggestion to improve, if you can fix it I'll be happy to merge.

Also tip: if you install pre-commit and the checks as detailed in the readme, you can check these rules locally 🙂

@gabekole
Copy link
Author

Hi, I don't see any review comments? Could you point me in the right direction? Thanks

"/usr/bin/security find-generic-password -l 'BeaconStore' -w"
)
if not key_in_hex:
raise ValueError("Empty output from security -w") # noqa: EM101, TRY003, TRY301
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix these linter errors instead of ignoring them

@malmeloo
Copy link
Owner

Sorry, forgot to publish them 😅

@gabekole
Copy link
Author

I'll push changes this weekend, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants