Extend generate-challenges.sh
to support full automation
#58
Labels
💡 feature request
New feature or request
generate-challenges.sh
to support full automation
#58
Describe Problem
Currently, the
generate-challenges.sh
script does one thing - it generates the CTFd challenges CSV by wrapping the various steps involved in runningjuice-shop-ctf-cli
into a single command.This requires that an active instance of juice-shop is created in the multi-juicer cluster (from which the challenges are retrieved), which must be done by creating a team in the multi-juicer balancer. This currently blocks a fully automated setup.
When deploying the services (with
manage-multijuicer.sh
), the CTFd instance is deployed in an unconfigured state. This means that manual configuration has to be done, including creating the admin account. Theoretically, this could be hijacked by some other party (although we could wipe it, having control of the infrastructure/kubernetes cluster).The admin must also manually import the generated challenges (as well as the guides).
Suggest Solution
Extend the
generate-challenges.sh
script to:/setup
endpoint of CTFd, similarly to how interaction is done via the browser by an administrator configuring the instance/admin/import/csv
endpoint, importing the generated challenges CSVgen
: generate challenges (producing a CSV)import
: import challenges (importing the specified CSV)cfg
: configure the CTFd instancepages
: import the custom pages, such as the guides/tips pages (./guides-and-tips
)run
: All of the aboveAdditional Details
The text was updated successfully, but these errors were encountered: