logoalt Hacker News

tptacektoday at 2:24 AM2 repliesview on HN

You do what you can. Eliminating long-lived keys isn't always possible; you set up rotation instead.


Replies

nightpooltoday at 6:57 AM

I disagree, I think increasing manual toil (having to log into Sentry every 6 months to put in a new Jira token) increases fatigue substantially for, in this case, next-to-no security benefit (Sentry never actually has any less access to Jira than it does in the long-lived token case, and any attacker who happens to compromise them is going to be gone well before six months is up anyway).

Instead, the right approach in this case is to worry less about the length of the token and more about making sure the token is properly scoped. If Sentry is only used for creating issues, then it should have write-only access, maybe with optional limited access to the tickets it creates to fetch status updates. That would make it significantly less valuable to attackers, without increasing manual toil at all, but I don't know any SaaS provider (except fly, of course) that supports such fine-grained tokens as this. Moving from a 10 year token to a 6 month token doesn't really move the needle for most services.

show 1 reply
datadrivenangeltoday at 5:03 AM

Does having to refresh the key every 6 weeks instead of every year or whatever actually make a meaningful difference security-wise?

show 3 replies