Envoy Quickstart
Get your first 403 in under 5 minutes.
Prerequisites
- Kubernetes cluster (minikube, kind, or cloud)
- kubectl configured
- curl
Steps
1. Deploy Everything
kubectl apply -f https://raw.githubusercontent.com/tenuo-ai/tenuo/main/docs/quickstart/envoy/all-in-one.yaml
This creates the tenuo-system namespace with:
- Tenuo authorizer (verifies warrants)
- Envoy proxy (ext_authz filter)
- httpbin (test backend)
2. Wait for Pods
kubectl wait --for=condition=ready pod -l app=envoy -n tenuo-system --timeout=60s
3. Port Forward
kubectl port-forward -n tenuo-system svc/envoy 8080:8080 &
4. Test Without Warrant
curl -i http://localhost:8080/get
Expected:
HTTP/1.1 403 Forbidden
x-tenuo-deny-reason: missing_warrant
5. Test With Warrant
For demo purposes, the authorizer accepts a test warrant. In production, warrants come from your control plane.
# Demo warrant (pre-signed, expires in 24h)
WARRANT="eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSJ9..."
curl -i -H "X-Tenuo-Warrant: $WARRANT" http://localhost:8080/get
See the Kubernetes Guide for issuing real warrants.
Architecture
Client --> Envoy --> Tenuo Authorizer --> httpbin
| |
| (verify) |
|<-----------+
|
+--> (forward if 200)
- Request arrives at Envoy with
X-Tenuo-Warrantheader - Envoy’s ext_authz filter calls Tenuo authorizer
- Tenuo verifies signature, expiry, and constraints
- Envoy forwards to backend only if Tenuo returns 200
Troubleshooting
Check authorizer logs:
kubectl logs -n tenuo-system -l app=tenuo-authorizer --tail=20
Check Envoy logs:
kubectl logs -n tenuo-system -l app=envoy --tail=20
List pods:
kubectl get pods -n tenuo-system
Next Steps
- Istio Quickstart - Service mesh alternative
- Kubernetes Guide - Production patterns
- Proxy Configs - Full Envoy config reference
Clean Up
kubectl delete -f https://raw.githubusercontent.com/tenuo-ai/tenuo/main/docs/quickstart/envoy/all-in-one.yaml