Git Product home page Git Product logo

Comments (5)

danielpacak avatar danielpacak commented on June 1, 2024 2

@vzanlnx Currently we do not support K8S deployment descriptor for Trivy server, but I believe that you can create one relatively easy with our official docker.io/aquasec/trivy:0.4.4 Docker image. Just run a Pod with the server command and args. If you expose it with K8S Service you should be able to connect to it with Trivy client from outside of the cluster.

We've created a follow up issue #77 to consider whether harbor-scanner-trivy should expose twirp endpoint and serve both Harbor and Trivy clients. Feel free to vote on that one and provide more details about your use case there.

from harbor-scanner-trivy.

danielpacak avatar danielpacak commented on June 1, 2024 1

Hi @vzanlnx ! Thank you for the question. It's a good one.

Trivy client/server mode and Harbor scanner adapter for Trivy are two different things.

To some extent they are similar, but have different intended clients and communication protocols. harbor-scanner-trivy exposes the REST API which is consumed by Harbor core services, whereas Trivy server exposes gRPC endpoint consumable by Trivy client.

That said, the following command won't work:

$ trivy client --remote https://harbor-trivy.mydomain:8443 image:tag

I hope it's clear now. /cc @knqyf263

from harbor-scanner-trivy.

knqyf263 avatar knqyf263 commented on June 1, 2024 1

It's not gRPC, but twirp over ProtocolBuffer. Anyway, Trivy client is designed to send a request to Trivy server launched by $ trivy server exposing twirp endpoint. As @danielpacak said, harbor-scanner-trivy is intended to take a request from Harbor core services. They are different servers.

from harbor-scanner-trivy.

vzanlnx avatar vzanlnx commented on June 1, 2024

Thanks for your quick answer on this, much appreciated.

So, is there a supported way to deploy a trivy server on k8s in order to use this way I want?

So I may have two trivy deployments in my k8s cluster, one for harbor and another one for use with client --remote. Is there some doc on this? I didn`t find one.

let me know if my question is not clear.

thanks!

from harbor-scanner-trivy.

danielpacak avatar danielpacak commented on June 1, 2024

Closing this one as we've answered the original question. There's a follow up created #77

from harbor-scanner-trivy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.