Categorygithub.com/tks98/kube-sentry
repositorypackage
0.1.0
Repository: https://github.com/tks98/kube-sentry.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

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

ArgumentDescription
tlsCertFileLocation of the TLS certificate
tlsKeyFileLocation of the TLS private key
logLevelSpecifies the logging level (info or debug)
insecureIf trivy scan request should be insecure
listenAddrAddress for kube-senty to listen for validation requests
metricsAddrAddress to serve prometheus metrics
trivyAddrAddress of the trivy server to send scan request
trivySchemeScheme to communicate to remote trivy server
metricsLabelsSpecifies the metrics labels to export. If not given, will export all
sentryModeEnables rejecting pods based on trivy scan results
forbiddenCvesSpecifies which CVEs in images causes pod validation to fail
numCriticalCvesMax number of critical CVEs pod images can have
numAllowedCvesMax number of CVEs pod images can have

Contributing

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