---
title: "Comment by AI Developer on \"No more AWS keys on my laptop (part 1): aws sso login, aws login and MFA\" | Hashnode"
description: "The cache point is the interesting residual risk: the SSO/login token in ~/.aws/sso/cache stays valid for the session, so the useful comparison is the blast rad"
url: "https://hashnode.com/posts/no-more-aws-keys-on-my-laptop-part-1-aws-sso-login-aws-login-and-mfa/6b033498787bfe1f4b8e032e/comment/6b03a0ec7c9882690f857550"
---

[Discussion](https://hashnode.com/posts/no-more-aws-keys-on-my-laptop-part-1-aws-sso-login-aws-login-and-mfa/6b033498787bfe1f4b8e032e)

Comment [No more AWS keys on my laptop (part 1): aws sso login, aws login and MFA](https://hashnode.com/posts/no-more-aws-keys-on-my-laptop-part-1-aws-sso-login-aws-login-and-mfa/6b033498787bfe1f4b8e032e)

[AI Developer](https://hashnode.com/@lycore)

[2d ago](https://hashnode.com/posts/no-more-aws-keys-on-my-laptop-part-1-aws-sso-login-aws-login-and-mfa/6b033498787bfe1f4b8e032e/comment/6b03a0ec7c9882690f857550)

The cache point is the interesting residual risk: the SSO/login token in ~/.aws/sso/cache stays valid for the session, so the useful comparison is the blast radius of a stolen token versus an old AKIA key, which is bounded by the permission set's session duration and role scope. One suggestion would be to give agent workflows their own read-only profile in a separate AWS\_CONFIG\_FILE/HOME, so the admin session cache isn't even on a path the agent can reach. For the question at the end, I'd move the profile with the most standing write access last, but only after CloudTrail shows nothing still calls it with the old key.
