Giter VIP home page Giter VIP logo

bugshop's Introduction

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

  1. Working Kubernetes cluster (preferably on GKE due to IAP setup)
  2. Functional kubectl and argo CLI communicating with your cluster.
  3. 2 GitLab repositories (targets-data, targets-alerts) with a write deploy key.

Setup

Bugshop

  1. Install all manifests located in manifests folder. for f in manifests/*; do kubectl apply -f $f; done If something is not working during the install, please refer to the official Argo installation guide located at https://argoproj.github.io/.
  2. Create 3 GCS buckets and replace the template name with the name of your bucket.
    • perma for the mirroring of wordlists from the Bugshop repository
    • workflowconfigs for the mirroring of workflows from the Bugshop repository
    • artifacts for the artifacts from Argo Workflows
  3. Configure artifacts as the Argo storage according to the https://github.com/argoproj/argo/blob/master/ARTIFACT_REPO.md
  4. Setup desired configs (amass / fingerprints.json)
  5. Setup k8 secrets
    • minio-secrets with legacy GCS storage secrets
    • gitlab-ssh with ssh-private-key deploy key to GitLab repositories
    • config
  6. Overwrite http://argo-gateway.domain.com:12000/secret-webhook-endpoint with your Argo HTTP gateway port and endpoint (specified in webhook-event-source.yml).
  7. Add GCS secrets to GitLab CI according to the .gitlab-ci.yml

Bugtab

  1. Add GCS_ACCESS_KEY_ID and GCS_SECRET_ACCESS_KEY secrets to the Bugtab GitLab CI secrets.
  2. Setup periodic schedules with the desired intervals
  3. Setup hourly schedule for the public programs
  4. Setup daily schedule (13:00) for the private hackerone invites.

(optional) IAP for Argo UI

  1. Expose service as a NodePort (kubectl patch svc argo-ui -n argo -p '{"spec": {"type": "NodePort"}}) )
  2. Delete LB and apply ingress.yaml resource
  3. Add beta.cloud.google.com/backend-config: '{"default": "config-default"}' to the argo-ui Service. (kubectl edit svc argo-ui --namespace argo)

bugshop's People

Contributors

janmasarik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bugshop's Issues

Secret Layout

HI Jan,

Amazing and impressive project. I have a question regarding the secret part, I could not quite figure out how the minio-secrets and the config secrets should look like?
Do you have a redacted sample to share by any chance?

Thanks
G

Missing Bugtab

Hi bro, I see you mention about Bugtab in your book and in README section but I can't find it in this repos. Can you share it? Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.