Kubernetes Security

Introduction

One of Tutela’s features is the ability to ingest reports from the Trivy Kubernetes Operator. This k8s operator runs every time there is a change in the k8s cluster (such as adding a container, role, node, etc…) and runs a variety of security checks on the added resource.

The security checks are then compiled into a report which is sent to Tutela for further processing.

In this walk-through we show how to set this up in Tutela.

Getting Started

  1. Login to Tutela

  2. Navigate to Settings

  3. Create a new API Key

K8S Operator setup

In this article we use kubectl.

  • Run the following commands

kubectl apply -f https://raw.githubusercontent.com/aquasecurity/trivy-operator/v0.23.0/deploy/static/trivy-operator.yaml

kubectl get deployment -n trivy-system

# Ensure you see "trivy-operator" running in the output of the above command
# For logs: kubectl logs deployment/trivy-operator -n trivy-system

kubectl -- edit deployment trivy-operator -n trivy-system

For alternative installation options please consult the documentation

At this point a text editor will open and allow you to change the configuration of the trivy-operator deployment. We will add two environment variables that will instruct the deployment to start sending reports to Tutela.

Find the env section and add the below lines:

- name: OPERATOR_WEBHOOK_BROADCAST_URL
  value: https://cs-vas-backend.cybersift.io/k8s/reportSubmission
- name: OPERATOR_WEBHOOK_BROADCAST_CUSTOM_HEADERS
  value: X-Tutela-API:<YOUR API KEY>

⚠️ Trial Users

- name: OPERATOR_WEBHOOK_BROADCAST_URL
  value: https://trial-backend.tutela.cybersift.io/reportSubmission
- name: OPERATOR_WEBHOOK_BROADCAST_CUSTOM_HEADERS
  value: X-Tutela-API:<YOUR API KEY>


tags:

  • Tutela Kubernetes

  • K8S

  • Trivy