Skip to content

CTF-005: Team Management

Statement

The system should support team-based CTF participation where participants collaborate within named groups, share a team score, and are managed by a designated team captain.

Rationale

Many CTF events are team-based, where collaboration is part of the learning exercise. For Shifter, team mode is important for scenarios where consultants work together on demo environments or when running training exercises for customer teams. (CTFd supports both individual and team modes.)

Traceability

  • IMPLEMENTS → CODE_FILE shifter/shifter_platform/ctf/models/ (CTFTeam model with name, captain, event FK, and unique constraint)
  • IMPLEMENTS → CODE_FILE shifter/shifter_platform/ctf/services/scoring/ (Team scoreboard with get_team_scoreboard() aggregation)
  • TESTS → TEST shifter/shifter_platform/tests/ctf/test_models.py (TestCTFTeamModel - team creation, unique name constraint tests)
  • TESTS → TEST shifter/shifter_platform/tests/ctf/conftest.py (CTFTeam fixtures (ctf_team, ctf_event_team) for team tests)