go-passbolt-cli icon indicating copy to clipboard operation
go-passbolt-cli copied to clipboard

V5 Encrypted Metadata Support - Error: Creating Resource: Creating Resource: Error API JSON Response La création/modification de ressource avec des métadonnées en clair n'est pas autorisée

Open Bbertatum opened this issue 5 months ago • 1 comments

Hi, I think it's not a bug much more a feature,

We were using passbolt cli to insert items like this :

passbolt create resource --name "machine - ssh - user" --username "user" --uri "ssh://user@machine" --password "password" -f "df4e896b-8d7f-49da-b3fa-2ff614546760"

This was working before, but now the command give this error :

Error: Creating Resource: Creating Resource: Error API JSON Response Status: Message: La création/modification de ressource avec des métadonnées en clair n'est pas autorisée., Body: ""

The version used is the last one : passbolt version 0.3.2 (Built on 2025-03-04T16:28:33Z from Git SHA 43cc96a43d61085634dca5c87b4cc49ed83e4afe)

**Passbolt Server Version **

  • Edition: PRO
  • Version 5.2.0

So the question is : what's the workaround to put information in the command to be accepted by the server (maybe crypt password before paassing to command, or add some items missing ?) ?

Thanks for your support,

Bbertatum avatar Jul 04 '25 10:07 Bbertatum

Hi, the Problem is v5 Encrypted metadata Support. Currently the CLI is incompatible with Resources which have encrypted metadata.

V5 Encrypted Metadata Supported is being worked on in my free time over in https://github.com/passbolt/go-passbolt/issues/23 .

For now the Workaround is to re enable v4 Resources (Cleartext Metadata) for creation in your servers settings:

Image

If you also want listing/modifying Resources to work then you need to disable The Encrypted Metadata Entirely and Migrate back the Resources.

I hope i can get Encrypted Metadata across the finish line in a secure fashion soon.

speatzle avatar Jul 04 '25 10:07 speatzle