Skip to content

In version 8.xx you removed support for disablePrototypePoisoningProtection which is causing our project to run 50% slower #2303

@tomasz-szymanek

Description

@tomasz-szymanek

Please bring back support for disablePrototypePoisoningProtection parameter.

🐛 Bug Report

In
#1558
you removed disablePrototypePoisoningProtection configuration option support.

To Reproduce

return new Client({
node: url,
disablePrototypePoisoningProtection: true,
})

From node profiler report:
29430 32.4% T node::fs_dir::DirHandle::Close(v8::FunctionCallbackInfov8::Value const&)
4156 14.1% Function: ^_parse /Users/tszymanek/Projects/frontend/node_modules/secure-json-parse/index.js:7:17
3859 92.9% LazyCompile: *request /Users/tszymanek/Projects/frontend/node_modules/@elastic/transport/lib/Transport.js:273:18

secure-json-parse is considerably slowing our app

Expected behavior

disablePrototypePoisoningProtection should set 'ignore' option in secure-json-parse usage in @elastic/transport.

Your Environment

  • node version: 18
  • @elastic/elasticsearch version: 8.5 but it lacks this option on latest also
  • os: Mac

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions