Skip to content

Security: Kong/kong-operator

SECURITY.md

Security Policy

Reporting a Vulnerability

At Kong, we take security issues very seriously. If you believe you have found a security vulnerability in our project, we encourage you to disclose it responsibly. Please report any potential security vulnerabilities to us by creating a security advisory here.

How to Report

  1. Do not publicly disclose the vulnerability: Please do not create a GitHub issue or post the vulnerability on public forums. Instead, create a security advisory here.
  2. Provide detailed information: When reporting a vulnerability, please include as much information as possible to help us understand and reproduce the issue. This may include:
    • Description of the vulnerability
    • Steps to reproduce the issue
    • Potential impact
    • Any relevant logs or screenshots

What to Expect

  • Acknowledgment: We will acknowledge receipt of your vulnerability report within 48 hours.
  • Investigation: Our security team will investigate the report and will keep you informed of the progress. We aim to resolve critical vulnerabilities within 30 days of confirmation.
  • Disclosure: We prefer coordinated disclosure and will work with you to schedule the disclosure of the vulnerability in a way that minimizes the risk to users.

Verifying Released Images and SBOMs

Kong Operator images are built, signed and attested by GitHub Actions with GitHub's OIDC identity, so a released image can be traced back to this repository, its commit and the workflow that produced it.

Every release attaches to its GitHub Release page:

  • a source SBOM in SPDX (source-sbom.spdx.json) and CycloneDX (source-sbom.cyclonedx.json)
  • an image SBOM per platform: image-linux-amd64-sbom.*.json and image-linux-arm64-sbom.*.json
  • a SHA256SUMS covering all of the above

The same reports are also attached to the image as attestations (see Verify the SBOM, vulnerability and CIS attestations), so they do not depend on the Release assets staying around.

The signature and the build provenance describe the multi-arch index digest, never a per-platform digest and never a tag. Collect it first (regctl is one way):

IMAGE=kong/kong-operator
TAG=2.4.0
IMAGE_DIGEST=$(regctl manifest digest "${IMAGE}:${TAG}")

Verify the cosign signature

The signature is an OCI 1.1 referrer of the image, attached in the image's own repository, so cosign finds it with no extra configuration:

cosign verify \
   "${IMAGE}:${TAG}@${IMAGE_DIGEST}" \
   --certificate-oidc-issuer='https://token.actions.githubusercontent.com' \
   --certificate-identity-regexp='^https://github\.com/Kong/kong-operator/\.github/workflows/'

The GitHub owner is case-sensitive (Kong/kong-operator, not kong/kong-operator).

Verify the build provenance

With slsa-verifier:

slsa-verifier verify-image \
   "${IMAGE}:${TAG}@${IMAGE_DIGEST}" \
   --print-provenance \
   --source-uri 'github.com/Kong/kong-operator'

The provenance is signed by the generator and published in the same repository as the image, as the sha256-<index digest>.att tag. cosign verify-attestation reads the referrers only and does not see that tag, so slsa-verifier above is the supported command.

Verify the SBOM, vulnerability and CIS attestations

The reports behind the Release assets are also published as attestations on the image itself, one per predicate type. cosign tree lists what is attached; the types are:

Predicate type Report
cyclonedx, spdxjson source SBOM
https://cyclonedx.org/bom/image/<arch>, https://spdx.dev/Document/image/<arch> image SBOM, per platform
https://cosign.sigstore.dev/sarif/vuln/source, https://cosign.sigstore.dev/sarif/vuln/image/<arch> Grype vulnerability report
https://cisecurity.org/docker/<arch> CIS Docker benchmark report
https://konghq.com/build-metadata workflow and runner context of the build
cosign verify-attestation \
   "${IMAGE}:${TAG}@${IMAGE_DIGEST}" \
   --type='cyclonedx' \
   --certificate-oidc-issuer='https://token.actions.githubusercontent.com' \
   --certificate-identity-regexp='^https://github\.com/Kong/kong-operator/\.github/workflows/'

Verify the SBOM files

Download the SBOMs and SHA256SUMS from the Release page, then check them:

sha256sum -c SHA256SUMS

SHA256SUMS proves the files were not corrupted in transit; it is not signed, so it does not prove who produced them. Authorship is carried by the image: the signature, the provenance and the SBOM attestations all cover the index digest, and the CycloneDX image SBOM names the platform digest it describes (metadata.component.version).

Contact

For any questions or further assistance, please contact us at team-kubernetes@konghq.com.

Learn more about advisories related to Kong/kong-operator in the GitHub Advisory Database