hawk-envoy-plugin

by PrivacyEngineering

Helm chartv0.1.0App 1.16.0

A Helm chart for Kubernetes

About this chart

hawk-envoy-proxy

Extension for istio envoy to allow trace personal data between rest microservices in kubernetes

Helm Chart

This helm chart is used to deploy the envoy filter in a target kubernetes-namespace.

Deployment through Helm

  1. Add the helm chart repository (if not already done):
    helm repo add hawk https://privacyengineering.github.io/hawk-helm-charts/
    
  2. Install the istio service mesh using istioctl with the demo profile:
    istioctl install --set profile=default -y
    
  3. Create the namespace where hawk is intended to be applied:
    kubectl create namespace sock-shop
    
  4. Create values.yaml and modify to your needs (see default values in values.yaml and the documentation for Parameters):
    cat <<EOF > values.yaml
    # example values.yaml
    hawkEnvoyPlugin:
      namespace: sock-shop
      hawkServiceApiUrl: http://hawk-service.hawk.svc.cluster.local/api
      httpbin: true
    EOF
    
  5. Install hawk envoy plugin and all it's services:
    helm dependency update
    helm install -f values.yaml sock-shop-hawk-ep hawk/hawk-envoy-plugin --namespace hawk-envoy-plugin --create-namespace
    
  6. Install the rest of the demo architecture:
    kubectl apply -f ./02.sock-shop/
    

Prerequisites

  • Kubernetes 1.16+
  • Helm 3.0+
  • Istio 1.6+
  • Hawk

Parameters

Hawk-envoy-plugin parameters

NameDescriptionValue
hawkEnvoyPlugin.namespaceThe target namespace to collect tracing data from"sock-shop"
hawkEnvoyPlugin.hawkServiceApiUrlHawk Service Api Url in url-schemahttp://hawk-service.hawk.svc.cluster.local/api
hawkEnvoyPlugin.httpbinWhether a httpbin-namespace should be created for testing purposestrue

Testing hawk-envoy-plugin

To test the plugin, the helm-chart uses the httpbin-namespace, which is created by the helm chart.

Note: The httpbin-namespace is only created if the hawkEnvoyPlugin.httpbin parameter is set to true.

helm test -n hawk-envoy-plugin sock-shop-hawk-ep --logs

Deploy hawk-envoy-plugin with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has hawk-envoy-plugin 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the charthawk-envoy-plugin is pinned at v0.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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