Enhance documentation regarding trivy server and redis cache use in the server and client #7528
Replies: 5 comments 1 reply
-
I can help with the writing, but would need some insights from the team and other users. |
Beta Was this translation helpful? Give feedback.
-
Perhaps a short enhancement note on both the client/server, redis and DB pages regarding the java DB. I see that the Java DB note mentions a little bit how the workload is distributed - https://aquasecurity.github.io/trivy/v0.55/docs/configuration/db/#java-index-database |
Beta Was this translation helpful? Give feedback.
-
https://aquasecurity.github.io/trivy/v0.55/docs/references/modes/client-server/ have a section on which scans runs server side, and which scans runs client side. This could also be a good place to outline where a redis / external cache fits in with a client/server setup. |
Beta Was this translation helpful? Give feedback.
-
The |
Beta Was this translation helpful? Give feedback.
-
Redis: rm -rf ~/tmp/redis &&
mkdir -p ~/tmp/redis &&
(docker stop trivy-backend ; docker rm trivy-backend) >/dev/null 2>&1 ;
docker run --publish 6379:6379 --name trivy-backend --detach redis:7-alpine Trivy server: rm -rf ~/tmp/trivy &&
mkdir -p ~/tmp/trivy &&
trivy server --listen 127.0.0.1:8080 --token foobar --cache-dir $HOME/tmp/trivy --cache-backend redis://localhost:6379 --cache-ttl 10m --debug In another shell # Observe that we have 500Mb + downloaded
ls -l ~/tmp/trivy/db
du -hs ~/tmp/trivy/db
# ...and no new keys in the redis backend
redis-cli keys "*" |
Beta Was this translation helpful? Give feedback.
-
Description
With regards to client, server and redis cache it would be good to enhance the documentation to explain better what is handled where.
I.e. the Java DB cache is now client side only, re #3560, and with many builds it is of assistanse to have a redis cache backend.
But it is not crystal clear what then is the benefit of having a
trivy server
in addition.Link
Suggestions
Document use cases:
trivy server
helpstrivy server
documentation.Beta Was this translation helpful? Give feedback.
All reactions