News for hackers. Stuff that matters.
Re:Ask HN: What's the current sentiment on JWT for stateless... by ceejayoz on Friday December 13, 2019 @02:17PM (#21784452)
Sure, but that's the nuclear option. Imagine if Facebook did that every time one account was compromised or they fired a staffer?
Re:Ask HN: What's the current sentiment on JWT for stateless... by JMTQp8lwXL on Friday December 13, 2019 @02:21PM (#21784488)
Facebook as the largest userbase of any application in existence. Its needs may not equate to your needs. For example, an enterprise b2b app with a few hundred customers could probably "deal with" the nuclear option.
Re:Ask HN: What's the current sentiment on JWT for stateless... by TheFiend7 on Friday December 13, 2019 @02:24PM (#21784508)
Man I'm not sure I agree with that. Blowing up a bunch of your clients that rely on your services randomly because one account was compromised is not acceptable for really any professional business regardless of the number of clients.
Re:Ask HN: What's the current sentiment on JWT for stateless... by JMTQp8lwXL on Friday December 13, 2019 @02:26PM (#21784529)
"Blowing them up" is a mischaracterization of the situation. You are not mutating their data. You're only asking them to login again.
Re:Ask HN: What's the current sentiment on JWT for stateless... by SkyPuncher on Friday December 13, 2019 @05:12PM (#21786081)
Actually blowing them up is a completely appropriate description if you have any non-human's relying on JWTs.
Re:Ask HN: What's the current sentiment on JWT for stateless... by onion2k on Saturday December 14, 2019 @03:56AM (#21788536)
Applications that use authenticated services need to handle being the authentication being revoked. That's fairly obvious regardless of how it happens. If your app doesn't then it's broken.
Re:Ask HN: What's the current sentiment on JWT for stateless... by ceejayoz on Friday December 13, 2019 @02:23PM (#21784503)
I'd be pretty upset if I got kicked out of a work app every time one of a few hundred companies fired someone (or even had to do a password reset for a security reason).
Re:Ask HN: What's the current sentiment on JWT for stateless... by bingotips on Friday December 13, 2019 @07:11PM (#21786845)
A multi-tenant system could use a different key-pair for each tenant and only revoke the one for the compromised entity
Re:Ask HN: What's the current sentiment on JWT for stateless... by JMTQp8lwXL on Friday December 13, 2019 @02:25PM (#21784513)
You don't use a tool for managing your passwords? That's built into most browsers these days.
Re:Ask HN: What's the current sentiment on JWT for stateless... by ceejayoz on Friday December 13, 2019 @02:25PM (#21784523)
The issue is not remembering the password.

The issue is I just logged in 90 seconds ago, typed up a few paragraphs, and when I go to submit I have to do it again, because someone in another company using the tool got phished and needs a new password.

It's frustrating enough when Gmail makes me put my password in after 30 days and I just clicked into an email I wanted to read. Having it happen all day long would make me want to kill someone.

Re:Ask HN: What's the current sentiment on JWT for stateless... by JMTQp8lwXL on Friday December 13, 2019 @02:28PM (#21784549)
I wasn't suggesting mutating the signing key multiple times per day or once per 90 seconds. At that point, you might as well just have a very early JWT expiration timestamp specified.
Re:Ask HN: What's the current sentiment on JWT for stateless... by ceejayoz on Friday December 13, 2019 @02:33PM (#21784600)
The comment thread started with "if you need them to be revocable". Any tool with "a few hundred [enterprise] customers" needs to be able to revoke access for terminated employees, compromised accounts, and the like, and those revocations will occur frequently and in many cases need to have immediate impact.