Skip to content

Commit

Permalink
readme stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
argonaut0 committed Sep 15, 2023
1 parent 67eaa46 commit 4a31ad9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,21 @@ Instances created are kept track of in a local sqlite database. The instancer pe
- POST `/instances?chal=$CHALLNAME&team=$ID` - provision an instance for specific challenge and team
- DELETE `/instances?id=$ID` - delete challenge with id


```mermaid
sequenceDiagram
actor User
participant CTFd
participant instanced
participant k as kube-apiserver
User->>CTFd: Load Instances Page
CTFd->>instanced: GET /challenges?team=ID
instanced->>CTFd: [{expiry, name, url}, ...]
User->>CTFd: Restart Instance
CTFd->>instanced: POST /instances?chal=CHALLNAME&team=ID
instanced--)k: Create Objects
instanced->>CTFd: URL of new instance
CTFd->>User: Instance Created
Note over instanced: Instance expires
instanced--)k: Destroy Objects
```

0 comments on commit 4a31ad9

Please sign in to comment.