-
Notifications
You must be signed in to change notification settings - Fork 77
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
Healthcheck Implementation #151
Comments
Likely, if the healthcheck file ends in We can render it to the same folder with the extension removed and then execute the script. So for example:
This points to a solution script expecting jinja variables. It gets templated by ctfcli, then written to |
Although likely it might just make more sense to just keep it reading as argument variables... |
I like the current healthcheck system, I think jinja templates is an extra degree of unneeded complexity. |
It looks at some point healthchecks changed to using a ctfcli/ctfcli/cli/challenges.py Lines 913 to 916 in d8e08da
|
Stopping by to say that I agree that jinja templating for solve scripts is over the top. If anything, jinja templating for the command to invoke the solve script would be nice, so you could do something like |
I believe our healthcheck implemtnation is currently lacking so just writing some notes on improving it.
I believe ctfcli should treat a solve script as a kind of template. Possibly a Jinja template and populate specific variables and then run the script.
For example we could have something like:
ctfcli will render this to a temporary file and then execute it.
The text was updated successfully, but these errors were encountered: