Skip to content

feature: the icloud email username is now included in the email about 2sa authentication failing#1095

Merged
AndreyNikiforov merged 5 commits intoicloud-photos-downloader:masterfrom
bed42:add-obsfucated-username-to-email
Mar 30, 2025
Merged

feature: the icloud email username is now included in the email about 2sa authentication failing#1095
AndreyNikiforov merged 5 commits intoicloud-photos-downloader:masterfrom
bed42:add-obsfucated-username-to-email

Conversation

@bed42
Copy link
Copy Markdown
Contributor

@bed42 bed42 commented Mar 18, 2025

I run icloudpd for multiple iCloud accounts and it's nicer to know which account needs 2fa redone in the email notification itself, rather than having to try and figure it out. This change just adds the email user in an obfuscated manner ie a****w@icloud.com:

Hello,

a****w@icloud.com's two-step authentication has expired for the icloud_photos_downloader script.
Please log in to your server and run the script manually to update two-step authentication.

…email about 2sa authentication failing, for when an installation is configured for multiple icloud accounts.
@AndreyNikiforov
Copy link
Copy Markdown
Collaborator

Thanks for the change. I understand the use case of maintaining icloudpd for multiple appleids and receiving notification on one email address only (and, subsequently, the need to disambiguate account). However, I do not understand the need to obfuscate appleid - notification is sent to email that already has access to all those appleid, so hiding has no value. Am I missing anything?

@bed42
Copy link
Copy Markdown
Contributor Author

bed42 commented Mar 18, 2025 via email

@AndreyNikiforov
Copy link
Copy Markdown
Collaborator

Just over pre-cautious I guess, as I consider email addresses to be Personally Identifiable Information and email itself to be an insecure medium. Happy to remove if you think it’s too much :)

We are using email addresses (PII) to identify accounts already disclosed to the recipient of the notification. Obfuscating will make this use case only partially solved and will adds to maintenance, while value of added security is minuscule if any imo.

I checked that Azure notification are including email addresses used for account identification, so there is a precedent.

Let remove obfuscation until we find actual use case for it.

@bed42
Copy link
Copy Markdown
Contributor Author

bed42 commented Mar 20, 2025

fair evaluation, good thinking checking somewhere like Azure 🤘 Updated.

@bed42 bed42 changed the title feature: the obfuscated icloud email username is now included in the email about 2sa authentication failing feature: the icloud email username is now included in the email about 2sa authentication failing Mar 21, 2025
@AndreyNikiforov AndreyNikiforov merged commit e21ea8f into icloud-photos-downloader:master Mar 30, 2025
372 checks passed
rhoopr referenced this pull request in rhoopr/kei Feb 8, 2026
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