{
  "manifest_version": "1.0.0",
  "template": {
    "id": "7ab93179-90b0-4931-bddf-061c77af7002",
    "slug": "spicedb",
    "name": "Spicedb",
    "description": "Deploying Authzed Spicedb",
    "url": "https://railway.com/deploy/spicedb",
    "upstream": {
      "image": "authzed/spicedb:v1.49.0"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "authzed/spicedb",
      "source": {
        "image": "authzed/spicedb:v1.49.0"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "SPICEDB_GRPC_URL",
      "service": "authzed/spicedb",
      "description": "GPRC connection url to SpiceDB. Must use the preshared-key",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SPICEDB_HTTP_URL",
      "service": "authzed/spicedb",
      "description": "HTTP url to connect to SpiceDB. Recommended to use GRPC url instead",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SPICEDB_HTTP_ENABLED",
      "service": "authzed/spicedb",
      "description": "Used to access the healthpoint http route. Use the grpc api instead",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SPICEDB_DATASTORE_ENGINE",
      "service": "authzed/spicedb",
      "description": "What database store to use: \"cockroachdb\", \"postgres\", \"mysql\", or \"spanner\" ",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SPICEDB_DATASTORE_CONN_URI",
      "service": "authzed/spicedb",
      "description": "Connection uri to datastore of your choice.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "SPICEDB_GRPC_PRESHARED_KEY",
      "service": "authzed/spicedb",
      "description": "A shared secret used to authenticate gRPC clients connecting to SpiceDB. Requests must include this key or they will be rejected.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "spicedb"
      }
    },
    "cli": "railway deploy --template spicedb",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "7ab93179-90b0-4931-bddf-061c77af7002",
            "serializedConfig": {
              "services": {
                "a2499dfc-68d5-4a3f-8756-0538e2fae00a": {
                  "icon": "https://authzed.com/assets/brand/logomark/authzed-logomark-circle-color.svg",
                  "name": "authzed/spicedb",
                  "deploy": {
                    "startCommand": "spicedb serve",
                    "healthcheckPath": "",
                    "preDeployCommand": [
                      "spicedb datastore migrate head"
                    ]
                  },
                  "source": {
                    "image": "authzed/spicedb:v1.49.0"
                  },
                  "variables": {
                    "SPICEDB_GRPC_URL": {
                      "isOptional": true,
                      "description": "GPRC connection url to SpiceDB. Must use the preshared-key",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}:50051"
                    },
                    "SPICEDB_HTTP_URL": {
                      "isOptional": true,
                      "description": "HTTP url to connect to SpiceDB. Recommended to use GRPC url instead",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}:8443"
                    },
                    "SPICEDB_HTTP_ENABLED": {
                      "isOptional": true,
                      "description": "Used to access the healthpoint http route. Use the grpc api instead",
                      "defaultValue": "true"
                    },
                    "SPICEDB_DATASTORE_ENGINE": {
                      "isOptional": true,
                      "description": "What database store to use: \"cockroachdb\", \"postgres\", \"mysql\", or \"spanner\" ",
                      "defaultValue": "postgres"
                    },
                    "SPICEDB_DATASTORE_CONN_URI": {
                      "isOptional": false,
                      "description": "Connection uri to datastore of your choice.",
                      "defaultValue": "{{SPICEDB_DATASTORE_CONN_URI}}"
                    },
                    "SPICEDB_GRPC_PRESHARED_KEY": {
                      "isOptional": false,
                      "description": "A shared secret used to authenticate gRPC clients connecting to SpiceDB. Requests must include this key or they will be rejected.",
                      "defaultValue": "{{SPICEDB_GRPC_PRESHARED_KEY}}"
                    }
                  },
                  "networking": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0"
}
