Coder Social home page Coder Social logo

Comments (4)

kreamkorokke avatar kreamkorokke commented on July 17, 2024

Hi @JacksonRin I think for some checks the remediation column does have links to further details, which might give more context on how and why the implemented checks are useful. We are also planning on adding some tests with sample input yaml files that would trigger these defaults checks, which could maybe help to understand the implications of checks as well.

As for the reasons we chose these checks to start with, we are starting with some commonly observed security pitfalls among k8s manifests. It is a growing set and we do plan to include more to help make this linter more robust.

from kube-linter.

viswajithiii avatar viswajithiii commented on July 17, 2024

@JacksonRin To add to what Koki said, you can also find read more about these (and other) security best practices for Kubernetes in a wiki that we maintain at https://www.stackrox.com/wiki/.

from kube-linter.

JacksonRin avatar JacksonRin commented on July 17, 2024

there is a specific question of env-var-secret check.
I've read the refer link:https://kubernetes.io/docs/concepts/configuration/secret/#using-secrets,but I still can not find out why the pod should use secret file instead of env,so I am confused yet

from kube-linter.

viswajithiii avatar viswajithiii commented on July 17, 2024

there is a specific question of env-var-secret check.
I've read the refer link:https://kubernetes.io/docs/concepts/configuration/secret/#using-secrets,but I still can not find out why the pod should use secret file instead of env,so I am confused yet

@JacksonRin Sorry for missing this. To clarify, it is okay to use secrets in an environment variable as long as you reference a Kubernetes secret and use envFrom as the value. However, putting a environment key value pair directly in the deployment (for example: key: AWS_SECRET_KEY and value: s2f121qf12521gq) is insecure, because it will show up as part of the deployment spec, which is not guarded closely by Kubernetes at all, and is accessible in a wide variety of locations by default. Hope that helps!

from kube-linter.

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.