yeti
A Helm chart for Yeti Kubernetes deployments.
About this chart
Yeti Helm Chart
Yeti is a open-source platform meant to organize observables, indicators of compromise, TTPs, and knowledge on threats in a single, unified repository
TL;DR
helm repo add osdfir-charts https://google.github.io/osdfir-infrastructure/
helm install my-release osdfir-charts/yeti
Note: By default, Yeti is not externally accessible and can be reached via
kubectl port-forwardwithin the cluster.
For a quick start with a local Kubernetes cluster on your desktop, check out the getting started with Minikube guide.
Introduction
This chart bootstraps a Yeti deployment on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.19+
- Helm 3.2.0+
- PV provisioner support in the underlying infrastructure
Installing the Chart
The first step is to add the repo and then update to pick up any new changes.
helm repo add osdfir-charts https://google.github.io/osdfir-infrastructure/
helm repo update
To install the chart, specify any release name of your choice. For example, using my-release as the release name, run:
helm install my-release osdfir-charts/yeti
The command deploys Yeti on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.
Uninstalling the Chart
To uninstall/delete a Helm deployment with a release name of my-release:
helm uninstall my-release
Tip: Please update based on the release name chosen. You can list all releases using
helm list
The command removes all the Kubernetes components but Persistent Volumes (PVC) associated with the chart and deletes the release.
To delete the PVC's associated with a release name of my-release:
kubectl delete pvc -l release=my-release
Note: Deleting the PVC's will delete Yeti data as well. Please be cautious before doing it.
Parameters
Global parameters
| Name | Description | Value |
|---|---|---|
global.timesketch.enabled | Enables the Timesketch deployment (only used in the main OSDFIR Infrastructure Helm chart) | false |
global.timesketch.servicePort | Timesketch service port (overrides timesketch.service.port) | nil |
global.turbinia.enabled | Enables the Turbinia deployment (only used within the main OSDFIR Infrastructure Helm chart) | false |
global.turbinia.servicePort | Turbinia API service port (overrides turbinia.service.port) | nil |
global.yeti.enabled | Enables the Yeti deployment (only used in the main OSDFIR Infrastructure Helm chart) | false |
global.yeti.servicePort | Yeti API service port (overrides yeti.api.service.port) | nil |
global.ingress.enabled | Enable the global loadbalancer for external access (only used in the main OSDFIR Infrastructure Helm chart) | false |
global.existingPVC | Existing claim for Yeti persistent volume (overrides persistent.name) | "" |
global.storageClass | StorageClass for the Yeti persistent volume (overrides persistent.storageClass) | "" |
Yeti configuration
Yeti frontend configuration
| Name | Description | Value |
|---|---|---|
frontend.image.repository | Yeti frontend image repository | yetiplatform/yeti-frontend |
frontend.image.pullPolicy | Yeti image pull policy | Always |
frontend.image.tag | Overrides the image tag whose default is the chart appVersion | latest |
frontend.image.imagePullSecrets | Specify secrets if pulling from a private repository | [] |
frontend.podSecurityContext | Holds pod-level security attributes and common server container settings | {} |
frontend.securityContext | Holds security configuration that will be applied to the server container | {} |
frontend.resources.limits | Resource limits for the frontend container | {} |
frontend.resources.requests | Requested resources for the frontend container | {} |
frontend.nodeSelector | Node labels for Yeti frontend pods assignment | {} |
frontend.tolerations | Tolerations for Yeti frontend pods assignment | [] |
frontend.affinity | Affinity for Yeti frontend pods assignment | {} |
Yeti api configuration
| Name | Description | Value |
|---|---|---|
api.image.repository | Yeti API image repository | yetiplatform/yeti |
api.image.pullPolicy | Yeti image pull policy | Always |
api.image.tag | Overrides the image tag whose default is the chart appVersion | latest |
api.image.imagePullSecrets | Specify secrets if pulling from a private repository | [] |
api.podSecurityContext | Holds pod-level security attributes and common API container settings | {} |
api.securityContext | Holds security configuration that will be applied to the API container | {} |
api.resources.limits | Resource limits for the API container | {} |
api.resources.requests | Requested resources for the API container | {} |
api.nodeSelector | Node labels for Yeti API pods assignment | {} |
api.tolerations | Tolerations for Yeti API pods assignment | [] |
api.affinity | Affinity for Yeti API pods assignment | {} |
Yeti Tasks configuration
| Name | Description | Value |
|---|---|---|
tasks.image.repository | Yeti tasks image repository | yetiplatform/yeti |
tasks.image.pullPolicy | Yeti image pull policy | Always |
tasks.image.tag | Overrides the image tag whose default is the chart appVersion | latest |
tasks.image.imagePullSecrets | Specify secrets if pulling from a private repository | [] |
tasks.podSecurityContext | Holds pod-level security attributes and common tasks container settings | {} |
tasks.securityContext | Holds security configuration that will be applied to the tasks container | {} |
tasks.resources.limits | Resource limits for the tasks container | {} |
tasks.resources.requests | Requested resources for the tasks container | {} |
tasks.nodeSelector | Node labels for Yeti tasks pods assignment | {} |
tasks.tolerations | Tolerations for Yeti tasks pods assignment | [] |
tasks.affinity | Affinity for Yeti tasks pods assignment | {} |
Common Parameters
| Name | Description | Value |
|---|---|---|
serviceAccount.create | Specifies whether a service account should be created | true |
serviceAccount.annotations | Annotations to add to the service account | {} |
serviceAccount.name | The name of the service account to use | yeti |
service.type | Yeti service type | ClusterIP |
service.port | Yeti service port | 9000 |
Yeti Configuration Parameters
| Name | Description | Value |
|---|---|---|
config.oidc.enabled | Enables Yeti OIDC authentication (currently only supports Google OIDC) | false |
config.oidc.existingSecret | Existing secret with the client ID, secret and cookie secret | "" |
metrics.enabled | Enables metrics scraping | true |
metrics.port | Port to scrape metrics from | 9200 |
persistence.name | Yeti persistent volume name | yetivolume |
persistence.size | Yeti persistent volume size | 2Gi |
persistence.storageClass | PVC Storage Class for Yeti volume | "" |
persistence.accessModes | PVC Access Mode for Yeti volume | ["ReadWriteOnce"] |
ingress.enabled | Enable the Yeti loadbalancer for external access | false |
ingress.host | Domain name Yeti will be hosted under | "" |
ingress.className | IngressClass that will be be used to implement the Ingress | gce |
ingress.selfSigned | Create a TLS secret for this ingress record using self-signed certificates generated by Helm | false |
ingress.certManager | Add the corresponding annotations for cert-manager integration | false |
ingress.gcp.managedCertificates | Enables GCP managed certificates for your domain | false |
ingress.gcp.staticIPName | Name of the static IP address you reserved in GCP. Required when using "gce" in ingress.className | "" |
ingress.gcp.staticIPV6Name | Name of the static IPV6 address you reserved in GCP. This can be optionally provided to deploy a loadbalancer with an IPV6 address | "" |
Third Party Configuration
Redis Configuration Parameters
| Name | Description | Value | | ----------------------------------- | -----------------------------------------------------------------
Deploy yeti with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has yeti on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartyeti is pinned at v1.0.5 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply