Qubes-pass (bash) completion

In my setup (bash) completion for passwords is unfortunately not possible with qvm-pass (nor pass, obviously) in the pass-manage qube.
In my password-store qube I can do bash-completion for passwords via the “normal” pass command in that qube, but that is not what I want, as I then could use pass instead of qubes-pass.
So, is it somehow possible to get completion in that qubes-pass setup working? I’ve set the qubes-pass to

ruddo.PassRead    *    pass-manage    pass-store    allow

to allow read requests without being asked for confirmation - but the completion unfortunately did not work.

Or is this technically not possible at all because every completion would need a separate qrexec call of the DomU pass-manage VM?

Which I couldn’t find an implementation/example of, as the existing bash completion scripts like Bash-completion for qubes commands - #2 by unman and Contents/code/productivity/qvm-cmds-bash-completion.bash at master · Qubes-Community/Contents · GitHub (the more up-to-date called script linked in there https://github.com/taradiddles/qubes-os-qvm-bash-completion gives me a 404 though) are only intended for qvm-* commands called in Dom0?!

Or do I have a misunderstanding of it?

I guess it’s possible to implement, you’ll have to create an RPC service for bash completion. You can configure the bash completion event in pass-manage to trigger the RPC service that will send the entered command that needs the completion, send it to pass-store, try to complete it there and send the result back to pass-manage to display.

1 Like