Giter VIP home page Giter VIP logo

Comments (8)

yaleman avatar yaleman commented on June 9, 2024 1

I looked into this and trivy doesn't like our containers, and can't realistically handle the Cargo.toml/lock file, because we have multiple due to the workspace. We'd have to build the binaries with cargo-auditable for this to have a hope of working.

from kanidm.

yaleman avatar yaleman commented on June 9, 2024

We're probably better off just including the Cargo.lock and Cargo.toml in the container than moving from just building with cargo, and introducing other possible issues.

from kanidm.

Firstyear avatar Firstyear commented on June 9, 2024

I'm happy with either approach. We use cargo-auditable at SUSE for our binaries which works well, but I think it's just as easy for us in containers to ensure the Cargo.lock is installed into the image.

from kanidm.

harshalmittal4 avatar harshalmittal4 commented on June 9, 2024

Hello,
will adding the commnd COPY /Cargo.toml /Cargo.lock /usr/src/kanidm/ to /server/Dockerfile help here. I'd like to get some advice and pick this. Thanks

from kanidm.

yaleman avatar yaleman commented on June 9, 2024

Their docs are here, give it a go https://aquasecurity.github.io/trivy/v0.49/docs/coverage/language/rust/

from kanidm.

harshalmittal4 avatar harshalmittal4 commented on June 9, 2024

I went through it and the above discussion. It appeared that including the Cargo.lock and Cargo.toml will help trivy scans. So wished to ask

will adding the commnd COPY /Cargo.toml /Cargo.lock /usr/src/kanidm/ to /server/Dockerfile help here.

is enough to include the files in the image or some more steps will be needed

from kanidm.

yaleman avatar yaleman commented on June 9, 2024

I went through it and the above discussion. It appeared that including the Cargo.lock and Cargo.toml will help trivy scans. So wished to ask

will adding the commnd COPY /Cargo.toml /Cargo.lock /usr/src/kanidm/ to /server/Dockerfile help here.

is enough to include the files in the image or some more steps will be needed

You'll have to test it - it's an outside tool we haven't used before - unless @schleichardt knows from experience?

from kanidm.

Firstyear avatar Firstyear commented on June 9, 2024

We do have cargo auditable in opensuse so it wouldn't be hard to add it ....

from kanidm.

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.