{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://auditstatus.com/schema/verifier.schema.json",
  "title": "Audit Status verifier configuration",
  "description": "The verifier configuration, auditstatus.config.yml in the repository that runs auditstatus verify. Generated from lib/config.js. See https://auditstatus.com/docs/configuration/#verifier-configuration",
  "type": "object",
  "properties": {
    "version": {
      "enum": [
        2,
        null
      ]
    },
    "repository": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "url": {
          "type": "string",
          "minLength": 1,
          "pattern": "^(?:https:\\/\\/|file:\\/\\/|\\/)"
        },
        "branch": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1,
          "pattern": "^[\\w./-]{1,200}$"
        },
        "webUrl": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1,
          "pattern": "^https:\\/\\/"
        },
        "version": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1,
          "pattern": "^(?:any|latest|latest-release|[\\da-f]{40}|(?!-)(?!.*\\.\\.)(?!.*\\.lock$)[\\w.+/-]{1,200}(?<![./]))$"
        }
      },
      "required": [
        "url"
      ],
      "additionalProperties": false
    },
    "references": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "nodeDistUrl": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1,
          "pattern": "^(?:https:\\/\\/|http:\\/\\/(?:127\\.0\\.0\\.1|localhost)[:/])"
        },
        "registryUrl": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1,
          "pattern": "^(?:https:\\/\\/|http:\\/\\/(?:127\\.0\\.0\\.1|localhost)[:/])"
        },
        "githubArchiveUrl": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1,
          "pattern": "^(?:https:\\/\\/|http:\\/\\/(?:127\\.0\\.0\\.1|localhost)[:/])"
        },
        "nodeKeyring": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1
        },
        "auditorChecksumsUrl": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1,
          "pattern": "^(?:https:\\/\\/|http:\\/\\/(?:127\\.0\\.0\\.1|localhost)[:/])\\S*\\{version\\}"
        },
        "cacheDir": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1
        },
        "registries": {
          "description": "Registry base URLs, for example a mirror",
          "type": [
            "object",
            "null"
          ],
          "propertyNames": {
            "enum": [
              "pypi",
              "rubygems",
              "hex",
              "nuget",
              "maven",
              "packagist",
              "uvSource",
              "goproxy",
              "crates"
            ]
          },
          "additionalProperties": {
            "type": "string",
            "pattern": "^(?:https:\\/\\/|http:\\/\\/(?:127\\.0\\.0\\.1|localhost)[:/])"
          }
        },
        "npmProvenance": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "sigstore": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "tufUrl": {
              "type": [
                "string",
                "null"
              ],
              "minLength": 1,
              "pattern": "^(?:https:\\/\\/|http:\\/\\/(?:127\\.0\\.0\\.1|localhost)[:/])"
            },
            "trustedRoot": {
              "type": [
                "string",
                "null"
              ],
              "minLength": 1
            }
          },
          "additionalProperties": false
        },
        "distro": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "enabled": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "archives": {
              "type": [
                "array",
                "null"
              ],
              "items": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": "^https?:\\/\\/"
                  },
                  "suites": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "components": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "keyring": {
                    "type": "string",
                    "minLength": 1
                  },
                  "snapshot": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "minLength": 1,
                    "pattern": "^https:\\/\\/"
                  }
                },
                "required": [
                  "url",
                  "suites",
                  "components",
                  "keyring"
                ],
                "additionalProperties": false
              }
            }
          },
          "additionalProperties": false
        },
        "containerRegistries": {
          "description": "Container registries by name: {url, tokenEnv}",
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "pattern": "^(?:https:\\/\\/|http:\\/\\/(?:127\\.0\\.0\\.1|localhost)[:/])"
              },
              "tokenEnv": {
                "type": "string",
                "pattern": "^[A-Za-z_]\\w{0,127}$"
              }
            }
          }
        },
        "githubTokenEnv": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1,
          "pattern": "^[A-Za-z_]\\w{0,127}$"
        },
        "githubApiUrl": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1,
          "pattern": "^(?:https:\\/\\/|http:\\/\\/(?:127\\.0\\.0\\.1|localhost)[:/])"
        },
        "amdKdsUrl": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1,
          "pattern": "^(?:https:\\/\\/|http:\\/\\/(?:127\\.0\\.0\\.1|localhost)[:/])"
        },
        "tpmRoots": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string",
            "minLength": 1
          }
        }
      },
      "additionalProperties": false
    },
    "ssh": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "user": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1,
          "pattern": "^[a-z_][\\w-]{0,31}$"
        },
        "port": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 1,
          "maximum": 65535
        },
        "knownHosts": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1
        },
        "identityFile": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1
        },
        "timeoutSeconds": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 5,
          "maximum": 3600
        },
        "command": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1
        }
      },
      "additionalProperties": false
    },
    "kubernetes": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "kubectl": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1
        },
        "kubeconfig": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1
        },
        "namespace": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1,
          "pattern": "^[a-z\\d-]{1,63}$"
        },
        "selector": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1,
          "pattern": "^[\\w./=,-]{1,500}$"
        },
        "daemonSet": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1,
          "pattern": "^[a-z\\d][a-z\\d.-]{0,252}$"
        },
        "port": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 1,
          "maximum": 65535
        },
        "timeoutSeconds": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 5,
          "maximum": 3600
        }
      },
      "additionalProperties": false
    },
    "policy": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "allowUntracked": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "modifiedAfterStart": {
          "enum": [
            "fail",
            "warn",
            null
          ]
        },
        "metadataChangedAfterStart": {
          "enum": [
            "fail",
            "warn",
            null
          ]
        },
        "unofficialNode": {
          "enum": [
            "fail",
            "warn",
            null
          ]
        },
        "unverifiedAuditor": {
          "enum": [
            "fail",
            "warn",
            null
          ]
        },
        "maxEvidenceAgeSeconds": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 10,
          "maximum": 86400
        },
        "maxCommitAgeDays": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 1,
          "maximum": 3650
        },
        "unverifiablePackages": {
          "enum": [
            "fail",
            "warn",
            null
          ]
        },
        "buildOutputs": {
          "enum": [
            "fail",
            "warn",
            null
          ]
        },
        "retryAfterSeconds": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0,
          "maximum": 3600
        },
        "versionMismatch": {
          "enum": [
            "fail",
            "warn",
            null
          ]
        },
        "versionGraceSeconds": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0,
          "maximum": 86400
        },
        "unexplainedCode": {
          "enum": [
            "fail",
            "warn",
            null
          ]
        },
        "containerCode": {
          "enum": [
            "fail",
            "warn",
            null
          ]
        },
        "bytecode": {
          "enum": [
            "fail",
            "warn",
            null
          ]
        },
        "builtPackages": {
          "enum": [
            "fail",
            "warn",
            null
          ]
        },
        "unpinnedPackages": {
          "enum": [
            "fail",
            "warn",
            null
          ]
        },
        "containerChanges": {
          "enum": [
            "fail",
            "warn",
            null
          ]
        },
        "monitor": {
          "enum": [
            "fail",
            "warn",
            null
          ]
        },
        "codePaths": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "attesters": {
          "description": "Other attester implementations the verifier accepts evidence from; each needs sha256 or checksumsUrl",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "pattern": "^(?!auditstatus$)[\\w.-]{1,40}$"
              },
              "sha256": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "pattern": "^[\\da-f]{64}$"
                }
              },
              "checksumsUrl": {
                "type": [
                  "string",
                  "null"
                ],
                "minLength": 1,
                "pattern": "^(?:https:\\/\\/|http:\\/\\/(?:127\\.0\\.0\\.1|localhost)[:/])"
              }
            },
            "required": [
              "name"
            ],
            "additionalProperties": false,
            "anyOf": [
              {
                "required": [
                  "sha256"
                ]
              },
              {
                "required": [
                  "checksumsUrl"
                ]
              }
            ]
          }
        }
      },
      "additionalProperties": false
    },
    "build": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "command": {
          "type": "string",
          "minLength": 1
        },
        "outputs": {
          "description": "Patterns of files the build produces; never under node_modules",
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "string",
            "minLength": 1,
            "pattern": "^(?!(?:\\.\\/)?node_modules(?:\\/|$))"
          }
        },
        "env": {
          "type": [
            "object",
            "null"
          ],
          "propertyNames": {
            "pattern": "^[A-Za-z_]\\w{0,127}$"
          },
          "additionalProperties": {
            "type": "string"
          }
        },
        "passEnv": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string",
            "pattern": "^[A-Za-z_]\\w{0,127}$"
          }
        },
        "timeoutSeconds": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 60,
          "maximum": 21600
        },
        "user": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1,
          "pattern": "^[a-z_][\\w-]{0,31}$"
        }
      },
      "required": [
        "command",
        "outputs"
      ],
      "additionalProperties": false
    },
    "services": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "pattern": "^[\\w.-]{1,64}$"
          },
          "repository": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "url": {
                "type": "string",
                "minLength": 1,
                "pattern": "^(?:https:\\/\\/|file:\\/\\/|\\/)"
              },
              "branch": {
                "type": [
                  "string",
                  "null"
                ],
                "minLength": 1,
                "pattern": "^[\\w./-]{1,200}$"
              },
              "webUrl": {
                "type": [
                  "string",
                  "null"
                ],
                "minLength": 1,
                "pattern": "^https:\\/\\/"
              },
              "version": {
                "type": [
                  "string",
                  "null"
                ],
                "minLength": 1,
                "pattern": "^(?:any|latest|latest-release|[\\da-f]{40}|(?!-)(?!.*\\.\\.)(?!.*\\.lock$)[\\w.+/-]{1,200}(?<![./]))$"
              }
            },
            "required": [
              "url"
            ],
            "additionalProperties": false
          },
          "build": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "command": {
                "type": "string",
                "minLength": 1
              },
              "outputs": {
                "description": "Patterns of files the build produces; never under node_modules",
                "type": "array",
                "minItems": 1,
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "pattern": "^(?!(?:\\.\\/)?node_modules(?:\\/|$))"
                }
              },
              "env": {
                "type": [
                  "object",
                  "null"
                ],
                "propertyNames": {
                  "pattern": "^[A-Za-z_]\\w{0,127}$"
                },
                "additionalProperties": {
                  "type": "string"
                }
              },
              "passEnv": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": "string",
                  "pattern": "^[A-Za-z_]\\w{0,127}$"
                }
              },
              "timeoutSeconds": {
                "type": [
                  "integer",
                  "null"
                ],
                "minimum": 60,
                "maximum": 21600
              },
              "user": {
                "type": [
                  "string",
                  "null"
                ],
                "minLength": 1,
                "pattern": "^[a-z_][\\w-]{0,31}$"
              }
            },
            "required": [
              "command",
              "outputs"
            ],
            "additionalProperties": false
          },
          "lockfiles": {
            "description": "Lockfile paths in the repository, by ecosystem",
            "type": [
              "object",
              "null"
            ],
            "propertyNames": {
              "enum": [
                "npm",
                "pypi",
                "rubygems",
                "hex",
                "composer",
                "maven",
                "nuget",
                "cargo"
              ]
            },
            "additionalProperties": {
              "type": "string",
              "pattern": "^(?!.*\\.\\.)"
            }
          },
          "goModule": {
            "type": [
              "string",
              "null"
            ],
            "minLength": 1,
            "pattern": "^[\\w./-]+$"
          },
          "root": {
            "type": [
              "string",
              "null"
            ],
            "minLength": 1,
            "pattern": "^\\/(?:[^/\\0]+\\/)*[^/\\0]+$"
          },
          "artifact": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "signer": {
                "type": "object",
                "properties": {
                  "repository": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": "^[\\w.-]+\\/[\\w.-]+$"
                  },
                  "workflow": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "minLength": 1,
                    "pattern": "^\\.github\\/workflows\\/[\\w./-]+\\.ya?ml$"
                  },
                  "ref": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "minLength": 1,
                    "pattern": "^refs\\/[\\w./-]+$"
                  }
                },
                "required": [
                  "repository"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "signer"
            ],
            "additionalProperties": false
          },
          "image": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "signer": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "repository": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": "^[\\w.-]+\\/[\\w.-]+$"
                  },
                  "workflow": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "minLength": 1,
                    "pattern": "^\\.github\\/workflows\\/[\\w./-]+\\.ya?ml$"
                  },
                  "ref": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "minLength": 1,
                    "pattern": "^refs\\/[\\w./-]+$"
                  }
                },
                "required": [
                  "repository"
                ],
                "additionalProperties": false
              },
              "repository": {
                "anyOf": [
                  {
                    "description": "An image repository without a tag or digest (ghcr.io/owner/name), or a list of them",
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^(?:[\\w.-]+(?::\\d+)?\\/)?[\\w.-]+(?:\\/[\\w.-]+)*$"
                      },
                      {
                        "type": "array",
                        "minItems": 1,
                        "items": {
                          "type": "string",
                          "pattern": "^(?:[\\w.-]+(?::\\d+)?\\/)?[\\w.-]+(?:\\/[\\w.-]+)*$"
                        }
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "compareFiles": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "allowChanges": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              }
            },
            "additionalProperties": false
          },
          "executables": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "path": {
                  "type": "string",
                  "minLength": 1,
                  "pattern": "^\\/\\S+$"
                },
                "checksums": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "url": {
                      "type": "string",
                      "minLength": 1,
                      "pattern": "^(?:https:\\/\\/|http:\\/\\/(?:127\\.0\\.0\\.1|localhost)[:/])"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "minLength": 1,
                      "pattern": "^[^\\s/]\\S*$"
                    },
                    "signature": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "gpg",
                            "minisign",
                            "sigstore"
                          ]
                        },
                        "url": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "minLength": 1,
                          "pattern": "^(?:https:\\/\\/|http:\\/\\/(?:127\\.0\\.0\\.1|localhost)[:/])"
                        },
                        "keyring": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "minLength": 1
                        },
                        "publicKey": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "minLength": 1,
                          "pattern": "^[A-Za-z\\d+/=]{56}$"
                        },
                        "identity": {
                          "description": "Certificate claims to require; a value written /.../ is a regular expression",
                          "type": [
                            "object",
                            "null"
                          ],
                          "additionalProperties": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "type"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "url"
                  ],
                  "additionalProperties": false
                },
                "sha256": {
                  "type": [
                    "array",
                    "null"
                  ],
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": "^[\\da-f]{64}$"
                  }
                }
              },
              "required": [
                "path"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      }
    },
    "output": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "dir": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1
        },
        "label": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1
        }
      },
      "additionalProperties": false
    },
    "servers": {
      "description": "The servers to verify. Names must be unique.",
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "pattern": "^[\\w.-]{1,64}$"
          },
          "host": {
            "type": [
              "string",
              "null"
            ],
            "minLength": 1,
            "pattern": "^(?:[a-zA-Z\\d](?:[a-zA-Z\\d-]{0,61}[a-zA-Z\\d])?(?:\\.[a-zA-Z\\d](?:[a-zA-Z\\d-]{0,61}[a-zA-Z\\d])?)*|\\d{1,3}(?:\\.\\d{1,3}){3}|\\[[\\da-fA-F:]+\\])$"
          },
          "port": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "maximum": 65535
          },
          "user": {
            "type": [
              "string",
              "null"
            ],
            "minLength": 1,
            "pattern": "^[a-z_][\\w-]{0,31}$"
          },
          "transport": {
            "enum": [
              "ssh",
              "local",
              "kubernetes",
              null
            ]
          },
          "attesterConfig": {
            "type": [
              "string",
              "null"
            ],
            "minLength": 1
          },
          "minProcesses": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0,
            "maximum": 100000
          },
          "services": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string",
              "minLength": 1,
              "pattern": "^[\\w.-]{1,64}$"
            }
          },
          "kubernetes": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "namespace": {
                "type": [
                  "string",
                  "null"
                ],
                "minLength": 1,
                "pattern": "^[a-z\\d-]{1,63}$"
              },
              "node": {
                "type": [
                  "string",
                  "null"
                ],
                "minLength": 1,
                "pattern": "^[\\w.-]{1,253}$"
              },
              "pod": {
                "type": [
                  "string",
                  "null"
                ],
                "minLength": 1,
                "pattern": "^[\\w.-]{1,253}$"
              },
              "selector": {
                "type": [
                  "string",
                  "null"
                ],
                "minLength": 1,
                "pattern": "^[\\w./=,-]{1,500}$"
              },
              "daemonSet": {
                "type": [
                  "string",
                  "null"
                ],
                "minLength": 1,
                "pattern": "^[a-z\\d][a-z\\d.-]{0,252}$"
              },
              "context": {
                "type": [
                  "string",
                  "null"
                ],
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "tpm": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "required": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "ima": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "publicKey": {
                "type": [
                  "string",
                  "null"
                ],
                "minLength": 1,
                "pattern": "-{5}BEGIN PUBLIC KEY-{5}[\\s\\S]+-{5}END PUBLIC KEY-{5}"
              },
              "expectedPcrs": {
                "description": "Expected PCR values: bank, then PCR index, then hex value",
                "type": [
                  "object",
                  "null"
                ],
                "propertyNames": {
                  "enum": [
                    "sha1",
                    "sha256",
                    "sha384",
                    "sha512"
                  ]
                },
                "additionalProperties": {
                  "type": "object",
                  "propertyNames": {
                    "pattern": "^\\d{1,2}$"
                  },
                  "additionalProperties": {
                    "type": "string",
                    "pattern": "^(?:0x)?[\\da-fA-F]+$"
                  }
                }
              },
              "ekCertificate": {
                "type": [
                  "string",
                  "null"
                ],
                "minLength": 1,
                "pattern": "^[A-Za-z\\d+/=\\s]+$"
              }
            },
            "additionalProperties": false,
            "anyOf": [
              {
                "properties": {
                  "required": {
                    "enum": [
                      false,
                      null
                    ]
                  },
                  "ima": {
                    "enum": [
                      false,
                      null
                    ]
                  }
                }
              },
              {
                "required": [
                  "publicKey"
                ],
                "properties": {
                  "publicKey": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "confidential": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "required": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "type": {
                "enum": [
                  "sev-snp",
                  "tdx",
                  null
                ]
              },
              "measurements": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "pattern": "^[\\da-fA-F]{32,128}$"
                }
              },
              "mrConfigId": {
                "type": [
                  "string",
                  "null"
                ],
                "minLength": 1,
                "pattern": "^[\\da-fA-F]{32,128}$"
              },
              "mrOwner": {
                "type": [
                  "string",
                  "null"
                ],
                "minLength": 1,
                "pattern": "^[\\da-fA-F]{32,128}$"
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false,
        "anyOf": [
          {
            "required": [
              "host"
            ],
            "properties": {
              "transport": {
                "enum": [
                  "ssh",
                  null
                ]
              },
              "host": {
                "type": "string"
              }
            }
          },
          {
            "required": [
              "transport",
              "attesterConfig"
            ],
            "properties": {
              "transport": {
                "const": "local"
              },
              "attesterConfig": {
                "type": "string"
              }
            }
          },
          {
            "required": [
              "transport",
              "kubernetes"
            ],
            "properties": {
              "transport": {
                "const": "kubernetes"
              },
              "kubernetes": {
                "type": "object",
                "anyOf": [
                  {
                    "required": [
                      "node"
                    ],
                    "properties": {
                      "node": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "required": [
                      "pod"
                    ],
                    "properties": {
                      "pod": {
                        "type": "string"
                      }
                    }
                  }
                ]
              }
            }
          }
        ]
      }
    }
  },
  "required": [
    "servers"
  ],
  "additionalProperties": false,
  "anyOf": [
    {
      "required": [
        "repository"
      ],
      "properties": {
        "repository": {
          "type": "object"
        }
      }
    },
    {
      "required": [
        "services"
      ],
      "properties": {
        "services": {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "required": [
                  "repository"
                ],
                "properties": {
                  "repository": {
                    "type": "object"
                  }
                }
              },
              {
                "required": [
                  "image"
                ],
                "properties": {
                  "image": {
                    "type": "object"
                  }
                }
              }
            ]
          }
        }
      }
    }
  ]
}
