Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v7.0.0-rc1 ] aws-vault: error: clear: Keychain Error. (-25244) #1157

Closed
FernandoMiguel opened this issue Feb 22, 2023 · 22 comments
Closed

[v7.0.0-rc1 ] aws-vault: error: clear: Keychain Error. (-25244) #1157

FernandoMiguel opened this issue Feb 22, 2023 · 22 comments
Labels

Comments

@FernandoMiguel
Copy link
Collaborator

$ ~/Desktop/aws-vault-v7.0.0-rc1 clear --debug
2023/02/22 12:23:49 aws-vault v7.0.0-rc1
2023/02/22 12:23:49 [keyring] Considering backends: [keychain]
2023/02/22 12:23:49 Loading config file /Users/fernando/.aws/config
2023/02/22 12:23:49 Parsing config file /Users/fernando/.aws/config
2023/02/22 12:23:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/22 12:23:49 [keyring] Found 2 results
2023/02/22 12:23:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/22 12:23:49 [keyring] Found 2 results
2023/02/22 12:23:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/22 12:23:49 [keyring] Found 2 results
2023/02/22 12:23:49 [keyring] Removing keychain item service="aws-vault", account="sso.GetRoleCredentials,XXXX,XXXX", keychain "aws-vault.keychain"
aws-vault: error: clear: Keychain Error. (-25244)
@mtibben
Copy link
Member

mtibben commented Feb 25, 2023

Hey @FernandoMiguel I can't reproduce this. Is there any further information you could provide?

@FernandoMiguel
Copy link
Collaborator Author

I had a previous session from the day before created by the stable version.
So I used clear with v7 to be sure they would not clash and this happened.

@mtibben
Copy link
Member

mtibben commented Feb 26, 2023

Anything details you can provide that would allow me to reproduce? Step-by-step instructions? Can you reproduce this?

@FernandoMiguel
Copy link
Collaborator Author

No more details than this.
I'll try to repro tomorrow (and Tuesday, so there are expired sessions).

@FernandoMiguel
Copy link
Collaborator Author

FernandoMiguel commented Feb 27, 2023

this is all i have.
hth

$ ~/Desktop/aws-vault-v7.0.0-rc1 clear --debug
2023/02/27 10:32:36 aws-vault v7.0.0-rc1
2023/02/27 10:32:36 [keyring] Considering backends: [keychain]
2023/02/27 10:32:36 Loading config file /Users/fernando/.aws/config
2023/02/27 10:32:36 Parsing config file /Users/fernando/.aws/config
2023/02/27 10:32:36 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:36 [keyring] Found 3 results
2023/02/27 10:32:36 [keyring] Removing keychain item service="aws-vault", account="sso.GetRoleCredentials,xxx,xxx", keychain "aws-vault.keychain"
2023/02/27 10:32:38 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:38 [keyring] Found 2 results
2023/02/27 10:32:38 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:38 [keyring] Found 2 results
2023/02/27 10:32:38 [keyring] Removing keychain item service="aws-vault", account="sso.GetRoleCredentials,xxx,xxx", keychain "aws-vault.keychain"
aws-vault: error: clear: Keychain Error. (-25244)


$ ~/Desktop/aws-vault-v7.0.0-rc1 list --debug
2023/02/27 10:32:49 aws-vault v7.0.0-rc1
2023/02/27 10:32:49 [keyring] Considering backends: [keychain]
2023/02/27 10:32:49 Loading config file /Users/fernando/.aws/config
2023/02/27 10:32:49 Parsing config file /Users/fernando/.aws/config
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 Unrecognised ini file section: DEFAULT
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
2023/02/27 10:32:49 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:32:49 [keyring] Found 2 results
Profile                  Credentials              Sessions
=======                  ===========              ========
default                  -                        -
parent                   -                        -
XXX-dev                   -                        sso.GetRoleCredentials:11h46m21s
XXX-preprod               -                        -
XXX-prod                  -                        -
XXX-dev   -                        -
XXX-backups              -                        -
XXX-dev                  -                        -
XXX-prod                 -                        -
XXX-networking           -                        -
XXX-prod              -                        -
XXX-dev-legacy            -                        -
XXX-dev-new               -                        -
XXX                  -                        -
XXX                   -                        -
XXX-legacy           -                        -
XXX-new              -                        -
XXX                     -                        -
XXX               -                        -
XXX-dev                -                        -
XXX-logging            -                        -
XXX-prod               -                        -
XXX-security           -                        -
XXX-dev                   -                        -
XXX-dev                   -                        -
XXX         -                        -
XXX-prod                  -                        -
XXX                   -                        -
XXX-dev            -                        -
XXX-security  -                        -
XXX-logging   -                        -
XXX-prod           -                        -
XXX-archive       -                        -
XXX       -                        -
XXX          -                        -
XXX-dev-legacy            -                        -
XXX-dev-new               -                        -
XXX                    -                        -
XXX-prod                  -                        -
-                        -                        oidc:https://XXX.awsapps.com/start



$ aws-vault clear --debug
2023/02/27 10:33:17 aws-vault v6.6.2
2023/02/27 10:33:17 [keyring] Considering backends: [keychain]
2023/02/27 10:33:17 Loading config file /Users/fernando/.aws/config
2023/02/27 10:33:17 Parsing config file /Users/fernando/.aws/config
2023/02/27 10:33:17 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:33:17 [keyring] Found 2 results
2023/02/27 10:33:17 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:33:17 [keyring] Found 2 results
2023/02/27 10:33:17 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:33:17 [keyring] Found 2 results
2023/02/27 10:33:17 [keyring] Removing keychain item service="aws-vault", account="sso.GetRoleCredentials,XXX,XXX,1677536351", keychain "aws-vault.keychain"
2023/02/27 10:33:17 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 10:33:17 [keyring] Found 1 results
2023/02/27 10:33:17 [keyring] Removing keychain item service="aws-vault", account="oidc:https://XXXX.awsapps.com/start", keychain "aws-vault.keychain"
Cleared 2 sessions.

@philcruz
Copy link

philcruz commented Feb 27, 2023

I just started getting this keychain error as well. I'm on v6.6.0

aws-vault list --debug
2023/02/27 07:49:06 aws-vault v6.6.0
2023/02/27 07:49:06 [keyring] Considering backends: [keychain]
2023/02/27 07:49:06 Loading config file /Users/phil/.aws/config
2023/02/27 07:49:06 Parsing config file /Users/phil/.aws/config
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 Unrecognised ini file section: DEFAULT
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
2023/02/27 07:49:06 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/27 07:49:06 [keyring] Found 6 results
Profile                  Credentials              Sessions
=======                  ===========              ========
steampipe_temp           -                        -
is-master                -                        -
shared-services          -                        sso.GetRoleCredentials:-84h56m1s
security                 -                        -
logs                     -                        -
dx-web-dev               -                        -
dx-web-prod              -                        -
is-web-dev               -                        -
is-web-prod              -                        -
gp-prm-dev               -                        -
gp-web-dev               -                        -
gp-web-stage             -                        -
gp-web-prod              -                        sso.GetRoleCredentials:-83h55m38s
sg-web-dev               -                        -
sg-web-stage             -                        -
sg-web-prod              -                        sso.GetRoleCredentials:-84h50m5s
gn-web-dev               -                        -
gn-web-stage             -                        -
gn-web-prod              -                        -
om-web-dev               -                        -
om-web-prod              -                        -
xxx-dns-admin     -                        -
xxx-dev             -                        -
is-signin                is-signin                -
xxx               xxx               -
sg-sentry                -                        -
-                        -                        oidc:https://xxx.awsapps.com/start

@mtibben
Copy link
Member

mtibben commented Feb 27, 2023

Keychain error 25244 is errSecInvalidOwnerEdit. So it's claiming a different app created the keychain item vs the app trying to delete the keychain item.

I'm not exactly sure how this could occur. Does this occur between aws-vault releases? Or have you compiled aws-vault yourself? Or perhaps have you used the homebrew (non cask) version of aws-vault that does not sign the binary.

@FernandoMiguel
Copy link
Collaborator Author

Right...
Stable release is brew and beta is downloaded from github.

@mtibben
Copy link
Member

mtibben commented Feb 27, 2023

brew or brew cask?

what does aws-vault --version give you for each binary you're using?

@FernandoMiguel
Copy link
Collaborator Author

Not at the computer at the moment but this is my brewfile
https://github.com/FernandoMiguel/kb/blob/49296bf49529a9047baa7a6312af570e4672fe85/MacOS/Brewfile#L151

Sounds like cask

@philcruz
Copy link

I have brew-installed aws-vault and it's at v6.6.0. I just started to play around with https://www.jetpack.io/devbox/ which allows you to install cli tools among other things it does and uses nix under the hood. That is using v6.6.2.

So it seems like I just need to stick with one or the other.

@FernandoMiguel
Copy link
Collaborator Author

BTW the versions show up in the debug log of the output above

@mtibben
Copy link
Member

mtibben commented Feb 27, 2023

BTW the versions show up in the debug log of the output above

yeah this shows the v7 you're using is downloaded from github releases, but doesn't show exactly what v6 version you were using

@FernandoMiguel
Copy link
Collaborator Author

$ aws-vault --version
v6.6.2

@FernandoMiguel
Copy link
Collaborator Author

i'm in a worst place now, where both stable and RC cant clear the existing sessions, and now i cant create new ones :(


$ ~/Desktop/aws-vault-v7.0.0-rc2 clear --debug
2023/02/28 10:42:19 aws-vault v7.0.0-rc2
2023/02/28 10:42:19 [keyring] Considering backends: [keychain]
2023/02/28 10:42:19 Loading config file /Users/fernando/.aws/config
2023/02/28 10:42:19 Parsing config file /Users/fernando/.aws/config
2023/02/28 10:42:19 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/28 10:42:19 [keyring] Found 3 results
2023/02/28 10:42:19 [keyring] Removing keychain item service="aws-vault", account="sso.GetRoleCredentials,XXXX,XXXX,1677537221", keychain "aws-vault.keychain"
2023/02/28 10:42:19 Error while deleting old session: Keychain Error. (-25244)
2023/02/28 10:42:19 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/28 10:42:19 [keyring] Found 3 results
2023/02/28 10:42:19 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/28 10:42:19 [keyring] Found 3 results
2023/02/28 10:42:19 [keyring] Removing keychain item service="aws-vault", account="sso.GetRoleCredentials,XXXX,XXXX,1677537221", keychain "aws-vault.keychain"
aws-vault: error: clear: Keychain Error. (-25244)

$ aws-vault clear --debug
2023/02/28 10:42:26 aws-vault v6.6.2
2023/02/28 10:42:26 [keyring] Considering backends: [keychain]
2023/02/28 10:42:26 Loading config file /Users/fernando/.aws/config
2023/02/28 10:42:26 Parsing config file /Users/fernando/.aws/config
2023/02/28 10:42:26 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/28 10:42:26 [keyring] Found 3 results
2023/02/28 10:42:26 [keyring] Removing keychain item service="aws-vault", account="sso.GetRoleCredentials,XXXX,XXXX,1677537221", keychain "aws-vault.keychain"
2023/02/28 10:42:26 Error while deleting old session: Keychain Error. (-25244)
2023/02/28 10:42:26 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/28 10:42:26 [keyring] Found 3 results
2023/02/28 10:42:26 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/02/28 10:42:26 [keyring] Found 3 results
2023/02/28 10:42:26 [keyring] Removing keychain item service="aws-vault", account="sso.GetRoleCredentials,XXXX,XXXX,1677537221", keychain "aws-vault.keychain"
aws-vault: error: clear: Keychain Error. (-25244)

@FernandoMiguel
Copy link
Collaborator Author

I've opened the vault with apple's keychain app and deleted the sessions manually and now i'm back in business...

@mtibben
Copy link
Member

mtibben commented Feb 28, 2023

Odd... I've tried reproducing this by using different versions of aws-vault, but cannot reproduce

@FernandoMiguel
Copy link
Collaborator Author

anyway i can help?
also this
image

@mtibben
Copy link
Member

mtibben commented Feb 28, 2023

Yes, step by step instructions on how to reproduce would be ideal 😄

@philcruz
Copy link

I've opened the vault with apple's keychain app and deleted the sessions manually and now i'm back in business...

@FernandoMiguel Could you clarify how you did this? I tried to find them in keychain and I couldn't.

@FernandoMiguel
Copy link
Collaborator Author

@mtibben i really wish there were more to this but it is literally running those commands in iterm2

@philcruz open keychain, File > Add Keychain, click Vault
image
took me a while too, since it is no longer open by default

@github-actions
Copy link

github-actions bot commented Sep 3, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Sep 3, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants