passbolt_api icon indicating copy to clipboard operation
passbolt_api copied to clipboard

Encrypted Metadata Issue in 5.1.1

Open elquimista opened this issue 5 months ago • 1 comments

I upgraded from 5.0 to 5.1.1 (through docker - by simply changing image tag number in compose.yaml file). When I try to enable encrypted metadata feature in org settings, I get the following warning:

All encrypted metadata resource types were previously disabled. Re-enable them if you want users to create resources of this type.

I save the settings, and then go to migrate meatadata, click Migrate button (I created shared metadata encryption key of course) but then it says it encountered an unexpected error while migrating and it seems nothing changed.

And it doesn't allow me (and other users in my instance) to create the new type of credentials. When I try to create a new item, it shows "Others" which in turn shows a popup with "password (legacy)" and "totp (legacy)".

FYI, I know 5.2.0 is out officially now but I use passbolt through docker and docker hub does not have the tag for 5.2.0 released yet.

elquimista avatar Jun 11 '25 15:06 elquimista

Hello @elquimista,

This error occurs when the encrypted metadata resource types aren’t available—either because they’ve been disabled or aren’t present in the database.

  1. Please check Organization Settings > Allowed Content Types to make sure they’re listed.

  2. If not visible in 1. Does the API return them? Visit https://PASBBOLT_URI/resource-types.json. You should see resource types with slugs prefixed by v5.

  3. If not found with 2. Verify they exist in the database by running: SELECT id, slug FROM resource_types;

Note that Docker v5.2 is now available if you’d like to give it a try.

cedricalfonsi avatar Jun 13 '25 06:06 cedricalfonsi

I had to go to Organisation settings -> Content types -> Allow content types, and then uncheck and check Password and TOTP toggles under Encrypted metadata section. That did the trick.

elquimista avatar Jun 18 '25 16:06 elquimista