infisical
infisical copied to clipboard
Failed to create secret on self-hosted server
Describe the bug
I built a self-hosted server using the Infisical Helm chart, and it's currently at version 0.4.2. During the upgrade process to the standalone chart 1.0.8, I successfully migrated from MongoDB to PostgreSQL by following the documentation, and all the secrets were transferred correctly.
However, when trying to create a secret, I'm getting an error message saying "Failed to create secret," and the Infisical backend server logs show the following message. What could be the problem?
{"level":50,"time":1722246206462,"pid":1,"hostname":"infisical-shelley-infisical-standalone-infisical-5dfd79c77brkwf","reqId":"req-7b","severity":"ERROR","req":{"method":"POST","url":"/api/v3/secrets/TEST","hostnam
e":"127.0.0.1:9999","remoteAddress":"127.0.0.1","remotePort":39026},"res":{"statusCode":500},"err":{"type":"Error","message":"Unsupported state or unable to authenticate data","stack":"Error: Unsupported state or u
nable to authenticate data\n at Decipheriv.final (node:internal/crypto/cipher:193:29)\n at decryptSymmetric128BitHexKeyUTF8 (file:///backend/dist/lib/crypto/encryption.mjs:50:25)\n at buildSecretBlindIndex
FromName (file:///backend/dist/lib/crypto/encryption.mjs:87:12)\n at generateSecretBlindIndexBySalt (file:///backend/dist/services/secret/secret-fns.mjs:10:34)\n at file:///backend/dist/services/secret/secret
-service.mjs:127:87\n at Array.map (