cloudflare / cloudflare/cfssl

Feature request: provide json-schema for CSRJSON and config files

Open
#1,185 0 comments 10 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
9.5k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

It would be useful having a [json-schema](https://json-schema.org/learn/getting-started-step-by-step) for `CSRJSON` and `config.json`

`cfssl print-defaults` is a useful command but the defaults may not contain all possible keys, types or list of possible values.

Using json-schema could for example describe possible regex patterns for `expiry`, object keys for each element of the `names` array or values for the `usages` array (as enumeration).

Validation is then simple: `jsonschema -i input.json schema.json` (e.g. using [this python validator](https://github.com/Julian/jsonschema))

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.