Skip to content

Improve detection and warning of process warnings #59646

@watson

Description

@watson

We landed stricter detection of deprecation warnings in #51431. This was primarily achieved by using the --throw-deprecation flag. This, however, will be caught if the offending code is surrounded by a try-catch, which means any deprecated API used synchronously inside of a promise or in an async-await context will be caught and not exit the process, which in turn most likely means that it will go unnoticed.

We should improve this by crashing the process even in these cases (by utilizing process.on('warning')).

Metadata

Metadata

Assignees

Labels

Feature:HardeningHarding of Kibana from a security perspectiveTeam:SecurityPlatform Security: Auth, Users, Roles, Spaces, Audit Logging, etc t//

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions