{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:idombud:signing:dynamic-signing-configuration:v1",
  "title": "Trusted optional per-transaction dynamic human signing selection",
  "description": "Optional dynamic human-signing selection in trusted installation configuration. Requires protected enrollment configuration, exact Access/connection pins, distinct migration/runtime database accounts, enrollment schema 4 and an exclusive manager namespace. Creates one key and certificate per identified signing transaction. The synchronous response ceiling is 180 seconds; original authority deadlines remain unchanged. Lost responses grant no issuance or signing retry authority.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "backend",
    "configuration_file",
    "configuration_sha256"
  ],
  "properties": {
    "backend": {
      "const": "dynamic"
    },
    "configuration_file": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4096,
      "description": "Protected dynamic enrollment configuration file reference; runtime FileReference grammar applies.",
      "allOf": [
        {
          "not": {
            "pattern": "[\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029%~]"
          }
        },
        {
          "not": {
            "pattern": "://|\\$\\{|(?:^|[\\\\/])\\.\\.(?:[\\\\/]|$)|[\\\\/]$"
          }
        }
      ]
    },
    "configuration_sha256": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    }
  }
}
