Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start all challenges at once? #396

Open
h4sh5 opened this issue May 31, 2023 · 3 comments
Open

Start all challenges at once? #396

h4sh5 opened this issue May 31, 2023 · 3 comments

Comments

@h4sh5
Copy link

h4sh5 commented May 31, 2023

Suppose there are 20+ challenges, is there support for kctf to start all of them at once? Since its tedious to go into each folder and start them individually.

@sroettger
Copy link
Collaborator

Do you need it to happen in parallel or just want it automated?

For the latter, wouldn't a simple bash loop do the trick?

for yaml in */challenge.yaml; do pushd "$(dirname $yaml)"; kctf chal start; popd; done`

@guozhen-dev
Copy link

I have a quick question regarding to using kctf host many challenages. Since kctf assign a load balancer to every chal, thus the load balancer cost for running 20 challanges is pretty high, do you know any way to reduce that cost ?

@sroettger
Copy link
Collaborator

I have a quick question regarding to using kctf host many challenages. Since kctf assign a load balancer to every chal, thus the load balancer cost for running 20 challanges is pretty high, do you know any way to reduce that cost ?

It's certainly a pain point but we haven't found a good solution to it yet.
It might be possible to use a single global load balancer that forwards traffic to all nodes on all ports.
https://cloud.google.com/load-balancing/docs/internal#all_ports
It would probably require changing the operator, i.e. instead of creating a load balancer service for every challenge, it would just have to create a NodePort that you can send traffic to. And probably a bunch of features like DNS and ip source restrictions will not work out of the box.

If you try it out, please let us know how it went :).

cc: @sirdarckcat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants