tofu-provider-ctfd

command module
v0.0.0-...-0e66bc8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

README

OpenTofu Provider for CTFd

Time for CTF(d) as Code

reference go report Coverage Status
License CI CodeQL
OpenSSF Scoreboard

Why creating this ?

OpenTofu is used to manage resources that have lifecycles, configurations, to sum it up.

That is the case of CTFd: it handles challenges that could be created, modified and deleted. With some work to leverage the unsteady CTFd's API, OpenTofu is now able to manage them as cloud resources bringing you to opportunity of CTF as Code.

It avoids shitty scripts, ctfcli and other tools that does not solve the problem of reproductibility, ease of deployment and resiliency.

How to use it ?

With the OpenTofu Provider for CTFd, you could setup your CTFd challenge using the following configuration.

resource "ctfd_challenge" "my_challenge" {
    name        = "My Challenge"
    category    = "Some category"
    description = <<-EOT
        My superb description !

        And it's multiline :o
    EOT
    state       = "visible"
    value       = 500
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL