I’m working on a project that I think secret-tool would help a lot. The problem is that I have yet to figure out how to get it to return any of the test data I’ve added to my keyring.
My goal is to add a secret via seahorse (so it becomes available when I log in), and then use that secret in any scripts I write that need it.
If I use Seahorse and add a “password” with a description of “cake” to the Login keyring, then search for it, I can’t find it. (Oddly it gets added as a “stored note”, if that is relevant.)
$ secret-tool search --all --unlock Description cake
$ secret-tool search --all --unlock description cake
$ secret-tool search --all --unlock label cake
$ secret-tool search --all --unlock Label cake
$ secret-tool lookup Description cake
$ secret-tool lookup description cake
$ secret-tool search --all Description cake
$ secret-tool search --all description cake
$ secret-tool search --all label cake
$ secret-tool search --all Label cake
$ secret-tool search --all Login cake
$ secret-tool search Login cake
$ secret-tool search description cake
$ secret-tool search Description cake
To complicate matters I have not found any information on what in Seahorse actually maps to an “attribute” in secret-tool. I even tried reading the secret-tool source code (C isn’t my forte, but I at least have written a hello world in it) in Gitlab, as well as looking at the bash test scripts that were in the same directory.
Are my search skills just failing me and there’s an obvious guide out there I missed?
Or maybe someone could explain it here?
Thanks in advance!