Prepare for v0.53.0 #7055
chen-keinan
started this conversation in
Development
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Draft to collaborate on v0.53.0
📑 Table of Contents
💔 Breaking Changes 💔
🌵 Cache Management Flags Removed 🌵
As announced here, the following cache management flags will be removed:
These flags will be replaced by the new
trivy clean
command.See here for more details.
☁️Trivy AWS is now available via a plugin ☁
As announced before, Trivy's AWS scanning is now offered as a separate plugin. It is no longer shipped with Trivy by default, but can be easily installed as such:
🫓 Trivy misconfiguration schema flattened 🚜
As announced before Trivy's internal cloud schema has been improved to remove potential recursions. This is relevant only for rule authors, and does not effect users.
Kuberetes compliance changes
Trivy now defines a naming convention for compliance reports in the form of:
{platform}-{type}-{version}
. Following are the renamed specs:k8s-cis
->k8s-cis-1.23
k8s-nsa
->k8s-nsa-1.0
k8s-pss-baseline
->k8s-pss-baseline-0.1
k8s-pss-restricted
->k8s-pss-restricted-0.1
docker-cis
->docker-cis-1.6.0
➗ Trivy now scans
composer.lock
files only infs
andrepo
modes. 🧩We have added support for
installed.json
files.So we separated the PHP files:
composer.lock
forfs
andrepo
modes.installed.json
forimage
androotfs
modes.🚀 What's new? 🚀
🐍 Support for License Detection for
environment.yml
Files (Conda) 📜Trivy now supports license detection for
environment.yml
files by parsing<package.json>
files in prefix directory.Read more here.
🔎 Support for determining
Dart
dependency version from SDK constraint 🔍For
Dart
dependencies that use SDK as version, Trivy now uses the first version of the SDK constraint.For example in this case the version of
flutter_test
will be3.3.0
:Read more here.
🗃️ Support for
maven-metadata.xml
formaven snapshot repositories
📥Some
maven snapshot repositories
(e.g.oss.sonatype.org
) usemaven-metadata.xml
with the latest pom file name.Trivy now parses this file.
If the file doesn't exist or doesn't contain pom file name information - Trivy checks the
<artifactId>-<version>.pom
file (as forrelease
repositories).🎊 Support for
installed.json
PHP files ✨Trivy now scans
installed.json
files (available inimage
androotfs
modes).Read more here.
🌀 Trivy migrated to
CycloneDX v1.6
🌪️Trivy now uses CycloneDX v1.6 for
cyclonedx
format.🧠 Memory Cache Backend ⚡
Trivy introduces a memory cache backend, enhancing scan efficiency for repositories, filesystems, and SBOMs by reducing unnecessary disk I/O operations. By default, memory backend is used for these scan targets, so no changes are required. For container images and VM images, the filesystem cache remains in use, but you can specify
--cache-backend memory
if you don't need a cache for subsequent scans.🧾 Compliance framework improvements ⎈
🥡 Node collector commands ⛏️
The "node-collector" component, that collects data from within nodes for evaluation by checks, is now more flexible and extensible. The Trivy compliance definision now has a new
commands
field that refers to scriptlets that collect data by the node-collector. The data is then available in rego checks for evaluation. This makes it easier for users to contribute and maintain specs.For example, here's a snippet from the new CIS benchmark for Kubernetes:
for more details check our docs on compliance contribution
🧾 New compliance specs ☑️
We are working on adding more platforms. Please let us know if yould like to help!
🫔 Selector support for all providers 🍏
Trivy now supports selectors and subtypes for all cloud providers.
Previously Trivy only supported AWS and Kubernetes.
🐳 New resources support in misconfiguration scanning 🎍
We have added the following resources as part of our misconfiguration scanning to enhance our scanning posture.
📦 Plugin GitHub Archives Support 🗂️
This update introduces support for nested archives in Trivy plugins. Users can now directly download and install plugins from GitHub repository archives, simplifying the installation process.
👷♂️ Notable Fixes 🛠️
.conan2/p
directory to detect the license for the v2 lock file. #6931,
,or
, etc. #6915purl
to detectbitnami
pkg name #6981artifactId
andgroupId
frompurl
insbom
mode #7007metadata.component
into SBOM format #7050epoch
if srcEpoch is 0 #6865markRootPkgs
function #6848Beta Was this translation helpful? Give feedback.
All reactions