-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathchallenge.yaml
More file actions
39 lines (39 loc) · 1.49 KB
/
challenge.yaml
File metadata and controls
39 lines (39 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
apiVersion: berg.norelect.ch/v1
kind: Challenge
metadata:
name: CHALLENGE_NAME_HERE
namespace: berg
spec:
categories:
- crypto
- whatever
difficulty: baby # Must be one of baby/easy/medium/hard/leet
author: YOUR_USERNAME_HERE
# Change to true if your challenge requires a reverse shell or other form of data exfiltration
allowOutboundTraffic: false
flag: flag{YOUR_FLAG_HERE}
flagFormat: flag{...}
description: |
Please add a challenge description here to add some context.<br />
This description can be multiline and supports <u>html</u> tags.
containers:
- hostname: HOSTNAME_HERE
image: ghcr.io/GITHUB_OWNER/GITHUB_REPOSITORY/CHALLENGE_NAME_HERE:latest
environment:
WHATEVER: VALUE
resourceLimits:
cpu: "0.2"
memory: "100Mi"
ports:
- port: 80
protocol: tcp # Must be either tcp/udp
appProtocol: http # Signal to the frontend how to connect. For web services, use http. If unsure, use tcp.
# Port type can be one of:
# - publicHttpRoute: Expose this service via HTTPS with automatic HTTP to HTTPS redirection
# - publicTlsRoute: Expose this service via a TLS-wrapped access
# - publicPort: Expose this service on a random high port
# - internalPort: Only expose this port for other containers, not to the public
type: publicHttpRoute
attachments:
- fileName: CHALLENGE_NAME_HERE.tar.gz
downloadUrl: /handouts/CHALLENGE_NAME_HERE.tar.gz