Skip to content
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

Challenge and server monitoring/health checks #6

Closed
thebongy opened this issue Jun 26, 2020 · 4 comments
Closed

Challenge and server monitoring/health checks #6

thebongy opened this issue Jun 26, 2020 · 4 comments
Labels
infra Tasks related to devops/infrastructure for the CTF

Comments

@thebongy
Copy link
Contributor

Need to setup some sort of a script to keep performing health checks on each challenge (and the CTFd platform), and possibly notify us too, if something is going wrong. Could also maybe automatically restart service

Another idea is to also integrate this with the discord bot we were planning to make

@thebongy thebongy added the infra Tasks related to devops/infrastructure for the CTF label Jun 26, 2020
@theProgrammerDavid
Copy link
Contributor

For challenges where the flag is a file, we could run a cron job which pings the discord bot with the status of the flag and other stuff. What do you think

@thebongy
Copy link
Contributor Author

thebongy commented Jul 9, 2020

Let's also keep this issue to keep track of what challenge is deployed where @roerohan @theProgrammerDavid so its easy to do health checks later, i'll post a list

@thebongy
Copy link
Contributor Author

thebongy commented Jul 9, 2020

Tracking Challenge Deployment

Challenges are deployed to ctf-chall-dev.csivit.com.
DO NOT SHARE THIS DOMAIN NAME/IP OUTSIDE CSI until the CTF starts!!!

NOTE: Exposing a port in the challenge.yml only tells ctfup to provision a k8 service to expose the port on the cluster. You also need to manually add a firewall rule on the cluster to allow the port, this is mostly done to avoid unnecessary ports being exposed

Append to list

  • only check deployed when has been tested (means you are able to solve the challenge, and obtain the flag)
  • only check healthcheck when discord bot successfully performs a health check on the challenge
Challenge Category Container Port Server Port Replicas Deployed Wave Number
pwn-intended-0x1 Pwn 9999 30001
Firewall Rule ✔️
1 ✔️ 1
pwn-intended-0x2 Pwn 9999 30007
Firewall Rule ✔️
1 ✔️ 1
pwn-intended-0x3 Pwn 9999 30013
Firewall Rule ✔️
1 ✔️ 1
Global Warming Pwn 9999 30023
Firewall Rule ✔️
1 ✔️ 2
Secret Society Pwn 9999 30041
Firewall Rule ✔️
1 ✔️ 2
Smash Pwn 9999 30046
Firewall Rule ✔️
1 ✔️ 2
Body Count Web 80 30202
Firewall Rule ✔️
3 ✔️ 2
Cascade Web 9999 30203
Firewall Rule ✔️
1 ✔️ 1
CCC Web 9999 30215
Firewall Rule ✔️
1 ✔️ 2
File Library Web 9999 30222
Firewall Rule ✔️
1 ✔️ 2
Mr Rami Web 9999 30231
Firewall Rule ✔️
1 ✔️ 1
Oreo Web 9999 30243
Firewall Rule ✔️
1 ✔️ 1
The Confused Deputy Web 9999 30256
Firewall Rule ✔️
1 ✔️ 2
The Usual Suspects Web 9999 30279
Firewall Rule ✔️
1 ✔️ 2
Warm Up Web 80 30272
Firewall Rule ✔️
3 ✔️ 1
Secure Portal Web 9999 30281
Firewall Rule ✔️
1 ✔️ 1
Brobot Misc NA NA 1 ✔️ 2
Escape Plan Misc 9999 30419
Firewall Rule ✔️
1 ✔️ 1
Friends Misc 9999 30425
Firewall Rule ✔️
1 ✔️ 1
Prison Break Misc 9999 30407
Firewall Rule ✔️
1 ✔️ 2
Mafia Misc 9999 30721
Firewall Rule ✔️
1 ✔️ 2
Blaise Rev 9999 30808
Firewall Rule ✔️
1 ✔️ 2
Vietnam Rev 9999 30814
Firewall Rule ✔️
1 ✔️ 1
RicknMorty Rev 9999 30827
Firewall Rule ✔️
1 ✔️ 1
AKA Linux 9999 30611
Firewall Rule ✔️
1 ✔️ 1
Where am I Linux 9999 30623
Firewall Rule ✔️
1 ✔️ 2
find32 Linux 22 30630
Firewall Rule ✔️
1 ✔️ 1
Login Error Linux 9999 30431
Firewall Rule ✔️
1 ✔️ 2

@thebongy
Copy link
Contributor Author

thebongy commented Jul 9, 2020

For reference, deployed challenges running on the cluster as of Jul 17 12:12 IST (I'll try to keep this updated)

stats

@thebongy thebongy pinned this issue Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infra Tasks related to devops/infrastructure for the CTF
Projects
None yet
Development

No branches or pull requests

2 participants