blockchainlover2019 / gql-analysis

Security Analysis of GraphQL - Depth Limiting and Cost analysis, Rate and Directive Limiting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

run gql-service

cargo run

deploy analysis-service as a sidecar of pod

change request ip address to local address

./build_and_run	
docker build -t gql-analyzer:latest .
docker run --rm -it -d -p 3002:3002 gql-analyzer:latest

deploy to k8s

kubectl apply -f deployment.yaml
kubectl get pods
kubectl get deployment
kubectl port-forward gql-analysis-7947bc5d9-hclhr 3000:3000

run apollo router

docker image build -t router-proxy:latest .
docker run --rm -it -p 3004:3004 router-proxy:latest
./router --config router.yaml --supergraph supergraph-schema.graphql
kind create cluster
kind load docker-image gql-analyzer:latest
kind load docker-image router-proxy:latest
kind load docker-image gql-service:latest
kubectl port-forward gql-analysis-68b755b7b9-drwhk 3004:3004
kubectl exec -it gql-analysis-68b755b7b9-drwhk -c router-main sh

kubectl logs gql-analysis-68b755b7b9-drwhk -c router-main
kubectl logs gql-analysis-68b755b7b9-drwhk -c gql-analyzer-sidecar

About

Security Analysis of GraphQL - Depth Limiting and Cost analysis, Rate and Directive Limiting


Languages

Language:Rust 87.6%Language:Dockerfile 10.2%Language:Shell 2.2%