Skip to content

Commit

Permalink
Document security-manager-support flag
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit committed Apr 4, 2023
1 parent 01520c6 commit 4eae9b0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/advanced-configuration-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,14 @@ which could have unknown side-effects.
| System property | Environment variable | Purpose |
|--------------------------------|--------------------------------|---------------------------------------------------------------------------------------------------|
| otel.javaagent.exclude-classes | OTEL_JAVAAGENT_EXCLUDE_CLASSES | Suppresses all instrumentation for specific classes, format is "my.package.MyClass,my.package2.*" |

## Running application with security manager

This option can be used to let agent run with all privileges without being affected by security policy restricting some operations.

| System property | Environment variable | Purpose |
|--------------------------------------------------------------|--------------------------------------------------------------|---------------------------------------|
| otel.javaagent.experimental.security-manager-support.enabled | OTEL_JAVAAGENT_EXPERIMENTAL_SECURITY_MANAGER_SUPPORT_ENABLED | Grant all privileges to agent code[1] |

[1] Disclaimer: agent can provide application means for escaping security manager sandbox. Do not use
this option if your application relies on security manager to run untrusted code.

0 comments on commit 4eae9b0

Please sign in to comment.