open-telemetry / opentelemetry-collector-contrib

Contrib repository for the OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
3.02k stars 2.33k forks source link

[exporter/coralogix] #34837

Open sergeylanzman opened 1 month ago

sergeylanzman commented 1 month ago

Component(s)

exporter/coralogix

Is your feature request related to a problem? Please describe.

We are using ArgoCD (GitOps) to manage all our applications, including the OpenTelemetry Collector (otel-collector). Our use case involves sending data to the Coralogix server using the Coralogix exporter.

However, we have encountered a security concern: the Coralogix exporter currently does not support passing the private key via environment variables. Instead, it requires the key to be provided in the configuration file, which poses a security risk as we do not want to store private keys in GitHub or any version control system.

Describe the solution you'd like

We would like to request support for passing the private key to the Coralogix exporter via environment variables. This feature would enhance security practices by allowing sensitive information to be managed through environment variables instead of being hardcoded or stored in configuration files.

Describe alternatives you've considered

No response

Additional context

No response

github-actions[bot] commented 1 month ago

Pinging code owners:

povilasv commented 1 month ago

sorry for delayed response, So this should be already achievable via Otel config, docs: https://opentelemetry.io/docs/collector/configuration/#environment-variables

Example:

    exporters:
      coralogix:
        timeout: "30s"
        private_key: "${env:CORALOGIX_PRIVATE_KEY}"