# Revetment on GKE -- raw terminal transcript, 2026-11-17 (UTC timestamps). # Attempt 1 stopped at billing (billing account at its project-link quota); attempt 2 is the verified run on the other billing account. # Every command ran via a wrapper that sets KUBECONFIG to a per-cluster file. Project numbers, billing account IDs, emails, tokens and operation IDs are redacted. ########## ATTEMPT 1 ########## ### 2026-11-17T12:21:42Z $ P=$(cat project-id) gcloud projects create $P --name="revetment guide test" --labels=project=revetment-guide-test --quiet 2>&1 | grep -v "^Create in progress" gcloud billing projects link $P --billing-account= --format="value(billingEnabled)" gcloud services enable container.googleapis.com --project=$P --quiet gcloud config get-value project 2>&1 | tail -1 Waiting for [operations/ to finish... .done. Enabling service [cloudapis.googleapis.com] on project [revetment-guide-test-795f51]... Operation "operations/" finished successfully. ERROR: (gcloud.billing.projects.link) FAILED_PRECONDITION: Precondition check failed. - '@type': type.googleapis.com/google.rpc.QuotaFailure violations: - description: 'Cloud billing quota exceeded: https://support.google.com/code/contact/billing_quota_increase' subject: billingAccounts/ ERROR: (gcloud.services.enable) FAILED_PRECONDITION: Billing account for project '' is not found. Billing must be enabled for activation of service(s) 'container.googleapis.com,artifactregistry.googleapis.com,compute.googleapis.com,containerregistry.googleapis.com,dns.googleapis.com' to proceed. Help Token: - '@type': type.googleapis.com/google.rpc.PreconditionFailure violations: - subject: ?error_code=390001&project=&services=container.googleapis.com&services=artifactregistry.googleapis.com&services=compute.googleapis.com&services=containerregistry.googleapis.com&services=dns.googleapis.com type: googleapis.com/billing-enabled - '@type': type.googleapis.com/google.rpc.ErrorInfo domain: serviceusage.googleapis.com/billing-enabled metadata: project: '' services: container.googleapis.com,artifactregistry.googleapis.com,compute.googleapis.com,containerregistry.googleapis.com,dns.googleapis.com reason: UREQ_PROJECT_BILLING_NOT_FOUND (unset) [exit 0, 9s] ### 2026-11-17T12:21:58Z $ P=$(cat project-id) gcloud billing projects describe $P --format="value(billingEnabled,billingAccountName)" gcloud projects delete $P --quiet 2>&1 | tail -2 gcloud projects describe $P --format="value(projectId,lifecycleState)" gcloud projects list --filter="projectId:revetment-guide*" --format="value(projectId)" echo "linked projects on the chosen billing account: $(gcloud billing projects list --billing-account= --format="value(projectId)" | wc -l | tr -d " ")" gcloud config get-value project 2>&1 | tail -1 False See https://cloud.google.com/resource-manager/docs/creating-managing-projects for information on shutting down projects. revetment-guide-test-795f51 DELETE_REQUESTED ERROR: (gcloud.billing.projects.list) FAILED_PRECONDITION: Precondition check failed. linked projects on the chosen billing account: 0 (unset) [exit 0, 10s] ########## ATTEMPT 2 ########## ### 2026-11-17T12:27:18Z $ P=$(cat project-id); echo project=$P gcloud projects create $P --name="revetment guide test" --labels=project=revetment-guide-test --quiet 2>&1 | grep -v "^Create in progress" gcloud billing projects link $P --billing-account= --format="value(billingEnabled)" gcloud services enable container.googleapis.com --project=$P --quiet gcloud config get-value project 2>&1 | tail -1 project=revetment-guide-test-a80608 Waiting for [operations/ to finish... .done. Enabling service [cloudapis.googleapis.com] on project [revetment-guide-test-a80608]... Operation "operations/" finished successfully. True Operation "operations/" finished successfully. (unset) [exit 0, 80s] ### 2026-11-17T12:28:45Z $ P=$(cat project-id) gcloud container clusters create revetment-guide-gke --project=$P --zone=us-central1-a \ --num-nodes=2 --machine-type=e2-standard-2 --disk-size=30 \ --labels=project=revetment-guide-test --quiet 2>&1 | grep -vE "^(Note|Creating cluster)" | tail -6 ..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................done. Created [https://container.googleapis.com/v1/projects/revetment-guide-test-a80608/zones/us-central1-a/clusters/revetment-guide-gke]. To inspect the contents of your cluster, go to: https://console.cloud.google.com/kubernetes/workload_/gcloud/us-central1-a/revetment-guide-gke?project=revetment-guide-test-a80608 kubeconfig entry generated for revetment-guide-gke. NAME LOCATION MASTER_VERSION MASTER_IP MACHINE_TYPE NODE_VERSION NUM_NODES STATUS STACK_TYPE revetment-guide-gke us-central1-a 1.36.4-gke.2377000 34.170.155.63 e2-standard-2 1.36.4-gke.2377000 2 RUNNING IPV4 [exit 0, 423s] ### 2026-11-17T12:35:55Z $ P=$(cat project-id) gcloud container clusters get-credentials revetment-guide-gke --project=$P --zone=us-central1-a 2>&1 | tail -1 chmod 600 $KUBECONFIG kubectl config current-context | sed "s/$P//" kubectl get nodes kubectl get crd | grep -E "gateway.networking|envoyproxy" || echo "no Gateway API CRDs" kubectl get storageclass kubectl get gatewayclass 2>&1 | head -5 kubeconfig entry generated for revetment-guide-gke. gke__us-central1-a_revetment-guide-gke NAME STATUS ROLES AGE VERSION gke-revetment-guide-gke-default-pool-2600baea-4qrw Ready 37s v1.36.4-gke.2377000 gke-revetment-guide-gke-default-pool-2600baea-jwqd Ready 38s v1.36.4-gke.2377000 no Gateway API CRDs NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE dynamic-rwo pd.csi.storage.gke.io Delete WaitForFirstConsumer true 31s enterprise-multishare-rwx filestore.csi.storage.gke.io Delete WaitForFirstConsumer true 96s enterprise-rwx filestore.csi.storage.gke.io Delete WaitForFirstConsumer true 95s premium-rwo pd.csi.storage.gke.io Delete WaitForFirstConsumer true 32s premium-rwx filestore.csi.storage.gke.io Delete WaitForFirstConsumer true 96s regional-rwx filestore.csi.storage.gke.io Delete WaitForFirstConsumer true 97s standard kubernetes.io/gce-pd Delete Immediate true 32s standard-rwo (default) pd.csi.storage.gke.io Delete WaitForFirstConsumer true 32s standard-rwx filestore.csi.storage.gke.io Delete WaitForFirstConsumer true 96s zonal-rwx filestore.csi.storage.gke.io Delete WaitForFirstConsumer true 95s error: the server doesn't have a resource type "gatewayclass" [exit 1, 4s] ### 2026-11-17T12:36:10Z $ set -e; P=$(cat project-id); [ "$(kubectl config current-context)" = "gke_${P}_us-central1-a_revetment-guide-gke" ] t(){ echo "--- [$(date -u +%H:%M:%S)] $*"; } t "envoy gateway" helm install eg oci://docker.io/envoyproxy/gateway-helm --version v1.8.3 -n envoy-gateway-system --create-namespace --wait --timeout 5m | grep -E "STATUS|REVISION" kubectl -n envoy-gateway-system get pods t "ingest secret + chart" umask 077; openssl rand -hex 32 | tr -d "\n" > ingest-token kubectl create namespace revetment-system kubectl -n revetment-system create secret generic revetment-ingest --from-file=token=ingest-token kubectl -n envoy-gateway-system create secret generic revetment-ingest --from-file=token=ingest-token rm -f ingest-token helm install revetment oci://registry.revetment.io/charts/revetment --version 0.1.0-722813e98f02 -n revetment-system -f revetment-values.yaml --wait --timeout 5m | grep -E "STATUS|REVISION" kubectl -n revetment-system get deploy,pvc t "envoyproxy + demo" kubectl apply -f envoyproxy.yaml -f demo.yaml kubectl -n demo wait --for=condition=Programmed gateway/demo --timeout=300s kubectl -n demo rollout status deploy/echo --timeout=120s t "programmed" kubectl -n demo get gateway demo GW=$(kubectl -n demo get gateway demo -o jsonpath="{.status.addresses[0].value}") until [ "$(curl -s -o /dev/null -w "%{http_code}" --max-time 5 http://$GW/)" = 200 ]; do sleep 5; done t "LB answering" curl -s -o /dev/null -w "before policy, sqli: %{http_code}\n" "http://$GW/?id=1%27%20OR%20%271%27%3D%271" kubectl get pods -n envoy-gateway-system -l gateway.envoyproxy.io/owning-gateway-name=demo -o jsonpath="{.items[*].spec.containers[?(@.name==\"envoy\")].image}{\"\n\"}" --- [12:36:10] envoy gateway Pulled: docker.io/envoyproxy/gateway-helm:v1.8.3 Digest: sha256:cfb34ff4266c87a394cd6be5c13607a2dd47083aef771368302eaeaa99c4a0a9 STATUS: deployed REVISION: 1 NAME READY STATUS RESTARTS AGE eg-gateway-helm-certgen-4jd2j 0/1 Completed 0 27s envoy-gateway-6cbcdc4786-jwtz9 1/1 Running 0 14s --- [12:37:05] ingest secret + chart namespace/revetment-system created secret/revetment-ingest created secret/revetment-ingest created Pulled: registry.revetment.io/charts/revetment:0.1.0-722813e98f02 Digest: sha256:99215f305ab9c0cbbdd390f53655f87e3fb01b6bfcda30ad2d9b6eb53fb06382 STATUS: deployed REVISION: 1 NAME READY UP-TO-DATE AVAILABLE AGE deployment.apps/revetment-control-plane 1/1 1 1 29s deployment.apps/revetment-controller 1/1 1 1 29s NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS VOLUMEATTRIBUTESCLASS AGE persistentvolumeclaim/revetment-control-plane-data Bound pvc-8c870b14-4083-48b3-9644-58f792d798b2 1Gi RWO standard-rwo 30s --- [12:37:44] envoyproxy + demo envoyproxy.gateway.envoyproxy.io/revetment-proxy created gatewayclass.gateway.networking.k8s.io/revetment created namespace/demo created deployment.apps/echo created service/echo created gateway.gateway.networking.k8s.io/demo created httproute.gateway.networking.k8s.io/echo created gateway.gateway.networking.k8s.io/demo condition met deployment "echo" successfully rolled out --- [12:38:55] programmed NAME CLASS ADDRESS PROGRAMMED AGE demo revetment 34.121.183.105 True 68s --- [12:39:27] LB answering before policy, sqli: 200 registry.revetment.io/data-plane:0.1.0@sha256:e17df8a82f680ea3e00f4c6263f975c986be89aaf012d6b4e5b1200d9c7930f1 [exit 0, 197s] ### 2026-11-17T12:39:53Z $ set -e; P=$(cat project-id); [ "$(kubectl config current-context)" = "gke_${P}_us-central1-a_revetment-guide-gke" ] t(){ echo "--- [$(date -u +%H:%M:%S)] $*"; } GW=$(kubectl -n demo get gateway demo -o jsonpath="{.status.addresses[0].value}") t "shadow policy" kubectl apply -f policy.yaml kubectl -n demo wait --for=jsonpath="{.status.conditions[?(@.type==\"Accepted\")].status}"=True revetmentpolicy/echo --timeout=120s kubectl -n demo get revetmentpolicy echo -o jsonpath="{range .status.conditions[*]}{.type}={.status} reason={.reason} {.message}{\"\n\"}{end}" sleep 15 for i in 1 2 3; do curl -s -o /dev/null -w "benign: %{http_code}\n" "http://$GW/?q=hello" curl -s -o /dev/null -w "sqli: %{http_code}\n" "http://$GW/?id=1%27%20OR%20%271%27%3D%271" curl -s -o /dev/null -w "xss: %{http_code}\n" "http://$GW/?q=%3Cscript%3Ealert(1)%3C%2Fscript%3E" done t "sign in" helm upgrade revetment oci://registry.revetment.io/charts/revetment --version 0.1.0-722813e98f02 -n revetment-system -f revetment-values.yaml -f break-glass.yaml --wait --timeout 5m | grep -E "STATUS|REVISION" umask 077 kubectl -n revetment-system logs deploy/revetment-control-plane | grep -o "token=[0-9a-f]*" | tail -1 | cut -d= -f2 | tr -d "\n" > signin-token kubectl -n revetment-system port-forward svc/revetment-control-plane 18080:8080 >/dev/null 2>&1 & PF=$!; trap "kill $PF" EXIT; sleep 3; CP=http://127.0.0.1:18080 printf "{\"token\":\"%s\"}" "$(cat signin-token)" > verify.json curl -s -o /dev/null -w "verify: %{http_code}\n" -c cookies -X POST $CP/api/auth/verify -H "content-type: application/json" --data-binary @verify.json rm -f verify.json signin-token curl -s -b cookies "$CP/api/events?limit=50" | jq -r ".events[] | [.id, .mode, .verdict, .rule_id, .matched_variable, .upstream_status] | @tsv" t "blocking" kubectl -n demo patch revetmentpolicy echo --type merge -p "{\"spec\":{\"mode\":\"blocking\"}}" sleep 10 kubectl -n demo get revetmentpolicy echo -o jsonpath="{range .status.conditions[*]}{.type}={.status} reason={.reason}{\"\n\"}{end}" for pct in 1 10 100; do ack=$(curl -s -b cookies $CP/api/routes/echo/blast-radius | jq -c "{would_block_requests,distinct_clients,computed_at_unix_ms,computed_through_event_id}") curl -s -o /dev/null -w "promote to $pct%%: %{http_code}\n" -b cookies -X POST $CP/api/routes/echo/promotion -H "content-type: application/json" \ -d "{\"stage_percent\":$pct,\"auto_rollback_threshold\":1.0,\"acknowledged_blast_radius\":$ack}" kubectl -n demo wait --for=jsonpath="{.spec.dynamicModule[0].config.rollout.stagePercent}"=$pct envoyextensionpolicy/echo-revetment --timeout=120s done kubectl -n demo wait --for=jsonpath="{.status.conditions[?(@.type==\"Accepted\")].status}"=True revetmentpolicy/echo --timeout=120s kubectl -n demo get revetmentpolicy echo kubectl -n demo get revetmentpolicy echo -o jsonpath="{range .status.conditions[*]}{.type}={.status} reason={.reason} {.message}{\"\n\"}{end}" sleep 5 for i in 1 2 3; do curl -s -o /dev/null -w "benign: %{http_code}\n" "http://$GW/?q=hello" curl -s -o /dev/null -w "sqli: %{http_code}\n" "http://$GW/?id=1%27%20OR%20%271%27%3D%271" curl -s -o /dev/null -w "xss: %{http_code}\n" "http://$GW/?q=%3Cscript%3Ealert(1)%3C%2Fscript%3E" done curl -s -b cookies "$CP/api/events?limit=3" | jq -r ".events[] | [.id, .mode, .verdict, .rule_id] | @tsv" t "remove break-glass" helm upgrade revetment oci://registry.revetment.io/charts/revetment --version 0.1.0-722813e98f02 -n revetment-system -f revetment-values.yaml --wait --timeout 5m | grep -E "STATUS|REVISION" curl -s -o /dev/null -w "sqli: %{http_code}\n" "http://$GW/?id=1%27%20OR%20%271%27%3D%271" rm -f cookies t done --- [12:39:54] shadow policy revetmentpolicy.revetment.io/echo created revetmentpolicy.revetment.io/echo condition met Accepted=True reason=Accepted attached to route echo (0 exception(s), 0 source rule(s), mode Shadow, stage 100%) benign: 200 sqli: 200 xss: 200 benign: 200 sqli: 200 xss: 200 benign: 200 sqli: 200 xss: 200 --- [12:40:13] sign in Pulled: registry.revetment.io/charts/revetment:0.1.0-722813e98f02 Digest: sha256:99215f305ab9c0cbbdd390f53655f87e3fb01b6bfcda30ad2d9b6eb53fb06382 STATUS: deployed REVISION: 2 verify: 200 6 shadow would_block 941390 ARGS_GET:q 200 5 shadow would_block 942100 ARGS_GET:id 200 4 shadow would_block 941390 ARGS_GET:q 200 3 shadow would_block 942100 ARGS_GET:id 200 2 shadow would_block 941390 ARGS_GET:q 200 1 shadow would_block 942100 ARGS_GET:id 200 --- [12:40:46] blocking revetmentpolicy.revetment.io/echo patched Accepted=False reason=BlockingNotApproved promote to 1%: 201 envoyextensionpolicy.gateway.envoyproxy.io/echo-revetment condition met promote to 10%: 201 envoyextensionpolicy.gateway.envoyproxy.io/echo-revetment condition met promote to 100%: 201 envoyextensionpolicy.gateway.envoyproxy.io/echo-revetment condition met revetmentpolicy.revetment.io/echo condition met NAME MODE ROUTE AGE echo blocking echo 98s Accepted=True reason=Accepted attached to route echo (0 exception(s), 0 source rule(s), mode Blocking, stage 100%) benign: 200 sqli: 403 xss: 403 benign: 200 sqli: 403 xss: 403 benign: 200 sqli: 403 xss: 403 10 blocking block 941390 9 blocking block 942100 8 blocking block 941390 --- [12:41:41] remove break-glass Pulled: registry.revetment.io/charts/revetment:0.1.0-722813e98f02 Digest: sha256:99215f305ab9c0cbbdd390f53655f87e3fb01b6bfcda30ad2d9b6eb53fb06382 STATUS: deployed REVISION: 3 sqli: 403 --- [12:42:22] done bash: line 1: kill: (28704) - No such process [exit 1, 149s] (note: the exit 1 above is the EXIT trap's 'kill' of a port-forward that had already exited when the control-plane pod restarted; every check passed) ### 2026-11-17T12:42:30Z $ bash ../gke/teardown.sh --- [12:42:30] in-cluster cleanup namespace "demo" deleted deployment.apps "echo" deleted from demo namespace service "echo" deleted from demo namespace gateway.gateway.networking.k8s.io "demo" deleted from demo namespace httproute.gateway.networking.k8s.io "echo" deleted from demo namespace These resources were kept due to the resource policy: [PersistentVolumeClaim] revetment-control-plane-data release "revetment" uninstalled persistentvolumeclaim "revetment-control-plane-data" deleted from revetment-system namespace No resources found --- [12:43:12] billable resources in the project before deleting the cluster gke-revetment-guide-gke-default-pool-2600baea-4qrw 30 gke-revetment-guide-gke-default-pool-2600baea-jwqd 30 --- [12:43:14] delete cluster Deleted [https://container.googleapis.com/v1/projects/revetment-guide-test-a80608/zones/us-central1-a/clusters/revetment-guide-gke]. --- [12:48:12] leftovers after cluster delete forwarding rules: 0 target pools: 0 addresses: 0 disks: 0 instances: 0 --- [12:48:17] unlink billing and delete project False See https://cloud.google.com/resource-manager/docs/creating-managing-projects for information on shutting down projects. revetment-guide-test-a80608 DELETE_REQUESTED --- [12:48:22] done [exit 0, 352s] ### 2026-11-17T12:48:30Z final GCP proof == active projects named revetment-guide*: revetment-guide-test-a80608 ACTIVE == both test projects: revetment-guide-test-795f51 DELETE_REQUESTED billingEnabled=False revetment-guide-test-a80608 DELETE_REQUESTED billingEnabled=False == gcloud default project: (unset) == default kubectl context: do-nyc3-tabor-cluster == recheck 12:48:57: active projects named revetment-guide*: ''