enrolment.schema.json

The publisher keys an enrolled device pins (config-schema §2 Key pinning; architecture §4).

All pages ↓

enrolment.schema.json JSON · 28 lines · Validates enrolment.json Raw file
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://streamliner.work/schema/v1/enrolment.schema.json",
  "title": "enrolment.json",
  "description": "The publisher keys an enrolled device pins (config-schema §2 Key pinning; architecture §4). Delivered in the enrollment payload (invite link or MDM), never inside the config it verifies; bundled for demo accounts. Not part of the signed config and not listed in the manifest.",
  "type": "object",
  "required": ["tenant", "keys"],
  "additionalProperties": false,
  "properties": {
    "$schema": { "$ref": "defs.schema.json#/$defs/schemaRef" },
    "tenant": { "$ref": "defs.schema.json#/$defs/tenantId", "description": "The account these keys sign for; equals `tenant.json` `id`." },
    "configHost": { "type": "string", "pattern": "^(/|https://[^\\s/?#]+[^\\s]*|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?/?)$", "patternErrorMessage": "`/` (the host the app already talks to), an https:// origin, or http://localhost in Debug builds", "description": "Where the config lives: `/` for the host the app enrolled with, or an https origin." },
    "keys": {
      "type": "array",
      "minItems": 1,
      "description": "The account's publisher public keys. A manifest must be signed by one of these (or a `nextKeys` entry a signed manifest added).",
      "items": {
        "type": "object",
        "required": ["keyId", "pub"],
        "additionalProperties": false,
        "properties": {
          "keyId": { "type": "string", "pattern": "^[A-Za-z0-9_.-]{1,64}$", "description": "The key's id, named by the manifest's `signature.keyId`." },
          "pub": { "$ref": "defs.schema.json#/$defs/base64url32", "description": "The Ed25519 public key, base64url (43 characters). Public half only." }
        }
      }
    }
  }
}

← All Schemas