Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Schema validation for config #467

@ethanwu10

Description

@ethanwu10

Is your feature request related to a problem? Please describe.
There is currently no validation of rCTF's configuration at server startup. This can result in misconfiguration going unnoticed until something else breaks later due to a bad config value.

Describe the solution you'd like
The configuration should be validated via a schema (probably with AJV since fastify uses it for route schemas). We may also want to look into specifying environment variables for config options via an extension to the schema, to reduce the boilerplate associated with parsing environment variables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions