passbolt / go-passbolt-cli

A CLI tool to interact with Passbolt, a Open source Password Manager for Teams
https://passbolt.com
MIT License
60 stars 14 forks source link

export to keepass with user + password + TOTP not possible #42

Closed frankdox closed 5 months ago

frankdox commented 6 months ago

Describe the bug: after using the new TOTP feature in passbolt the export to keepass is no longer possible

To Reproduce:

  1. use credentials with TOTP entry
  2. start passbolt export keepass

Output Error: Get Resource 62, bbbbbbbb-cccc-1111-8a8a-badeaffe032 Unknown ResourceType: password-description-totp

Passbolt Server Version (please complete the following information):

go-passbolt-cli Version (please complete the following information):

Additional context

speatzle commented 6 months ago

Hi, currently go-passbolt-cli does not support passwords with a TOTP, i have started the work to support TOTP Resources in go-passbolt a while ago https://github.com/passbolt/go-passbolt/commit/8dbb07720dbbb76a099d97d151c385514e251705 but haven't had the Time to finish it up in go-passbolt-cli since it needs a bunch of new functionality to display and modify them, ill see if i can add basic support for the Resource Type soon but can't Promise anything.

speatzle commented 6 months ago

Hi @frankdox I have made a PR which has Support for TOTP Export and Skipping Resources on Error, If you can please pull the branch, compile and Test if it works for you, i have been able to see one of my TOTP's in KeepassXC from a exported Keepass File.

frankdox commented 5 months ago

Hi @speatzle,

i have compiled this branch an tested it successfully in KeepassXC an Strongbox (both OSX) with over 1000 creds. Thank you for your support.

🥇

speatzle commented 5 months ago

Perfect Ill add a few other things and make a new release soon.

speatzle commented 5 months ago

Hi, i just released v0.3.1 with these improvements.