{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f5adf294-f69c-4e08-a6dc-571002fae72e",
    "slug": "pomerium",
    "name": "Pomerium",
    "description": "Identity-aware proxy that puts SSO in front of any web app",
    "url": "https://railway.com/deploy/pomerium",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/pomerium-railway"
    }
  },
  "services": [
    {
      "name": "pomerium",
      "source": {
        "repo": "https://github.com/gridalpha/pomerium-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "dex",
      "source": {
        "repo": "https://github.com/gridalpha/pomerium-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "authenticate",
      "source": {
        "repo": "https://github.com/gridalpha/pomerium-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "verify",
      "source": {
        "image": "pomerium/verify:latest"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "pomerium",
      "description": "HTTP port Railway probes and routes",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "GRPC_URL",
      "service": "pomerium",
      "description": "Private gRPC address for peers",
      "secret": false,
      "strategy": "default",
      "default": "http://pomerium.railway.internal:5443"
    },
    {
      "key": "SERVICES",
      "service": "pomerium",
      "description": "Pomerium roles this service runs",
      "secret": false,
      "strategy": "default",
      "default": "proxy,authorize,databroker"
    },
    {
      "key": "LOG_LEVEL",
      "service": "pomerium",
      "description": "Log verbosity",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "ADMIN_EMAIL",
      "service": "pomerium",
      "description": "First account and default allow-list",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "SECRET_SEED",
      "service": "pomerium",
      "description": "Seed every shared secret derives from",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "IDP_PROVIDER",
      "service": "pomerium",
      "description": "Generic OpenID Connect provider",
      "secret": false,
      "strategy": "default",
      "default": "oidc"
    },
    {
      "key": "UPSTREAM_URL",
      "service": "pomerium",
      "description": "Application the gateway proxies to",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "IDP_CLIENT_ID",
      "service": "pomerium",
      "description": "OAuth client id registered in Dex",
      "secret": false,
      "strategy": "default",
      "default": "pomerium"
    },
    {
      "key": "INSECURE_SERVER",
      "service": "pomerium",
      "description": "Railway's edge terminates TLS",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "IDP_PROVIDER_URL",
      "service": "pomerium",
      "description": "Issuer URL of the identity provider",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DATABROKER_STORAGE_TYPE",
      "service": "pomerium",
      "description": "Session storage backend",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "pomerium",
      "description": "Dockerfile inside the source repo",
      "secret": false,
      "strategy": "default",
      "default": "pomerium/Dockerfile"
    },
    {
      "key": "AUTHENTICATE_SERVICE_URL",
      "service": "pomerium",
      "description": "Public login hop URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "pomerium",
      "description": "Health check window on first boot",
      "secret": false,
      "strategy": "default",
      "default": "600"
    },
    {
      "key": "DATABROKER_STORAGE_CONNECTION_STRING",
      "service": "pomerium",
      "description": "Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Cluster location on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "dex",
      "description": "HTTP port Railway probes and routes",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "ADMIN_EMAIL",
      "service": "dex",
      "description": "Email of the single static account",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DEX_DB_HOST",
      "service": "dex",
      "description": "Postgres host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DEX_DB_NAME",
      "service": "dex",
      "description": "Postgres database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DEX_DB_PORT",
      "service": "dex",
      "description": "Postgres port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DEX_DB_USER",
      "service": "dex",
      "description": "Postgres user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SECRET_SEED",
      "service": "dex",
      "description": "Shared seed, defined on the gateway",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DEX_CLIENT_ID",
      "service": "dex",
      "description": "OAuth client id Pomerium uses",
      "secret": false,
      "strategy": "default",
      "default": "pomerium"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "dex",
      "description": "Password for that account, bcrypt hashed at boot",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ADMIN_USERNAME",
      "service": "dex",
      "description": "Display name on the account",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "DEX_DB_SSLMODE",
      "service": "dex",
      "description": "TLS mode for the database connection",
      "secret": false,
      "strategy": "default",
      "default": "require"
    },
    {
      "key": "DEX_DB_PASSWORD",
      "service": "dex",
      "description": "Postgres password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "dex",
      "description": "Dockerfile inside the source repo",
      "secret": false,
      "strategy": "default",
      "default": "dex/Dockerfile"
    },
    {
      "key": "AUTHENTICATE_SERVICE_URL",
      "service": "dex",
      "description": "Builds the OAuth redirect URI",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "dex",
      "description": "Health check window on first boot",
      "secret": false,
      "strategy": "default",
      "default": "600"
    },
    {
      "key": "PORT",
      "service": "authenticate",
      "description": "HTTP port Railway probes and routes",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "SERVICES",
      "service": "authenticate",
      "description": "Pomerium role this service runs",
      "secret": false,
      "strategy": "default",
      "default": "authenticate"
    },
    {
      "key": "LOG_LEVEL",
      "service": "authenticate",
      "description": "Log verbosity",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "ADMIN_EMAIL",
      "service": "authenticate",
      "description": "Shared admin address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SECRET_SEED",
      "service": "authenticate",
      "description": "Shared seed, defined on the gateway",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "IDP_PROVIDER",
      "service": "authenticate",
      "description": "Generic OpenID Connect provider",
      "secret": false,
      "strategy": "default",
      "default": "oidc"
    },
    {
      "key": "IDP_CLIENT_ID",
      "service": "authenticate",
      "description": "OAuth client id registered in Dex",
      "secret": false,
      "strategy": "default",
      "default": "pomerium"
    },
    {
      "key": "INSECURE_SERVER",
      "service": "authenticate",
      "description": "Railway's edge terminates TLS",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "IDP_PROVIDER_URL",
      "service": "authenticate",
      "description": "Issuer URL of the identity provider",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "AUTHORIZE_SERVICE_URL",
      "service": "authenticate",
      "description": "Required in split-service mode",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABROKER_SERVICE_URL",
      "service": "authenticate",
      "description": "Required in split-service mode",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "authenticate",
      "description": "Same Dockerfile as the gateway",
      "secret": false,
      "strategy": "default",
      "default": "pomerium/Dockerfile"
    },
    {
      "key": "AUTHENTICATE_SERVICE_URL",
      "service": "authenticate",
      "description": "This service's own public URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "authenticate",
      "description": "Health check window on first boot",
      "secret": false,
      "strategy": "default",
      "default": "600"
    },
    {
      "key": "PORT",
      "service": "verify",
      "description": "HTTP port the demo app binds",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "PRIVATE_URL",
      "service": "verify",
      "description": "Private address the gateway proxies to",
      "secret": false,
      "strategy": "default",
      "default": "http://verify.railway.internal:8000"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "pomerium"
      }
    },
    "cli": "railway deploy --template pomerium",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f5adf294-f69c-4e08-a6dc-571002fae72e",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "1dbd69aa-ca92-403d-a1a6-ff9ef735309b": {
                  "icon": "https://cdn.jsdelivr.net/gh/pomerium/pomerium@v0.33.3/ui/src/static/logo_white.svg",
                  "name": "pomerium",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/pomerium-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port Railway probes and routes",
                      "defaultValue": "8080"
                    },
                    "GRPC_URL": {
                      "isOptional": false,
                      "description": "Private gRPC address for peers",
                      "defaultValue": "http://pomerium.railway.internal:5443"
                    },
                    "SERVICES": {
                      "isOptional": false,
                      "description": "Pomerium roles this service runs",
                      "defaultValue": "proxy,authorize,databroker"
                    },
                    "LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Log verbosity",
                      "defaultValue": "info"
                    },
                    "ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "First account and default allow-list",
                      "defaultValue": "admin@example.com"
                    },
                    "SECRET_SEED": {
                      "isOptional": false,
                      "description": "Seed every shared secret derives from",
                      "defaultValue": "{{SECRET_SEED}}"
                    },
                    "IDP_PROVIDER": {
                      "isOptional": false,
                      "description": "Generic OpenID Connect provider",
                      "defaultValue": "oidc"
                    },
                    "UPSTREAM_URL": {
                      "isOptional": false,
                      "description": "Application the gateway proxies to",
                      "defaultValue": "${{verify.PRIVATE_URL}}"
                    },
                    "COOKIE_SECRET": {
                      "isOptional": true,
                      "description": "Override the derived session cookie key",
                      "defaultValue": ""
                    },
                    "IDP_CLIENT_ID": {
                      "isOptional": false,
                      "description": "OAuth client id registered in Dex",
                      "defaultValue": "pomerium"
                    },
                    "SHARED_SECRET": {
                      "isOptional": true,
                      "description": "Override the derived inter-service secret",
                      "defaultValue": ""
                    },
                    "ALLOWED_EMAILS": {
                      "isOptional": true,
                      "description": "Extra allowed addresses; defaults to ADMIN_EMAIL",
                      "defaultValue": ""
                    },
                    "UPSTREAM_2_URL": {
                      "isOptional": true,
                      "description": "Optional second upstream",
                      "defaultValue": ""
                    },
                    "UPSTREAM_3_URL": {
                      "isOptional": true,
                      "description": "Optional third upstream",
                      "defaultValue": ""
                    },
                    "ALLOWED_DOMAINS": {
                      "isOptional": true,
                      "description": "Comma-separated domains allowed through",
                      "defaultValue": ""
                    },
                    "INSECURE_SERVER": {
                      "isOptional": false,
                      "description": "Railway's edge terminates TLS",
                      "defaultValue": "true"
                    },
                    "IDP_PROVIDER_URL": {
                      "isOptional": false,
                      "description": "Issuer URL of the identity provider",
                      "defaultValue": "https://${{dex.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "IDP_CLIENT_SECRET": {
                      "isOptional": true,
                      "description": "Override the derived OAuth client secret",
                      "defaultValue": ""
                    },
                    "UPSTREAM_2_PREFIX": {
                      "isOptional": true,
                      "description": "Path prefix for the second upstream",
                      "defaultValue": ""
                    },
                    "UPSTREAM_3_PREFIX": {
                      "isOptional": true,
                      "description": "Path prefix for the third upstream",
                      "defaultValue": ""
                    },
                    "POMERIUM_PUBLIC_URL": {
                      "isOptional": true,
                      "description": "Override the gateway's own base URL",
                      "defaultValue": ""
                    },
                    "XFF_NUM_TRUSTED_HOPS": {
                      "isOptional": true,
                      "description": "Proxy hops Pomerium trusts in X-Forwarded-For",
                      "defaultValue": ""
                    },
                    "DATABROKER_STORAGE_TYPE": {
                      "isOptional": false,
                      "description": "Session storage backend",
                      "defaultValue": "postgres"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Dockerfile inside the source repo",
                      "defaultValue": "pomerium/Dockerfile"
                    },
                    "AUTHENTICATE_SERVICE_URL": {
                      "isOptional": false,
                      "description": "Public login hop URL",
                      "defaultValue": "https://${{authenticate.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "Health check window on first boot",
                      "defaultValue": "600"
                    },
                    "DATABROKER_STORAGE_CONNECTION_STRING": {
                      "isOptional": false,
                      "description": "Postgres connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "29cd2e72-21b3-457f-9c0a-278c1616c00b": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Cluster location on the volume",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser created on first boot",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "SSL certificate expiry in days",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "29cd2e72-21b3-457f-9c0a-278c1616c00b": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "3f046015-ec25-44f5-bdca-2debc8facf58": {
                  "icon": "https://cdn.jsdelivr.net/gh/dexidp/website@main/static/img/logos/dex-glyph-white.svg",
                  "name": "dex",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/pomerium-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port Railway probes and routes",
                      "defaultValue": "8080"
                    },
                    "ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Email of the single static account",
                      "defaultValue": "${{pomerium.ADMIN_EMAIL}}"
                    },
                    "DEX_DB_HOST": {
                      "isOptional": false,
                      "description": "Postgres host",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "DEX_DB_NAME": {
                      "isOptional": false,
                      "description": "Postgres database",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "DEX_DB_PORT": {
                      "isOptional": false,
                      "description": "Postgres port",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "DEX_DB_USER": {
                      "isOptional": false,
                      "description": "Postgres user",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "SECRET_SEED": {
                      "isOptional": false,
                      "description": "Shared seed, defined on the gateway",
                      "defaultValue": "${{pomerium.SECRET_SEED}}"
                    },
                    "DEX_CLIENT_ID": {
                      "isOptional": false,
                      "description": "OAuth client id Pomerium uses",
                      "defaultValue": "pomerium"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for that account, bcrypt hashed at boot",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    },
                    "ADMIN_USERNAME": {
                      "isOptional": false,
                      "description": "Display name on the account",
                      "defaultValue": "admin"
                    },
                    "DEX_DB_SSLMODE": {
                      "isOptional": false,
                      "description": "TLS mode for the database connection",
                      "defaultValue": "require"
                    },
                    "DEX_ISSUER_URL": {
                      "isOptional": true,
                      "description": "Override Dex's own issuer URL",
                      "defaultValue": ""
                    },
                    "DEX_DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgres password",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "DEX_CLIENT_SECRET": {
                      "isOptional": true,
                      "description": "Override the derived OAuth client secret",
                      "defaultValue": ""
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Dockerfile inside the source repo",
                      "defaultValue": "dex/Dockerfile"
                    },
                    "AUTHENTICATE_SERVICE_URL": {
                      "isOptional": false,
                      "description": "Builds the OAuth redirect URI",
                      "defaultValue": "https://${{authenticate.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "Health check window on first boot",
                      "defaultValue": "600"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "4e5424f9-3bc3-4dfb-90c5-aa4c9be8d192": {
                  "icon": "https://cdn.jsdelivr.net/gh/pomerium/pomerium@v0.33.3/ui/src/static/logo_white.svg",
                  "name": "authenticate",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/pomerium-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port Railway probes and routes",
                      "defaultValue": "8080"
                    },
                    "SERVICES": {
                      "isOptional": false,
                      "description": "Pomerium role this service runs",
                      "defaultValue": "authenticate"
                    },
                    "LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Log verbosity",
                      "defaultValue": "info"
                    },
                    "ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Shared admin address",
                      "defaultValue": "${{pomerium.ADMIN_EMAIL}}"
                    },
                    "SECRET_SEED": {
                      "isOptional": false,
                      "description": "Shared seed, defined on the gateway",
                      "defaultValue": "${{pomerium.SECRET_SEED}}"
                    },
                    "IDP_PROVIDER": {
                      "isOptional": false,
                      "description": "Generic OpenID Connect provider",
                      "defaultValue": "oidc"
                    },
                    "COOKIE_SECRET": {
                      "isOptional": true,
                      "description": "Override the derived session cookie key",
                      "defaultValue": ""
                    },
                    "IDP_CLIENT_ID": {
                      "isOptional": false,
                      "description": "OAuth client id registered in Dex",
                      "defaultValue": "pomerium"
                    },
                    "SHARED_SECRET": {
                      "isOptional": true,
                      "description": "Override the derived inter-service secret",
                      "defaultValue": ""
                    },
                    "INSECURE_SERVER": {
                      "isOptional": false,
                      "description": "Railway's edge terminates TLS",
                      "defaultValue": "true"
                    },
                    "IDP_PROVIDER_URL": {
                      "isOptional": false,
                      "description": "Issuer URL of the identity provider",
                      "defaultValue": "https://${{dex.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "IDP_CLIENT_SECRET": {
                      "isOptional": true,
                      "description": "Override the derived OAuth client secret",
                      "defaultValue": ""
                    },
                    "AUTHORIZE_SERVICE_URL": {
                      "isOptional": false,
                      "description": "Required in split-service mode",
                      "defaultValue": "${{pomerium.GRPC_URL}}"
                    },
                    "DATABROKER_SERVICE_URL": {
                      "isOptional": false,
                      "description": "Required in split-service mode",
                      "defaultValue": "${{pomerium.GRPC_URL}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Same Dockerfile as the gateway",
                      "defaultValue": "pomerium/Dockerfile"
                    },
                    "AUTHENTICATE_SERVICE_URL": {
                      "isOptional": false,
                      "description": "This service's own public URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "Health check window on first boot",
                      "defaultValue": "600"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "e194467d-44bb-4630-8d14-e3e05fe2e87b": {
                  "icon": "https://cdn.jsdelivr.net/gh/pomerium/pomerium@v0.33.3/ui/src/static/logo_white.svg",
                  "name": "verify",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "pomerium/verify:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port the demo app binds",
                      "defaultValue": "8000"
                    },
                    "PRIVATE_URL": {
                      "isOptional": false,
                      "description": "Private address the gateway proxies to",
                      "defaultValue": "http://verify.railway.internal:8000"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "pomerium",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-16T22:14:52.145Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-16T20:31:05.329Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_9e60dfa321c64780acc0",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 140,
    "typical_build_seconds": 50,
    "typical_start_seconds": 10,
    "slowest_service": "dex"
  }
}
