elasticsearch/libs
Lorenzo Dematté ae0b2963d2
[Entitlements] Add an option to perform bytecode verification during instrumentation (#124404)
Using ASM CheckClassAdapter was key to diagnose the issue we had with incorrect signatures for some check methods.
In this PR I polished up the code I used to pinpoint the issue, and made it available via a system property so it can be turned on if we need it (and it's always on for Entitlements IT tests too).

It is also turned on in case we get VerifyErrors during retransformClasses early in the Entitlement agent bootstrap: retransformClasses runs in the native part of the JVM, so the VerifyError it produces is not so readable (e.g. it lacks a full stack trace and a description); in case this happens, we re-apply the transformation with verification turned on to get a meaningful error before dying.
2025-03-19 16:02:01 +02:00
..
cli Set root logger level for CLIs (#123742) 2025-03-02 17:55:09 +00:00
core Remove @UpdateForV9 annotation (#125024) 2025-03-18 12:52:18 +01:00
dissect Use directory name as project name for libs (#115720) 2024-10-29 13:02:28 -07:00
entitlement [Entitlements] Add an option to perform bytecode verification during instrumentation (#124404) 2025-03-19 16:02:01 +02:00
geo Optimize ST_EXTENT_AGG for geo_shape and cartesian_shape (#119889) 2025-01-16 19:43:51 +01:00
grok Fix a bunch of non-final static fields (#119185) 2024-12-26 19:14:36 +01:00
h3 Reapply "Update Gradle wrapper to 8.13 (#122421)" (#123889) (#123896) 2025-03-05 08:02:13 +01:00
log4j Patch log4j JAR to remove JndiLookup class (#81629) 2021-12-10 15:51:38 -08:00
logging Set root logger level for CLIs (#123742) 2025-03-02 17:55:09 +00:00
logstash-bridge Make enrich project-aware (#124099) 2025-03-06 19:20:46 +01:00
lz4 Use directory name as project name for libs (#115720) 2024-10-29 13:02:28 -07:00
native [Entitlements] Add native checks support and tests for Java 21 (preview) (#121881) 2025-02-07 17:01:04 +01:00
plugin-analysis-api [Build] Remove deprecated BuildParams (#116984) 2024-11-22 16:30:57 +01:00
plugin-api Add AGPLv3 as a supported license 2024-09-13 15:29:46 -07:00
plugin-scanner Update ASM 9.7 -> 9.7.1 to support JDK 24 (#118094) 2024-12-06 08:16:46 +01:00
secure-sm Do not try to enable SecurityManager on JDK 24 (#117999) 2024-12-10 18:00:58 +01:00
simdvec Add basic implementations of float-byte script comparisons (#122381) 2025-03-03 09:38:37 +00:00
ssl-config Add exclusive access files for security module (#123676) 2025-03-08 07:02:36 -08:00
tdigest Reapply "Update Gradle wrapper to 8.13 (#122421)" (#123889) (#123896) 2025-03-05 08:02:13 +01:00
x-content Merge main into multi-project 2025-01-30 17:26:28 +10:00
build.gradle Use directory name as project name for libs (#115720) 2024-10-29 13:02:28 -07:00