{
  "repo": "pingcap/tiup",
  "binary": "server",
  "binary_path": "server/main.go",
  "kind": "service",
  "dependencies": {
    "HTTP_API.ANY /api/v1/tarball/{sid}": {
      "description": "Stores a tarball in the current signing session before it is committed into the mirror.",
      "infrastructure": {
        "session_manager": {
          "operations": [
            {
              "operation": "Persist tarball bytes in the in-memory signing session",
              "implementation": "server/handler.UploadTarbal uses session.Manager"
            }
          ]
        }
      },
      "services": []
    },
    "HTTP_API.ANY /api/v1/component/{sid}/{name}": {
      "description": "Signs and persists component metadata in the configured mirror root.",
      "infrastructure": {
        "mirror_storage": {
          "operations": [
            {
              "operation": "Read or write component metadata via repository.Mirror",
              "implementation": "server/handler.SignComponent uses s.mirror"
            }
          ]
        }
      },
      "services": []
    },
    "HTTP_API.ANY /api/v1/rotate": {
      "description": "Runs the root key rotation flow against the local mirror and its trusted keys.",
      "infrastructure": {
        "mirror_storage": {
          "operations": [
            {
              "operation": "Rotate root metadata and collect signatures via temporary HTTP flows",
              "implementation": "server/handler.RotateRoot and server/rotate/*"
            }
          ]
        }
      },
      "services": []
    },
    "HTTP_API.GET /": {
      "description": "Serves static mirror artifacts and metadata from the configured root directory, with optional upstream fallback.",
      "infrastructure": {
        "mirror_storage": {
          "operations": [
            {
              "operation": "Serve files from repository.Mirror.Source() with upstream fallback",
              "implementation": "server/router.go and server/static.go"
            }
          ]
        }
      },
      "services": []
    }
  }
}
