Code Monkey home page Code Monkey logo

Comments (4)

maxsmythe avatar maxsmythe commented on July 2, 2024

Hi, thanks for the contribution!

I have a couple of questions:

  1. What is the difficulty with creating a PR? Is there anything we can do help with that? It's much easier to review and comment on code when we can read the diff.

  2. What is the bug you're looking to fix? Taking a look at the diff it seems like you are removing an explicit check for field existence, which seems to leave the policy vulnerable to approving pods with missing security contexts. Is there something I'm missing?

from gatekeeper-library.

maxsmythe avatar maxsmythe commented on July 2, 2024

Closing, please re-open if there is more follow up.

from gatekeeper-library.

jonny-wg2 avatar jonny-wg2 commented on July 2, 2024

@maxsmythe I am unable to push a pr..

 git push --set-upstream origin update-policies
ERROR: Permission to open-policy-agent/gatekeeper.git denied to jonny-wg2.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Essentially, the reason is to indeed remove the check for the field of securityContext because many pods will not have yet these policies will then fail.

from gatekeeper-library.

maxsmythe avatar maxsmythe commented on July 2, 2024

Ah, WRT the PR, for GitHub what you do is fork the Gatekeeper repository, then push your PR to a branch on your personal fork, then the shell will print out a link for creating a PR on GitHub.

However, I think we want to require these fields exist, as without them the required security trait (e.g. privilege escalation is not allowed), is missing. Or am I missing something?

@ritazh it also looks like K8sPSPAllowPrivilegeEscalationContainer is misnamed... shouldn't it be K8sPSPDisallowPrivilegeEscalationContainer as we are denying containers with privilege escalation?

from gatekeeper-library.

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.