Open mrueg opened 2 years ago
I tried to add a simple solution for this in https://github.com/zalando/go-keyring/pull/83
Can someone using kwallet try it out and report back whether this works or not?
Heh, #83 looked similar to my initial attempt as well. Unfortunately it did not work, as you need to prepare, handle and manage keys for DH. Here's an implementation: https://github.com/mvdan/bitw/blob/438196b7e8f07113742d2c5b3c2498f3f3638df8/dbus.go#L93
FWIW KDE/KWallet folks are working on supporting plain here: https://invent.kde.org/frameworks/kwallet/-/merge_requests/35
As of now, go-keyring only supports "plain" to transfer secrets. It would be nice if go-keyring would support dh-ietf1024-sha256-aes128-cbc-pkcs7 as well as defined in here: https://specifications.freedesktop.org/secret-service/latest/ch07s03.html
Further context: https://github.com/zalando/go-keyring/pull/66#issuecomment-1227051625