> If you assume that someone is constantly trying to guess a key or password, the likelihood that they guess correctly grows over time. If they can brute force the password or key, the rotation will, at best, force them to do it multiple times. You'll see more improvement from just adding another couple of characters to the length.
You don't want long-lived keys
11–20 of 65 posts
Re: You don't want long-lived keys
#12My private SSH key is rooted in hardware and can't even be extracted. This is awesome, I don't have to worry about it getting compromised.
The same should apply to all other keys, including the dreaded "bearer tokens".
Re: You don't want long-lived keys
#131. How key is used
2. Whats the threat vector
3. Cost of key rotation
4. Cost of key verification
At the end of the day its a trade off, the business use case, your expertise and the risk have to be evaluated together
Re: You don't want long-lived keys
#14On the contrary. We want long-lived keys. As long as they are not symmetric! My private SSH key is rooted in hardware and can't even be extracted. This is awesome, I don't have to worry about it getting compromised. The same should apply to all other keys, including the dreaded "bearer tokens".
Re: You don't want long-lived keys
#15On the contrary. We want long-lived keys. As long as they are not symmetric! My private SSH key is rooted in hardware and can't even be extracted. This is awesome, I don't have to worry about it getting compromised. The same should apply to all other keys, including the dreaded "bearer tokens".
I’m sorry to be pedantic, that’s not exactly true. I agree in the sense that extracting hw based keys is next to impossible, but if your machine is compromised, there isn’t much stopping malware from using your hw based key (assuming 1. Left plugged in, 2. Unlocked with either ssh-agent or gpg-agent, and 3. You don’t have touch to auth turned on). Reduced risk? Absolutely. No risk? Absolutely not.
It still would be a good idea just to make sure that it's easier to analyze logs, but it's not strictly needed.
Re: You don't want long-lived keys
#16On the contrary. We want long-lived keys. As long as they are not symmetric! My private SSH key is rooted in hardware and can't even be extracted. This is awesome, I don't have to worry about it getting compromised. The same should apply to all other keys, including the dreaded "bearer tokens".
I’m sorry to be pedantic, that’s not exactly true. I agree in the sense that extracting hw based keys is next to impossible, but if your machine is compromised, there isn’t much stopping malware from using your hw based key (assuming 1. Left plugged in, 2. Unlocked with either ssh-agent or gpg-agent, and 3. You don’t have touch to auth turned on). Reduced risk? Absolutely. No risk? Absolutely not.
Re: You don't want long-lived keys
#17Okay but now how do you recommend I hook up my Sentry instance to create tickets in Jira, now that Jira has deprecated long-lived keys and I have to refresh my token every 6 weeks or whatever. It needs long-lived access . Whether that comes in the form of a OAuth refresh token or a key is not particularly interesting or important, IMO.
Re: You don't want long-lived keys
#18On the contrary. We want long-lived keys. As long as they are not symmetric! My private SSH key is rooted in hardware and can't even be extracted. This is awesome, I don't have to worry about it getting compromised. The same should apply to all other keys, including the dreaded "bearer tokens".
I’m sorry to be pedantic, that’s not exactly true. I agree in the sense that extracting hw based keys is next to impossible, but if your machine is compromised, there isn’t much stopping malware from using your hw based key (assuming 1. Left plugged in, 2. Unlocked with either ssh-agent or gpg-agent, and 3. You don’t have touch to auth turned on). Reduced risk? Absolutely. No risk? Absolutely not.
Re: You don't want long-lived keys
#19On the contrary. We want long-lived keys. As long as they are not symmetric! My private SSH key is rooted in hardware and can't even be extracted. This is awesome, I don't have to worry about it getting compromised. The same should apply to all other keys, including the dreaded "bearer tokens".
There are several options for setting up per-connection keys that are dispensed to users through the company SSO. That setup means you don't need to maintain separate infrastructure for (de-)provisioning SSH keys.
Re: You don't want long-lived keys
#20On the contrary. We want long-lived keys. As long as they are not symmetric! My private SSH key is rooted in hardware and can't even be extracted. This is awesome, I don't have to worry about it getting compromised. The same should apply to all other keys, including the dreaded "bearer tokens".
Part of the threat model for an Engineering team is that people come and go. They move teams which have different levels of access. They leave the organization, in most cases, on good terms. I want to set up infrastructure where I don't need to remember that your SSH pubkey is baked into production configuration after you leave the company. There are several options for setting up per-connection keys that are dispens…
The target machines then just need to put the CA cert in the authorized_keys files.