Files
node/tools
Filip Skokan 06d308fb61 tools: prevent lib code from reading KeyObject and CryptoKey accessors
Add ESLint rules that reject public KeyObject and CryptoKey accessor
reads after internal brand checks. Internal code must use the private
key helpers so it reads native-backed slots instead of user-replaceable
properties.

Add a separate rule that rejects instanceof checks against KeyObject
and CryptoKey constructors, including the global CryptoKey constructor.

Signed-off-by: Filip Skokan <panva.ip@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/63111
Backport-PR-URL: https://github.com/nodejs/node/pull/63563
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
2026-06-23 01:06:39 +01:00
..
2026-06-18 00:15:53 +02:00
2026-06-18 00:15:55 +02:00
2026-06-18 21:12:37 +01:00
…
2026-03-23 13:16:52 -05:00
2026-06-18 21:12:37 +01:00
…
2024-10-15 13:59:49 +00:00
2024-10-15 13:59:49 +00:00
2024-10-09 06:42:16 +00:00
2024-10-09 06:42:16 +00:00
2024-10-15 13:59:49 +00:00
2025-01-29 21:55:05 +00:00
2026-06-18 00:15:52 +02:00
…