Hi! In a "normal" emacs session (no `-Q`) with your new verison of `auth-info-password`, I was asked for a label but not for a password. In my `*Messages*` buffer I see:
```
Tramp: Sending command ‘exec env SUDO_PROMPT=P""a""s""s""w""o""r""d"": sudo -u root -s -H /bin/sh -i’
Tramp: Sending Password
Secret Service session: /org/freedesktop/secrets/session/s67
auth-source-search: found 0 results (max 1) matching (:max 1 :user "ethan" :host "black-diamond" :port "sudo" :require (:secret :user) :create t)
auth-source-search: found 1 results (max 1) matching (:max 1 :host "black-diamond" :port "sudo")
imenu unavailable: "imenu unavailable", "This buffer cannot use ‘imenu-default-create-index-function’" [3 times]
auth-source-search: CREATED 1 results (max 1) matching (:max 1 :user "ethan" :host "black-diamond" :port "sudo" :require (:secret :user) :create t)
```
Both mine and yours have a search with `:host` and `:port` but no `:user`, which is the behavior I'm trying to inquire about. For `sudo`, that seems like it might be OK, but for `ssh`, that seems very strange?
No secret was created for `ethan@black-diamond` so far as I can tell. (I'm not sure about "GNOME Remote Desktop RDP credentials" -- that's new but I doubt it's related.)
```
(secrets-list-items "Login")
("Password for '' on 'gh:
github.com'" "root@black-diamond" "Github API key for forge" "root@black-diamond" "GNOME Remote Desktop RDP credentials")
```
In `emacs -Q`, I tried loading the new version of `auth-info-password` but I'm not sure I did it right. I did the following in `*scratch*`:
```
(setq auth-sources (cons "secrets:Login" auth-sources))
("secrets:Login" "~/.authinfo" "~/.authinfo.gpg" "~/.netrc")
(setq auth-source-debug t
auth-source-save-behavior 'ask
secrets-debug t)
t
(defun auth-info-password (auth-info)
"Return the :secret password from the AUTH-INFO."
(let ((secret (plist-get auth-info :secret)))
(while (functionp secret)
(setq secret (funcall secret)))
secret))
auth-info-password
```
... then C-x C-f /sudo:: RET. This time I was asked for a password for `ethan@black-diamond` but no label. No entry was created in my Login secrets here either. The only relevant line in `*Messages*` is `Tramp: Opening connection nil for root@black-diamond using sudo...done`. I'm guessing I did something wrong, probably around lazy loading of modules. Happy to try more things though!
Ethan