Lurker News
Back to discussion

Comment by LtWorf

LtWorf2 replies#
As I said recently in a talk I gave, 2FA as implemented by pypy or github is meaningless, when in fact all actions are performed via tokens that never expire, that are saved inside a .txt file on the disk.
CapstanRoller2 replies#
Doesn't GH explicitly warn against using non-expiring tokens?
yrro#
I wonder what the point is, I don't remember GitHub warning me that I've used the se SSH key for years...
LtWorf#
And?
heyoni1 reply#
Passwords have full scope of permission while session tokens can be limited.
LtWorf1 reply#
In pypi to obtain a token that is limited in scope you must first generate an unlimited token.

True story.
In gh you can generate a limited one, but it's not really clear on what the permissions actually mean, so it's trial and error… which means most people will get tired and grant random stuff to have them working.

heyoni#
I didn’t know that about pypi but github has seemed ok to me. I’ve also implemented my own scoped authentication systems so even if they’re not perfect I know it can be done