Ask HN: Articles about key rotation being worthless
1–8 of 8 posts
Re: Ask HN: Articles about key rotation being worthless
#2Re: Ask HN: Articles about key rotation being worthless
#3That's primarily an argument to rotate keys quicker - computers don't care that they have to remember new passwords all the time (which is the main argument against password change requirements: it encourages bad practices from users), so you can do schemes like OAuth2's Refresh Tokens. (and even slow-ish rotation helps with keys forgotten in random places)
Re: Ask HN: Articles about key rotation being worthless
#4That's primarily an argument to rotate keys quicker - computers don't care that they have to remember new passwords all the time (which is the main argument against password change requirements: it encourages bad practices from users), so you can do schemes like OAuth2's Refresh Tokens. (and even slow-ish rotation helps with keys forgotten in random places)
I completely agree. But even at 15 or 30 days, it's too long. The only way to protect a key would be to rotate it every day or every hour.
Re: Ask HN: Articles about key rotation being worthless
#5Earlier quoted context omitted.
I completely agree. But even at 15 or 30 days, it's too long. The only way to protect a key would be to rotate it every day or every hour.
It's steps. E.g. if it's every 15 days, it at least pushes you to the point of automating it (HOPEFULLY) and the app managing it internally - that already helps against stupid shit like "someone put it in code/pushed a config file/... to a repo that later got compromised". Similarly, every X months is still a gain over keys sticking around many years. But yes, at the same time, if you get to have a reliable automated…
Re: Ask HN: Articles about key rotation being worthless
#6Earlier quoted context omitted.
It's steps. E.g. if it's every 15 days, it at least pushes you to the point of automating it (HOPEFULLY) and the app managing it internally - that already helps against stupid shit like "someone put it in code/pushed a config file/... to a repo that later got compromised". Similarly, every X months is still a gain over keys sticking around many years. But yes, at the same time, if you get to have a reliable automated…
So, do you know of anyone that has written this type of thing up? I'd love to have some fodder when having these types of discussions. :)
Re: Ask HN: Articles about key rotation being worthless
#7Re: Ask HN: Articles about key rotation being worthless
#8Just rotate your damn keys. Easy this day with KMS, Vault etc