Overview
Enterprise vulnerability and container security scanners (such as Trivy, Grype, Prisma Cloud, or AWS Inspector) regularly scan container images for known Common Vulnerabilities and Exposures (CVEs). This guide outlines Tyk's container vulnerability remediation model and explains how to build custom derived images for immediate patch compliance.
Frequently Asked Questions
Why are CVEs reported in base OS libraries?
Official Tyk container images use minimal Linux distributions (such as Debian-slim, Alpine, or Red Hat UBI) to deliver small, performant images while providing required shared libraries and dynamic linking dependencies for Go and CGO plugins. When upstream distribution maintainers publish new security advisories, vulnerability scanners flag those base packages until upstream patches are released and incorporated into official Tyk builds.
How does Tyk assess and remediate container image vulnerabilities?
The Tyk security team continuously reviews scanning reports across all released artifacts. Non-exploitable vulnerabilities are documented via Vulnerability Exploitability eXchange (VEX) statements. When upstream package maintainers publish security fixes, Tyk incorporates them in regular patch and minor release cycles.
Can we build custom derived images to apply OS patches immediately?
Yes. Customers with stringent enterprise compliance mandates can build and maintain custom derived Docker images based on official Tyk release images to apply the latest security patches without waiting for the next Tyk release cycle.
Building Custom Derived Images
Create a Dockerfile extending the official Tyk release image to update system packages:
FROM tykio/tyk-gateway:v5.13.2
USER root
RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
USER tykOperational Guidelines
- Preserve Base Toolchain Compatibility: Do not swap core runtime libraries (such as glibc) to major new versions that could disrupt Go plugin compatibility or dynamic linker symbols.
- Validate Plugins and Middleware: If using custom Go plugins, ensure they are compiled with a toolchain matching the base image architecture and compiler version.
- Verify Staging Rollouts: Deploy custom derived images in a non-production environment and verify Gateway startup, Redis connectivity, and key authentication before promoting to production.
Applies To
All Tyk container images: Tyk Gateway, Tyk Dashboard, Tyk Pump, Tyk MDCB, and Tyk Enterprise Developer Portal.
Comments
0 comments
Please sign in to leave a comment.