Please do not open a public issue for a security problem.
Report it privately on GitHub: open the Security tab of this repository and choose Report a vulnerability, or go straight to the advisory form. We aim to acknowledge a report within five business days.
Please include:
- a description of the problem and its impact
- the smallest program or steps that reproduce it
- the SDK version and the Go version
- the configuration involved, with credentials removed
Security fixes go into the latest minor release. Older releases may also get fixes, but we do not promise them.
- A Backtrace submission token, or an endpoint URL that contains one, appears in an SDK log line or in an error the SDK returns.
- A report or a snapshot is sent to a host other than the configured endpoint. The SDK never follows redirects.
- With
Config.SourceRootsset, the SDK reads a source file outside those directories.
- The endpoint. The SDK sends error data to the endpoint the application configures. That endpoint is trusted.
- What the application adds to a report. Attributes, breadcrumbs, attachments, environment variables and source text are sent because the application asked for them. The SDK redacts environment values that look like secrets, but this redaction is an extra protection and not a guarantee. Use
Config.EnvVarsto name the variables to send, andConfig.BeforeSendto remove data before a report leaves the process. - Code the application supplies. A custom
Tracer,BeforeSend,Logger,RequestAttributes,ReportStatusorhttp.RoundTripperis trusted code. The SDK recovers from a panic in the hooks it calls while it reports, but it cannot stop code that never returns.