GithubHelp home page GithubHelp logo

tks98 / kube-sentry Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 10.75 MB

Defend against high-risk workloads and gain visibility into vulnerable containers running on Kubernetes

License: Apache License 2.0

Go 90.64% Smarty 7.16% Dockerfile 2.20%
admission-webhook devsecops golang kubernetes kubernetes-security vulnerability-management

kube-sentry's Introduction

kube-sentry

Defend against high-risk workloads and gain visibility into vulnerable containers running on Kubernetes

Introduction

kube-sentry is a validating admission webhook for Kubernetes that scans incoming container images for vulnerabilities, exports scan results to prometheus, and can prevent pods from being created based on user specified rules.

kube-sentry

Installation

kube-sentry can be installed with the included helm chart.

kube-sentry-demo

helm install kube-sentry -n kube-sentry . --wait 

Dependencies

kube-sentry requires a remote trivy server for scanning container images. By default, it is installed as a chart dependency.

Documentation

The documentation directory "docs" contains information on how to configure kube-sentry certificates, validation-rules, and metrics.

Configuration

Argument Description
tlsCertFile Location of the TLS certificate
tlsKeyFile Location of the TLS private key
logLevel Specifies the logging level (info or debug)
insecure If trivy scan request should be insecure
listenAddr Address for kube-senty to listen for validation requests
metricsAddr Address to serve prometheus metrics
trivyAddr Address of the trivy server to send scan request
trivyScheme Scheme to communicate to remote trivy server
metricsLabels Specifies the metrics labels to export. If not given, will export all
sentryMode Enables rejecting pods based on trivy scan results
forbiddenCves Specifies which CVEs in images causes pod validation to fail
numCriticalCves Max number of critical CVEs pod images can have
numAllowedCves Max number of CVEs pod images can have

Contributing

Contributions are always welcome. Please open an issue to discuss what you would like to change.

kube-sentry's People

Contributors

tks98 avatar

Stargazers

 avatar

Watchers

 avatar

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.