feat: add callout to discourage security research#19855
Conversation
Signed-off-by: Mike Fiedler <miketheman@gmail.com>
Signed-off-by: Mike Fiedler <miketheman@gmail.com>
0c63d40 to
20e7e7b
Compare
|
@miketheman - wondering what this looks like as part of the overall registration flow? Could we instead introduce a registration field that asks the user why they are setting up their account? Something like: Then if the user selects "Security research" then we hit them with this? |
|
This is a good point. However, I was thinking that we have forgotten about two popular abuses that are not limited to the security research:
I think that an alternative to selective displaying the message could be adding a point about them, and maybe going from red to yellow frame wit black text, to indicate it's a preventive warning instead of hit in a face? 😅 |
I intended to place this right above the "submit" button at the bottom of the registration page to make it very apparent. On the adding a selection box, maybe? In my emails with some folks, they don't consider what they are doing to be "Security research" - so maybe that's part of it. I often get a "but it's authorized by Company A!" - which doesn't matter here. They may also state "it's not research, it's actually a supply chain attack simulation" 😮💨 So I'm dubious that adding a selector would move the needle, but am happy to entertain it. A challenge with that approach is that then we should probably store that selected data somewhere, which makes this implementation harder than a big callout block.
Thanks for noting those cases - absolutely should be added. I used the |
|
I was thinking about the flow and other use cases. I believe the purpose selection won't work (for reasons you mentioned), and I'm more and more in the direction of "making it applicable for everyone". And as part of that, I'd suggest one more change: instead of I assert that I will not use this account for security research or testing., maybe go in the direction of just I agree to respect PyPI's Terms of Service and Acceptable Use Policy. It's not an uncommon pattern to have such agreement explicitly, it still draws attention to additional explanations of the AUP, and should make it less strange for people who use PyPI for genuine use cases. |
We already have a line on the registration page:
I like the idea of echoing that as a checkbox with links, and would expand to:
|

Signed-off-by: Mike Fiedler miketheman@gmail.com