bugshop
bugshop copied to clipboard
Bugshop
Bugshop is heavily WIP and still more of a PoC, but stay tuned for new updates (using new Argo Server directly instead of Events). :-)
Pre-requsites
- Working Kubernetes cluster (preferably on GKE due to IAP setup)
- Functional
kubectlandargoCLI communicating with your cluster. - 2 GitLab repositories (targets-data, targets-alerts) with a write deploy key.
Setup
Bugshop
- Install all manifests located in
manifestsfolder.for f in manifests/*; do kubectl apply -f $f; doneIf something is not working during the install, please refer to the official Argo installation guide located at https://argoproj.github.io/. - Create 3 GCS buckets and replace the template name with the name of your bucket.
permafor the mirroring of wordlists from the Bugshop repositoryworkflowconfigsfor the mirroring of workflows from the Bugshop repositoryartifactsfor the artifacts from Argo Workflows
- Configure
artifactsas the Argo storage according to the https://github.com/argoproj/argo/blob/master/ARTIFACT_REPO.md - Setup desired configs (amass / fingerprints.json)
- Setup k8 secrets
minio-secretswith legacy GCS storage secretsgitlab-sshwithssh-private-keydeploy key to GitLab repositoriesconfig
- Overwrite
http://argo-gateway.domain.com:12000/secret-webhook-endpointwith your Argo HTTP gateway port and endpoint (specified inwebhook-event-source.yml). - Add GCS secrets to GitLab CI according to the
.gitlab-ci.yml
Bugtab
- Add
GCS_ACCESS_KEY_IDandGCS_SECRET_ACCESS_KEYsecrets to the Bugtab GitLab CI secrets. - Setup periodic schedules with the desired intervals
- Setup hourly schedule for the public programs
- Setup daily schedule (13:00) for the private hackerone invites.
(optional) IAP for Argo UI
- Expose service as a NodePort (
kubectl patch svc argo-ui -n argo -p '{"spec": {"type": "NodePort"}}) ) - Delete LB and apply ingress.yaml resource
- Add
beta.cloud.google.com/backend-config: '{"default": "config-default"}'to theargo-uiService. (kubectl edit svc argo-ui --namespace argo)