granted credentials list fails with "The specified item could not be found in the keyring" while stored credentials remain retrievable
#967
Unanswered
brianhelba
asked this question in
Issue Triage
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Issue Description
granted credentials listexits with an error on my Linux setup, even though the IAM user credentials it should list are stored and fully usable:credential_processretrieval for every stored profile works (verified withaws sts get-caller-identityfor each one).The command fails with:
Environment detail that may be relevant: Granted is configured with the
secret-servicebackend andLibSecretCollectionName = "login". That gnome-keyring collection is shared with other desktop applications, but all Granted items were created viagranted credentials import. The other items include secrets from browsers, Slack, gh, and other tools.I searched existing Issues and Discussions before posting. Issues #844 and #781 show the same error text, but both concern IAM Identity Center token retrieval during
assume/credential-process, notcredentials list, and both are closed. I found no existing report for thecredentials listcase.Expected Behavior
The command prints the profile names of the IAM user credentials in secure storage, matching its usage text: "Lists the profile names for credentials in secure storage".
Actual Behavior
The command prints
[✘] The specified item could not be found in the keyringand exits 1. No profile names are printed.The stored credentials themselves are unaffected:
AWS_PROFILE=<name> aws sts get-caller-identitysucceeds for all profiles via theircredential_processconfig entries.Reproduction Steps
secret-servicebackend and the defaultlogincollection (see config below). Thelogincollection also contains secrets stored by other applications (browsers, etc.), as is normal on a desktop system.granted credentials import personal— succeeds.AWS_PROFILE=personal aws sts get-caller-identity— succeeds.granted credentials list.Granted Logs
Granted Version
OS Version Information
CachyOS Linux (Arch-based, rolling), kernel 7.1.6, gnome-keyring 50.0
Minimal Granted & AWS Config Configuration
Additional Relevant Configuration
aws-cli 2.34.32. The credentials were imported with
granted credentials import <profile>from a standard~/.aws/credentialsfile; the import reported success and removed the plaintext entries.granted credentials listhas failed consistently since, while credential retrieval keeps working.I acknowledge that:
```) on separate lines.All reactions