Skip to content
Security

Security

This project distributes source code and examples, not prebuilt k6 binaries. Build your own k6 binary with xk6 so the final artifact is produced in your environment from audited inputs.

Security choiceRationale
No prebuilt binaryAvoids asking users to trust an opaque load-testing executable
Pinned demo imagesKubernetes examples use explicit image tags
Synthetic data onlyExamples do not require production credentials or user data
OTLP TLS optionsConfigure secure endpoints through JS options or environment variables

Example production-style endpoint:

otelgen.configure({
  endpoint: "otel-collector.example.internal:4317",
  protocol: "grpc",
  insecure: false,
  caCert: "/etc/otel/ca.pem",
  clientCert: "/etc/otel/client.pem",
  clientKey: "/etc/otel/client-key.pem",
  headers: { authorization: "Bearer ${TOKEN}" },
});

The certificate files are read during pipeline validation and startup so missing files, malformed PEM data, incomplete client certificate/key pairs, and certificate options combined with insecure: true fail before traffic starts. Header values are never included in JS-module configuration logs.