Skip to content

Commit 4eae9b0

Browse files
committed
Document security-manager-support flag
1 parent 01520c6 commit 4eae9b0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/advanced-configuration-options.md

+11
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,14 @@ which could have unknown side-effects.
1717
| System property | Environment variable | Purpose |
1818
|--------------------------------|--------------------------------|---------------------------------------------------------------------------------------------------|
1919
| otel.javaagent.exclude-classes | OTEL_JAVAAGENT_EXCLUDE_CLASSES | Suppresses all instrumentation for specific classes, format is "my.package.MyClass,my.package2.*" |
20+
21+
## Running application with security manager
22+
23+
This option can be used to let agent run with all privileges without being affected by security policy restricting some operations.
24+
25+
| System property | Environment variable | Purpose |
26+
|--------------------------------------------------------------|--------------------------------------------------------------|---------------------------------------|
27+
| otel.javaagent.experimental.security-manager-support.enabled | OTEL_JAVAAGENT_EXPERIMENTAL_SECURITY_MANAGER_SUPPORT_ENABLED | Grant all privileges to agent code[1] |
28+
29+
[1] Disclaimer: agent can provide application means for escaping security manager sandbox. Do not use
30+
this option if your application relies on security manager to run untrusted code.

0 commit comments

Comments
 (0)