aws-vault: error: clear: Keychain Error. (-25244)
Freyert opened this issue · comments
- I am using the latest release of AWS Vault: 6.6.2-Homebrew
- I have provided my
.aws/config
(redacted if necessary) - I have provided the debug output using
aws-vault --debug
(redacted if necessary)
This is more of a workaround if anyone else runs into this issue.
❯ aws-vault ls
Profile Credentials Sessions
======= =========== ========
MY_PROFILE - sts.GetSessionToken:-594h51m12s
You can see that the session in the OSX Key Chain is very expired.
When I try to do aws-vault clear MY_PROFILE
I receive the error: aws-vault: error: clear: Keychain Error. (-25244)
.
ls ~/Library/Keychains/
to get a list of keychains.
security dump-keychain XXXX.keychain-db
to dump everything in the keychain.
security delete-generic-password -a 'NAME OF THE ACCOUNT FIELD TO DELETE' XXXX.keychain-db
. Deletes the specific session that is stuck.