-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Preconfigure or automate installations of ctfd #2457
Comments
Kind of. We made some progress, though it is not entirely finished. Have a look at https://gitlab.com/jointcyberrange.nl/ctfd-docker-with-plugins/-/tree/main/initial_setup?ref_type=heads and the files around it. It is a plugin. |
@pve Thanks this looks like what I want to do. If I can ask a question, I am not very familiar with ctfd design but I saw a Tokens model, so I guess I need to create a separate token and then link it with the user?
|
I think if you look in our code (link above) for SETUP_EVENT_ADMIN you will find what you need. |
I will not have that much time to look into this in the short term (1-2 weeks) but I did find this : Line 160 in ef6752c
Looks like in the main integrations tests they do a post to /setup to initiate the instance. Should do more or less what you do in your code afaik but maybe a alternative to look into. Not sure how to call this at docker start but maybe worth looking into. |
The general idea is to do this through environment variables and/or the config.ini file. In our Kubernetes setup we feed the environment variables through a configmap. |
In our repo there is a Docker file that integrates the plugins. You can build and run https://gitlab.com/jointcyberrange.nl/ctfd-docker-with-plugins/-/blob/main/Dockerfile?ref_type=heads for an immediate local demo. |
I am not sure if it is possible (at least I have not seen it documented) to automate installations of ctfd.
My goal is to automatically deploy ctfd as docker services that is ready to run and to achieve this I need to automate:
Alternatively:
Is this in anyway possible ?
The text was updated successfully, but these errors were encountered: