Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intermittent test failure: DECODER routines::unsupported #1212

Open
alxndrsn opened this issue Oct 5, 2024 · 1 comment
Open

Intermittent test failure: DECODER routines::unsupported #1212

alxndrsn opened this issue Oct 5, 2024 · 1 comment
Labels
testing Integration tests, unit tests

Comments

@alxndrsn
Copy link
Contributor

alxndrsn commented Oct 5, 2024

https://github.com/getodk/central-backend/actions/runs/10702632292/job/29671272325

2024-09-04T13:27:47.9903658Z   managed encryption
2024-09-04T13:27:47.9904491Z     lock management
2024-09-04T13:27:48.2104194Z       ✔ should reject keyless forms in keyed projects @slow (221ms)
2024-09-04T13:27:49.0429483Z       ✔ should reject forms created while project managed encryption is being enabled @slow (184ms)
2024-09-04T13:27:49.6529419Z     decryptor
2024-09-04T13:27:50.0331955Z       ✔ should give a decryptor for the given passphrases (380ms)
2024-09-04T13:27:50.0333106Z     encrypted submission attachment parsing
2024-09-04T13:27:50.0344764Z       ✔ should correctly record attachment file ordering
2024-09-04T13:27:50.0347678Z     end-to-end
2024-09-04T13:27:50.0410796Z ::ffff:127.0.0.1 - - [04/Sep/2024:13:27:50 +0000] "POST /v1/sessions HTTP/1.1" 200 228
2024-09-04T13:27:50.2878107Z ::ffff:127.0.0.1 - - [04/Sep/2024:13:27:50 +0000] "POST /v1/projects/1/key HTTP/1.1" 200 16
2024-09-04T13:27:50.2907190Z ::ffff:127.0.0.1 - - [04/Sep/2024:13:27:50 +0000] "GET /v1/projects/1/forms/simple.xml HTTP/1.1" 200 1285
2024-09-04T13:27:50.2980087Z ::ffff:127.0.0.1 - - [04/Sep/2024:13:27:50 +0000] "POST /v1/projects/1/forms/simple/submissions HTTP/1.1" 200 305
2024-09-04T13:27:50.3029627Z ::ffff:127.0.0.1 - - [04/Sep/2024:13:27:50 +0000] "POST /v1/projects/1/forms/simple/submissions/one/attachments/submission.xml.enc HTTP/1.1" 200 16
2024-09-04T13:27:50.3062329Z ::ffff:127.0.0.1 - - [04/Sep/2024:13:27:50 +0000] "GET /v1/projects/1/forms/simple/submissions/keys HTTP/1.1" 200 492
2024-09-04T13:27:50.3429563Z Error: error:1E08010C:DECODER routines::unsupported
2024-09-04T13:27:50.3430688Z     at createPrivateKey (node:internal/crypto/keys:632:12)
2024-09-04T13:27:50.3432370Z     at /home/runner/work/central-backend/central-backend/lib/util/crypto.js:156:14
2024-09-04T13:27:50.3433409Z     at async Promise.all (index 0) {
2024-09-04T13:27:50.3433866Z   library: 'DECODER routines',
2024-09-04T13:27:50.3434488Z   reason: 'unsupported',
2024-09-04T13:27:50.3435064Z   code: 'ERR_OSSL_UNSUPPORTED'
2024-09-04T13:27:50.3435810Z }Error: error:1E08010C:DECODER routines::unsupported
2024-09-04T13:27:50.3436874Z     at createPrivateKey (node:internal/crypto/keys:632:12)
2024-09-04T13:27:50.3438123Z     at /home/runner/work/central-backend/central-backend/lib/util/crypto.js:156:14
2024-09-04T13:27:50.3439090Z     at async Promise.all (index 0) {
2024-09-04T13:27:50.3439738Z   library: 'DECODER routines',
2024-09-04T13:27:50.3440302Z   reason: 'unsupported',
2024-09-04T13:27:50.3440860Z   code: 'ERR_OSSL_UNSUPPORTED'
2024-09-04T13:27:50.3443347Z ::ffff:127.0.0.1 - - [04/Sep/2024:13:27:50 +0000] "GET /v1/projects/1/forms/simple/submissions.csv.zip?4=wrong HTTP/1.1" 500 35
2024-09-04T13:27:50.3452770Z       1) should reject with a reasonable message given incorrect passphrase
  2437 passing (2m)
  20 pending
  1 failing

  1) managed encryption
       end-to-end
         should reject with a reasonable message given incorrect passphrase:
     Error: expected 400 "Bad Request", got 500 "Internal Server Error"
      at /home/runner/work/central-backend/central-backend/test/integration/other/encryption.js:204:14
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async Object.transaction (node_modules/slonik/dist/src/connectionMethods/transaction.js:22:24)
      at async Object.createConnection (node_modules/slonik/dist/src/factories/createConnection.js:97:18)
  ----
      at Test._assertStatus (node_modules/supertest/lib/test.js:252:14)
      at /home/runner/work/central-backend/central-backend/node_modules/supertest/lib/test.js:308:13
      at Test._assertFunction (node_modules/supertest/lib/test.js:285:13)
      at Test.assert (node_modules/supertest/lib/test.js:164:23)
      at Server.localAssert (node_modules/supertest/lib/test.js:120:14)
      at Object.onceWrapper (node:events:628:28)
      at Server.emit (node:events:514:28)
      at Server.emit (node:domain:488:12)
      at emitCloseNT (node:net:2273:8)
      at process.processTicksAndRejections (node:internal/process/task_queues:81:21)



    at process.processImmediate (node:internal/timers:478:21)make: *** [Makefile:58: test] Error 1
@matthew-white
Copy link
Member

This looks like the same test that's failing in #499, but a different error code. Here, the error code is ERR_OSSL_UNSUPPORTED, whereas in #499, it's ERR_OSSL_PEM_NO_START_LINE.

@matthew-white matthew-white added the testing Integration tests, unit tests label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Integration tests, unit tests
Projects
None yet
Development

No branches or pull requests

2 participants