opentelemetry-java-instrume.../docs
Lauri Tulmin 2f0819ae20
Improve compatibility with SecurityManager (#7983)
This pr gives classes defined in agent and extension class loaders all
permissions. Injected helper classes are also defined with all
permissions. Agent startup is altered so that we won't call methods that
require permission before we are able to get those permissions.
This pr does not attempt to address issues where agent code could allow
user code to circumvent security manager e.g.
https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/javaagent-bootstrap/src/main/java/io/opentelemetry/javaagent/bootstrap/InstrumentationHolder.java
gives access to `Instrumentation` that could be used to redefine classes
and remove security checks. Also this pr does not address failed
permission checks that could arise from user code calling agent code.
When user code, that does not have privileges, calls agent code, that
has the privileges, and agent code performs a sensitive operation then
permission check would fail because it is performed for all calling
classes, including the user classes. To fix this agent code should uses
`AccessController.doPrivileged` which basically means that, hey I have
done all the checks, run this call with my privileges and ignore the
privileges of my callers.
2023-04-05 15:41:37 +03:00
..
apidiffs Update api diffs (#8058) 2023-03-22 13:05:12 +01:00
contributing Add note about Optional/Stream usage to style guide (#8193) 2023-04-03 20:15:59 +00:00
misc Introduce markdown lint check (#7175) 2022-11-16 20:48:42 -08:00
advanced-configuration-options.md Improve compatibility with SecurityManager (#7983) 2023-04-05 15:41:37 +03:00
agent-features.md Use "class loader" instead of "classloader" consistently in docs and comments (#6236) 2022-06-30 14:57:07 -07:00
java-7-rationale.md Introduce markdown lint check (#7175) 2022-11-16 20:48:42 -08:00
logger-mdc-instrumentation.md Introduce markdown lint check (#7175) 2022-11-16 20:48:42 -08:00
safety-mechanisms.md Use "class loader" instead of "classloader" consistently in docs and comments (#6236) 2022-06-30 14:57:07 -07:00
scope.md Introduce markdown lint check (#7175) 2022-11-16 20:48:42 -08:00
supported-libraries.md Add library instrumentation for java http client (#8138) 2023-04-03 13:08:29 -07:00