the idea is good, I don’t know how to use the parameter in the RPC system. However, it may be better, if suitable, to make a RPC for each kind of password you want to query, otherwise you could just crawl the entire vault through RPC mechanisms due to the parameter. There would be a user confirmation of course, but I don’t know if that GUI shows you which password is requested.
I like the idea, especially if you have “sys-vpn” as a disposable… but after pondering it, what happens is: once you run “wg set CONN_NAME private-key” the private key will be present and readable on sys-vpn. So the security impact is minimal during run-time.
I may be missing something though
EDIT: minimal sys-vpn template, no password-less root → IT WORKS.