Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 898 Bytes

Development.md

File metadata and controls

36 lines (26 loc) · 898 Bytes

Developer Guide

Kubernetes deployed services can be made available locally using port-forward for development.

Minio

kubectl port-forward service/minio 9000

export MINIO_ENDPOINT=localhost:9000
export MINIO_OUTPUT_BUCKET=tools-output
export MINIO_ACCESS_KEY=$(kubectl get secret minio-secret -o jsonpath='{.data.accesskey}' | base64 -d)
export MINIO_SECRET_KEY=$(kubectl get secret minio-secret -o jsonpath='{.data.secretkey}' | base64 -d)

NATS

kubectl port-forward service/nats-nats-client 4222

export NATS_URL=nats://localhost:4222
export NATS_CONSUMER_TOPIC=output.tool.*
export NATS_QUEUE_GROUP_NAME=Test-Group-$(openssl rand -hex 8)

API Service

kubectl port-forward service/api-service 3000
curl -H "Content-Type: application/json" \
-d '{"asset_type":"domain", "asset_value":"example.com"}' \
http://localhost:3000/scans