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
When creating your cluster, you can specify a domain with the `--domain-name` flag.
4
+
kCTF will then automatically create domain names for challenges of the form:
5
+
* $chal\_name.$kctf\_domain for TCP based challenges
6
+
* $chal\_name-web.$kctf\_domain for HTTPS based challenges
7
+
8
+
You might want to use custom domains for some of your challenges, for example:
9
+
* if you need to have a challenge available on multiple host names
10
+
* to protect web challenges against same-site attacks
11
+
* or simply if you want to have a fancy domain name
12
+
13
+
For TCP based challenges, all you need to do is to create a CNAME DNS entry from $cooldomain to $chal\_name.$kctf\_domain.
14
+
15
+
For HTTPS based challenges, you also need to add a CNAME entry (pay attention to the -web suffix) and in addition, list the domain in the port configuration of the challenge:
16
+
```yaml
17
+
apiVersion: kctf.dev/v1
18
+
kind: Challenge
19
+
metadata:
20
+
name: web
21
+
spec:
22
+
deployed: true
23
+
powDifficultySeconds: 0
24
+
network:
25
+
public: true
26
+
ports:
27
+
- protocol: "HTTPS"
28
+
targetPort: 1337
29
+
domains:
30
+
- "cooldomain.com"
31
+
```
32
+
With this, kCTF will automatically create a certificate for you and attach it to the challenge's LoadBalancer.
Copy file name to clipboardExpand all lines: docs/index.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,8 @@ If you are able to break out of it, you can [earn up to $10,000 USD](vrp.md).
38
38
39
39
*[Local Testing Walkthrough](local-testing.md) – A quick start guide showing you how to build and test challenges locally.
40
40
*[kCTF in 8 Minutes](introduction.md) – A quick 8-minute summary of what kCTF is and how it interacts with Kubernetes.
41
-
*[Google Cloud Walkthrough](google-cloud.md) – Once you have everything up and running, try deploying to Google Cloud.
41
+
*[Google Cloud Walkthrough](google-cloud.md) – Once you have everything up and running, try deploying to Google Cloud.
42
+
*[Custom Domains](custom-domains.md) – How to add custom domains for your challenges.
42
43
*[Troubleshooting](troubleshooting.md) – Help with fixing broken challenges.
43
44
*[CTF playbook](ctf-playbook.md) – How to set up your cluster and challenges to scale during a CTF.
44
45
*[Security Threat Model](security-threat-model.md) – Security considerations regarding kCTF including information on assets, risks, and potential attackers.
0 commit comments