Skip to content

akto-api-security/istio-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

envoy module for istio

This module is used to send traffic to akto from envoy proxy in an istio setup

The lua-rdkafka module is referenced from here: https://github.com/qiuyifan/luardkafka

Steps to deploy:

  1. We need some dependencies inside the istio-proxy container to run akto traffic collector. To create the container clone this repo and run the following commands.
docker build . -t <your-docker-id>:istio-proxy
docker push <your-docker-id>:istio-proxy
  1. Istio allows us to use custom istio-proxy containers for any pod. We will add the container we created to the pod from which we want to send data to akto. For more information on custom istio-proxy you can check the official docs. You also need to add the You can add the istio-proxy container as follows:
...
    spec:
      serviceAccountName: echo-server
      containers:
      - name: echo-server
        image: coastaldemigod/echo-server:latest
        imagePullPolicy: IfNotPresent
        ports:
        - containerPort: 9080
        volumeMounts:
        - name: tmp
          mountPath: /tmp
        # do not change the name of the container, it is used by istio to identify the istio-proxy sidecars.
      - name: istio-proxy
        image: <your-docker-id>/istio-proxy:latest
        env:
        - name: AKTO_KAFKA_IP
          # you will find this on your akto dashboard after you've deployed the traffic processing stack using akto.
          value: "<AKTO_NLB_IP>:9092"
      volumes:
      - name: tmp
        emptyDir: {}
...
  1. After modifying the configuration, apply it in your kubernetes cluster.
kubectl apply -f <your-deployment-file>
  1. Now we will add the envoy filter to the istio-proxy containers. For more information on custom envoy filters you can check the official docs. To add that run the following command. You can modify the "match" conditions in the file according to your deployment.

Note: You can configure the filter according to your needs, and modify the kafka-ip and akto traffic read limit.

kubectl apply -f akto-envoy-filter.yaml

To delete :

kubectl delete -f akto-envoy-filter.yaml

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published