-
Notifications
You must be signed in to change notification settings - Fork 0
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
4 changed files
with
71 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
# ubcctf/instanced | ||
|
||
currently Jank As Hell. | ||
|
||
Manages challenge instances on-demand. | ||
|
||
`instanced` runs in the cluster and exposes an HTTP API which is used to request instances. | ||
Challenge templates are added in the form of CRDs. Example format is in this repository. | ||
`instanced` must be restarted every time new CRDs are applied. | ||
|
||
Instances created are kept track of in a local sqlite database. The instancer periodically scans the database for expired instances and deletes them. | ||
|
||
|
||
- GET `/instances` - get list of active instances | ||
- GET `/challenges?team=$ID` - get list of available challenges and instance states for specific team | ||
- POST `/instances?chal=$CHALLNAME&team=$ID` - provision an instance for specific challenge and team | ||
- DELETE `/instances?id=$ID` - delete challenge with id | ||
|
||
Authenticate with `Bearer token` |
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