-
Notifications
You must be signed in to change notification settings - Fork 1k
Email all owners when a new owner/maintainer is added #1000
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the great suggestion, @edmorley, and sorry for the slow response! This would be a useful security/audit feature, and in addition, we should also send an email notification to newly added collaborators. And now that we have better email management in Warehouse (just added in the past few weeks), it's far easier to add this feature. Today in our development meeting we discussed where this should go on our development roadmap. The most urgent task is to improve Warehouse to the point where we can redirect pypi.python.org to pypi.org so the site is more sustainable and reliable. Since this feature isn't something that the legacy site has, I've moved it to a future milestone. But that doesn't have to stop a volunteer from working on it now; if someone wants to write up a pull request for it, go ahead! Thanks and sorry again for the wait. |
I'd be interested to work on this. |
@Mariatta Yep, that's the right spot! I think we should break this up into two emails we send when a new collaborator is added:
|
- send the email to the newly added collaborator - send the email to other owners - email not sent to the person who added the collaborator Closes pypi#1000
Thanks! In #3155 I added the code to send email when a new collaborator has been added. Feel free to suggest different copy for the email. I have not addressed the part about emailing when a user removed from the project, or when the role changed (from Owner-> Maintainer, or vice versa). I think that should be done in a separate PR. |
- send the email to the newly added collaborator - send the email to other owners - email not sent to the person who added the collaborator Closes pypi#1000
- send the email to the newly added collaborator - send the email to other owners - email not sent to the person who added the collaborator Closes pypi#1000
) * Send email when a new collaborator has been added to the project. - send the email to the newly added collaborator - send the email to other owners - email not sent to the person who added the collaborator Closes #1000 * Remove prints * Make linter happy. * Added functionality to send email whenever primary email is changed (#3158) Addressed code reviews * - Send a separate welcome email to the new collaborator - Add owners emails in bcc field * PEP 8 * Fix linters errors * - Deindent - Add footer to email * Rebased with master * Fix broken unit test. * Fix linter error * PEP 8 * Actually send the email to bcc recipients
Thank you for implementing this @Mariatta! :-) |
To make account compromise more obvious, it would be great if all owners of a package were emailed when a new owner or maintainer was added to a package.
In addition, if a user is removed from a role, then that user should also be emailed (eg to prevent an attacker who has compromised one owner, from silently removing other owners of a package, prior to uploading a new malicious package, thereby circumventing #997).
The text was updated successfully, but these errors were encountered: