Budibase / budibase

Low code platform for building business apps and workflows in minutes. Supports PostgreSQL, MySQL, MariaDB, MSSQL, MongoDB, Rest API, Docker, K8s, and more 🚀
https://budibase.com
Other
21.78k stars 1.49k forks source link

Invalid initialization vector #14443

Closed Gp2mv3 closed 2 weeks ago

Gp2mv3 commented 2 weeks ago

Checklist

Hosting

Describe the bug When trying to login, I have an error "Invalid initialization vector".

Here is the stacktrace from the bbworker:

bbworker | {"level":"WARN","timestamp":"2024-08-24T10:11:02.738Z","service":"@budibase/worker","err":{"type":"TypeError","message":"Invalid initialization vector","stack":"TypeError: Invalid initialization vector\n at Decipheriv.createCipherBase (node:internal/crypto/cipher:121:19)\n at Decipheriv.createCipherWithIV (node:internal/crypto/cipher:140:3)\n at new Decipheriv (node:internal/crypto/cipher:289:3)\n at Object.createDecipheriv (node:crypto:155:10)\n at decrypt (/app/dist/index.js:135589:43)\n at checkApiKey (/app/dist/index.js:135719:21)\n at /app/dist/index.js:135793:50\n at dispatch (/app/node_modules/koa-compose/index.js:42:32)\n at /app/node_modules/@koa/router/lib/router.js:368:16\n at dispatch (/app/node_modules/koa-compose/index.js:42:32)\n at /app/node_modules/koa-compress/lib/index.js:38:11\n at dispatch (/app/node_modules/koa-compose/index.js:42:32)\n at /app/node_modules/@koa/router/lib/router.js:368:16\n at dispatch (/app/node_modules/koa-compose/index.js:42:32)\n at errorHandling (/app/dist/index.js:140306:11)\n at dispatch (/app/node_modules/koa-compose/index.js:42:32)","code":"ERR_CRYPTO_INVALID_IV","expose":true,"statusCode":403,"status":403},"pid":28,"tenantId":"default","correlationId":"2a3a8baa-cf00-41cb-9ab9-debdb5459426","msg":""}

To Reproduce Steps to reproduce the behavior:

  1. Follow the install method of the doc for docker-compose
  2. Run it
  3. Try to connect
  4. See error in log, and you're redirected to the login screen

Expected behavior Being able to login

Additional context My installation is behind a reverse proxy (swag, so nginx). But I don't think it matters as the error is from nodeJS.

linear[bot] commented 2 weeks ago

BUDI-8589 Invalid initialization vector