Giter Club home page Giter Club logo

Comments (9)

kushaldas avatar kushaldas commented on July 4, 2024 2

I would like to implement that --policy-insecure-allow-anything option if that is okay with you all.

from skopeo.

runcom avatar runcom commented on July 4, 2024

(I'm not totally sure about this proposal because if you happen to compile from source then you probably know you have to cp default-policy.json /etc/containers/policy.json and if you install from distros, probably the distro is taking care of installing /etc/containers/policy.json for you)

from skopeo.

mtrmac avatar mtrmac commented on July 4, 2024

Yeah, this was highlighted in #157 .

The default absolutely must be to use the config file (instead of security being opt-in), and then it IMHO only makes sense to fail if that file unexpectedly disappears.

I wouldn’t be philosophically opposed to something like --policy-insecure-allow-anything instead of requiring the users to keep a permissive policy file around, but I also won’t work on it this month, and I’m not sure that it is all that more convenient than --policy $insecure-policy.json.

For development, yeah, run make install. Or there could be a make debug-build which uses -ldflags "-X github.com/containers/image/signature.systemDefaultPolicyPath=$(pwd)/default-policy.json", but then I would be rather worried about such a build getting to a released package somewhere.

from skopeo.

runcom avatar runcom commented on July 4, 2024

For development, yeah, run make install. Or there could be a make debug-build which uses -ldflags "-X github.com/containers/image/signature.systemDefaultPolicyPath=$(pwd)/default-policy.json", but then I would be rather worried about such a build getting to a released package somewhere.

right, it will be hard to enforce this, though debug-build or dev-build makes a lot of sense to me

from skopeo.

kushaldas avatar kushaldas commented on July 4, 2024

I have a small patch with skopeo --policy-insecure-allow-anything copy docker://busybox oci:busybox working. But as this is my first day here, I would love to know if there is a better way (read any API call) to create an insecurepolicy than using a space-stripped JSON string as a variable?

from skopeo.

rhatdan avatar rhatdan commented on July 4, 2024

Can we just call it --insecure?

from skopeo.

runcom avatar runcom commented on July 4, 2024

Can we just call it --insecure?

same for me

from skopeo.

kushaldas avatar kushaldas commented on July 4, 2024

Will modify the flag, and update the PR.

from skopeo.

mtrmac avatar mtrmac commented on July 4, 2024

I would love to know if there is a better way (read any API call) to create an insecurepolicy than using a space-stripped JSON string as a variable?

https://github.com/projectatomic/skopeo/pull/203/files#r78563547 this is hopefully a stable API.

from skopeo.

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.