{
  "manifest_version": "1.0.0",
  "template": {
    "id": "14fda68e-0f7a-4a21-bbd7-43b05780fc64",
    "slug": "password-pusher-secure",
    "name": "Password Pusher",
    "description": "Encrypted expiring secret sharing with persistent storage",
    "url": "https://railway.com/deploy/password-pusher-secure",
    "upstream": {
      "repo_url": "https://github.com/monotykamary/railway-template-password-pusher"
    }
  },
  "services": [
    {
      "name": "password-pusher",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-password-pusher"
      },
      "needs_volume": true,
      "volume_mount_path": "/opt/PasswordPusher/storage",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "password-pusher",
      "description": "Internal Rails application port. Keep this separate from the public gateway port.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "HTTP_PORT",
      "service": "password-pusher",
      "description": "Unprivileged HTTP gateway port used by the Railway public domain.",
      "secret": false,
      "strategy": "default",
      "default": "5100"
    },
    {
      "key": "PWP__NOINDEX",
      "service": "password-pusher",
      "description": "Prevents public search engines from indexing secret-sharing pages.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SECRET_KEY_BASE",
      "service": "password-pusher",
      "description": "Persistent Rails session-signing secret generated once during deployment.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PWP__HOST_DOMAIN",
      "service": "password-pusher",
      "description": "Public Railway hostname used when Password Pusher generates links.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PWPUSH_MASTER_KEY",
      "service": "password-pusher",
      "description": "256-bit hexadecimal master key used to encrypt pushes. Do not rotate without the upstream key-rotation procedure.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PWP__HOST_PROTOCOL",
      "service": "password-pusher",
      "description": "Public link protocol. Railway terminates TLS.",
      "secret": false,
      "strategy": "default",
      "default": "https"
    },
    {
      "key": "PWP__FILES__STORAGE",
      "service": "password-pusher",
      "description": "Stores file pushes on the attached persistent volume.",
      "secret": false,
      "strategy": "default",
      "default": "local"
    },
    {
      "key": "PWP__SECURE_COOKIES",
      "service": "password-pusher",
      "description": "Restricts authentication cookies to HTTPS connections.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "password-pusher-secure"
      }
    },
    "cli": "railway deploy --template password-pusher-secure",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "14fda68e-0f7a-4a21-bbd7-43b05780fc64",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "e2163eb5-f747-4e9c-8df0-e43d2a8d3017": {
                  "icon": "https://raw.githubusercontent.com/pglombardo/PasswordPusher/66871b17759edf80f8e9721041521da9b65a6c21/app/assets/images/logo-transparent-sm-dark-bare.png",
                  "name": "password-pusher",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/up",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-password-pusher",
                    "commitSha": "773d9eb3fff74d2db582a05eca0b0dd90976d036",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Internal Rails application port. Keep this separate from the public gateway port.",
                      "defaultValue": "3000"
                    },
                    "HTTP_PORT": {
                      "isOptional": false,
                      "description": "Unprivileged HTTP gateway port used by the Railway public domain.",
                      "defaultValue": "5100"
                    },
                    "PWP__NOINDEX": {
                      "isOptional": false,
                      "description": "Prevents public search engines from indexing secret-sharing pages.",
                      "defaultValue": "true"
                    },
                    "SECRET_KEY_BASE": {
                      "isOptional": false,
                      "description": "Persistent Rails session-signing secret generated once during deployment.",
                      "defaultValue": "{{SECRET_KEY_BASE}}"
                    },
                    "PWP__HOST_DOMAIN": {
                      "isOptional": false,
                      "description": "Public Railway hostname used when Password Pusher generates links.",
                      "defaultValue": "${{password-pusher.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "PWPUSH_MASTER_KEY": {
                      "isOptional": false,
                      "description": "256-bit hexadecimal master key used to encrypt pushes. Do not rotate without the upstream key-rotation procedure.",
                      "defaultValue": "{{PWPUSH_MASTER_KEY}}"
                    },
                    "PWP__HOST_PROTOCOL": {
                      "isOptional": false,
                      "description": "Public link protocol. Railway terminates TLS.",
                      "defaultValue": "https"
                    },
                    "PWP__FILES__STORAGE": {
                      "isOptional": false,
                      "description": "Stores file pushes on the attached persistent volume.",
                      "defaultValue": "local"
                    },
                    "PWP__SECURE_COOKIES": {
                      "isOptional": false,
                      "description": "Restricts authentication cookies to HTTPS connections.",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:5100": {
                        "port": 5100
                      }
                    }
                  },
                  "volumeMounts": {
                    "e2163eb5-f747-4e9c-8df0-e43d2a8d3017": {
                      "mountPath": "/opt/PasswordPusher/storage",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "password-pusher",
      "method": "GET",
      "path": "/up",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T10:14:45.332Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-06T18:11:05.616Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_a5a96ac06cf0450c88cd",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 57,
    "typical_build_seconds": 20,
    "typical_start_seconds": 20,
    "slowest_service": "password-pusher"
  }
}
