Enhance the Trivy plugin index #2
knqyf263
started this conversation in
Development
Replies: 2 comments 12 replies
-
@DmitriyLewen What do you think? |
Beta Was this translation helpful? Give feedback.
8 replies
-
I learned from that mistake and decided to add metadata this time, as Trivy initially had a schema that could not have metadata, which required destructive changes to the schema later on. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Overview
The current schema for the trivy-plugin-index is very simple:
This simplicity is due to the presence of
plugin.yaml
in the plugin repositories, which is automatically crawled by CI to extract necessary information and deploy it using GitHub Pages: index.yaml.Considerations
Versioning
The YAML itself does not include versioning; instead, the HTTP path has a
v1
prefix (https://aquasecurity.github.io/trivy-plugin-index/v1/index.yaml) to prevent Trivy from breaking due to destructive changes in the index schema. Revising theindex.yaml
schema might be beneficial, considering the potential inclusion of metadata in the future.Automatic Crawling
The advantage of automatic crawling is the elimination of duplicate definitions. However, there is a risk of breakage if incorrect changes are made to
plugin.yaml
in the plugin repository. On the other hand, ifplugin.yaml
breaks, it would also prevent installation via Trivy, so excluding it from the index might be beneficial.Tracking
index.yaml
Currently,
index.yaml
is automatically generated on CI and deployed to GitHub Pages. There should be a discussion on whether this file should be managed with Git.Security
Security is a crucial consideration. The plugin repository may change, posing risks. However, this risk is inherent to the plugins themselves, as stated in the documentation, and not due to the automatic crawling of the index.
Beta Was this translation helpful? Give feedback.
All reactions