Skip to content

Submit flags for an instance that is no longer running #228

@vincentscode

Description

@vincentscode

When playing a dynamic challenge, the user may wish to submit the acquired flag, after the instance has already expired.
This is especially true, if a solution can also be found locally, without launching an instance and the instance is only provided to make it easier to get started.

Currently the user is met with this error message:

# If the instance no longer exists
if data["since"] is None:
logger.debug(
"instance for source_id %s and challenge_id %s no longer exists",
source_id,
challenge.id,
)
logger.info(
"invalid submission due to expired instance for challenge %s source %s",
challenge.id,
source_id,
)
return ChallengeResponse(
status="incorrect",
message="Expired (the instance must be running to submit)",
)

If there is no technical reason this is impossible, I would like to be able to allow such submissions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions