You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each time we set up a new instance of the CTFd service (typically every time we deploy), we have to manually intervene by completing the configuration steps in CTFd. This includes creating a new user, configuring the settings, and importing the custom pages defined in guides-and-tips/. Rather than doing this manually, we should consider generating the user JSON and config JSON to reduce the amount of manual work required.
Currently, we generate the challenges file for CTFd with the script generate-challenges.sh, which produces a ZIP file containing challenges.json, among other things. This is manually uploaded to CTFd after configuration has taken place.
By extending this script, we could potentially include all common configurations in the zip file and upload it directly, eliminating the need for manual steps.
Suggest Solution
Look at the contents of a backed up ZIP file exported from CTFd to identify how to generate such files
Implement logic in generate-challenges.sh to
generate these JSON files, and add them to the ZIP file produced by juice-shop-ctf-cli
upload the ZIP file to the CTFd instance
Additional Details
The text was updated successfully, but these errors were encountered:
Describe Problem
Each time we set up a new instance of the CTFd service (typically every time we deploy), we have to manually intervene by completing the configuration steps in CTFd. This includes creating a new user, configuring the settings, and importing the custom pages defined in
guides-and-tips/
. Rather than doing this manually, we should consider generating the user JSON and config JSON to reduce the amount of manual work required.Currently, we generate the challenges file for CTFd with the script
generate-challenges.sh
, which produces a ZIP file containingchallenges.json
, among other things. This is manually uploaded to CTFd after configuration has taken place.By extending this script, we could potentially include all common configurations in the zip file and upload it directly, eliminating the need for manual steps.
Suggest Solution
generate-challenges.sh
tojuice-shop-ctf-cli
Additional Details
The text was updated successfully, but these errors were encountered: