getodk / getodk/central

Validate Backend config at startup

Open
#941 2 comments 2 reactions 0 assignees View on GitHub
backend
Dominant language
JavaScript
Stars
226
Forks
235
Avg merge
2d 22h
Merged PRs (30d)
19

Description

It might be helpful to define some kind of schema and/or rules for the structure and content of the Backend config.

The schema/rules could then be checked at startup, and fail fast if there are issues.

Some examples of possible rules:

* `default.database` should be an object
* `default.server.port` should be an integer
* `default.env.sysadminAccount` should be an email
* `default.oidc.enabled` should be a `boolean` if it is present
* `default.oidc.issuerUrl` should be a `url` if it is present

etc.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.