Giter Site home page Giter Site logo

semanadeinformatica / kube-ctf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from downunderctf/kube-ctf

0.0 0.0 0.0 240 KB

Challenge infrastructure used for the DownUnderCTF competition

License: MIT License

Shell 15.88% JavaScript 0.55% Python 6.36% TypeScript 69.21% HTML 1.86% Smarty 5.00% Dockerfile 1.15%

kube-ctf's Introduction

kube-ctf

Pre-configured kubernetes infrastructure with load balancing and some network hardening enabled. Also contains per-team challenge assignment for web challenges. Inspired by kCTF.

How to Setup

  1. Create the cluster
./scripts/cluster-deploy
  1. Configure the cluster and IAM resources.
./scripts/cluster-configure
  1. Create config/values.yaml and populate it with values.
domain:
  challenges: <root domain where challenges are hosted> # challenges will be a subdomain of this

replicas:
  challenge-manager: 2

containerRegistry: gcr.io/example # don't include the slash at the end

cert:
  email: <contact email> # required for letsencrypt
  cfDNSToken: <cloudflare dns token> # used to configure dns-01 certificate validation
  1. Deploy the helm stack.
helm install kubectf -f config/values.yaml chart/
  1. Upload the sample whoami challenge
GOOGLE_APPLICATION_CREDENTIALS=<sevice account json> ./scripts/process-isolated-challenges

How to Write Isolated Challenges

TODO

TODO

  • ./scripts/process-isolated-challenges already exists to process the challenge templates and upload them to Google Cloud Datastore. We should integrate this with GitHub actions in order to do automatic deployments on push.
  • Interface this with CTFd
  • TLS termination for challenges, which can be done by adding cert-manager.

Authors

kube-ctf's People

Contributors

dependabot[bot] avatar lecafard avatar

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.