Building a Secure OpenTelemetry Collector
Blog post from Honeycomb
The OpenTelemetry Collector is a crucial component for telemetry pipelines, necessitating heightened security, which can be best achieved by building a custom Collector executable rather than relying on default images provided by the OpenTelemetry team. These default images, including both core and contrib versions, often include unnecessary components that increase the attack surface, posing potential security risks. To address this, a new approach has been developed using a tool that allows users to create a custom Collector by specifying desired components via a manifest.yaml file, thus reducing unused components and improving security. This process can be simplified further with a two-stage build method that facilitates the automatic generation of the manifest file, eliminating the need for deep Go knowledge and manual configuration. By leveraging the "OpenTelemetry Collector Builder Config Builder," users can create a tightly coupled Collector executable in a secure container, making it more accessible for developers and integrable into existing pipelines without compromising security.