Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .oss-scanner/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM eclipse-temurin:25-jdk-noble

ENV DISABLE_REMOTE_BUILD_CACHE=1

COPY . /src
WORKDIR /src

RUN ./gradlew --no-daemon --max-workers=2 \
-Porg.gradle.java.installations.auto-download=false build

ADD https://raw.githubusercontent.com/open-telemetry/.github/main/SECURITY.md /src/.oss-scanner/security-policy.md
55 changes: 55 additions & 0 deletions .oss-scanner/threat_model.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# OSS Scanner threat model

The [Dockerfile](Dockerfile) downloads the OpenTelemetry Security Policy to
`/src/.oss-scanner/security-policy.md` for offline scanning.

Additional context specific to this project can be found below.

## What this project does and where untrusted input enters

- This project provides the Java OpenTelemetry API and SDK for recording, processing, and exporting
traces, metrics, logs, and profiles.
- Untrusted input enters through telemetry recorded by applications and instrumentation, and through
headers used for baggage and trace propagation.
- Additional network inputs include exporter responses, Prometheus scrape requests, and Jaeger
remote sampling strategies.
- SDK configuration is normally controlled by the application operator.

## Components that matter most / least

The following components matter most:

- `api/all`, `api/incubator`, and `extensions/trace-propagators`: core primitives for recording
telemetry and propagating context within and across processes.
- `sdk/trace`, `sdk/metrics`, `sdk/logs`, `sdk/profiles`, and `sdk/common`: telemetry processing,
aggregation, and resource limits.
- `exporters/otlp`, `exporters/common`, and `exporters/sender`: telemetry serialization and HTTP and
gRPC transport.
- `exporters/prometheus`: Prometheus HTTP scrape endpoint and metric serialization.
- `sdk-extensions/autoconfigure`, `sdk-extensions/autoconfigure-spi`, and
`sdk-extensions/declarative-config`: SDK configuration through environment variables, system
properties, YAML files, and service providers.
- `sdk-extensions/jaeger-remote-sampler`: sampling configuration received from a remote gRPC
endpoint.

The following components have lower priority:

- `exporters/logging` and `exporters/logging-otlp`: exporters primarily used for local development
and diagnostics.
- `sdk/testing` and `testing-internal`: testing utilities.
- `opencensus-shim` and `opentracing-shim`: deprecated compatibility shims.

## How to exercise it

- Unit tests and fuzz tests are colocated with their modules. Cross-component tests live under
`integration-tests`.
- See [build guidance](../docs/knowledge/build.md) for requirements and commands.

## How you rate severity

Follow the OpenTelemetry Security Policy, including its availability assessment and severity
guidance. No additional Java-specific severity rules apply.

## Anything to leave alone

Ignore tests, test utilities, benchmarks, and other code not intended for production use.
Loading