-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
410 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "ctfd_file Resource - terraform-provider-ctfd" | ||
subcategory: "" | ||
description: |- | ||
A CTFd file for a challenge. | ||
--- | ||
|
||
# ctfd_file (Resource) | ||
|
||
A CTFd file for a challenge. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "ctfd_challenge" "http" { | ||
name = "My Challenge" | ||
category = "misc" | ||
description = "..." | ||
value = 500 | ||
decay = 100 | ||
minimum = 50 | ||
state = "visible" | ||
function = "logarithmic" | ||
topics = [ | ||
"Misc" | ||
] | ||
tags = [ | ||
"misc", | ||
"basic" | ||
] | ||
} | ||
resource "ctfd_file" "http_file" { | ||
challenge_id = ctfd_challenge.http.id | ||
name = "image.png" | ||
contentb64 = filebase64(".../image.png") | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `challenge_id` (String) Challenge of the file. | ||
- `name` (String) Name of the file as displayed to end-users. | ||
|
||
### Optional | ||
|
||
- `content` (String, Sensitive) Raw content of the file, perfectly fit the use-cases of a .txt document or anything with a simple binary content. You could provide it from the file-system using `file("${path.module}/...")`. | ||
- `contentb64` (String, Sensitive) Base 64 content of the file, perfectly fit the use-cases of complex binaries. You could provide it from the file-system using `filebase64("${path.module}/...")`. | ||
- `location` (String) Location where the file is stored on the CTFd instance, for download purposes. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) Identifier of the file, used internally to handle the CTFd corresponding object. WARNING: updating this file does not work, requires full replacement. | ||
- `sha1sum` (String) The sha1 sum of the file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "ctfd_flag Resource - terraform-provider-ctfd" | ||
subcategory: "" | ||
description: |- | ||
A flag to solve the challenge. | ||
--- | ||
|
||
# ctfd_flag (Resource) | ||
|
||
A flag to solve the challenge. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "ctfd_challenge" "http" { | ||
name = "My Challenge" | ||
category = "misc" | ||
description = "..." | ||
value = 500 | ||
decay = 100 | ||
minimum = 50 | ||
state = "visible" | ||
function = "logarithmic" | ||
topics = [ | ||
"Misc" | ||
] | ||
tags = [ | ||
"misc", | ||
"basic" | ||
] | ||
} | ||
resource "ctfd_flag" "http_flag" { | ||
challenge_id = ctfd_challenge.http.id | ||
content = "CTF{some_flag}" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `challenge_id` (String) Challenge of the flag. | ||
- `content` (String, Sensitive) The actual flag to match. Consider using the convention `MYCTF{value}` with `MYCTF` being the shortcode of your event's name and `value` depending on each challenge. | ||
|
||
### Optional | ||
|
||
- `data` (String) The flag sensitivity information, either case_sensitive or case_insensitive | ||
- `type` (String) The type of the flag, could be either static or regex | ||
|
||
### Read-Only | ||
|
||
- `id` (String) Identifier of the flag, used internally to handle the CTFd corresponding object. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "ctfd_hint Resource - terraform-provider-ctfd" | ||
subcategory: "" | ||
description: |- | ||
A hint for a challenge to help players solve it. | ||
--- | ||
|
||
# ctfd_hint (Resource) | ||
|
||
A hint for a challenge to help players solve it. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "ctfd_challenge" "http" { | ||
name = "My Challenge" | ||
category = "misc" | ||
description = "..." | ||
value = 500 | ||
decay = 100 | ||
minimum = 50 | ||
state = "visible" | ||
function = "logarithmic" | ||
topics = [ | ||
"Misc" | ||
] | ||
tags = [ | ||
"misc", | ||
"basic" | ||
] | ||
} | ||
resource "ctfd_flag" "http_flag" { | ||
challenge_id = ctfd_challenge.http.id | ||
content = "CTF{some_flag}" | ||
} | ||
resource "ctfd_hint" "http_hint" { | ||
challenge_id = ctfd_challenge.http.id | ||
content = "Some super-helpful hint" | ||
cost = 50 | ||
} | ||
resource "ctfd_hint" "http_hint_2" { | ||
challenge_id = ctfd_challenge.http.id | ||
content = "Even more helpful hint !" | ||
cost = 50 | ||
requirements = [ctfd_hint.http_hint_1.id] | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `challenge_id` (String) Challenge of the hint. | ||
- `content` (String) Content of the hint as displayed to the end-user. | ||
|
||
### Optional | ||
|
||
- `cost` (Number) Cost of the hint, and if any specified, the end-user will consume its own (or team) points to get it. | ||
- `requirements` (List of String) List of the other hints it depends on. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) Identifier of the hint, used internally to handle the CTFd corresponding object. |
Oops, something went wrong.