2 hours ago
Hello Railway team,
I am evaluating a short-lived, isolated execution environment on the Hobby plan for a credential-free PostgreSQL TLS connectivity test against an IPv6-only Supabase endpoint.
The test performs one PostgreSQL SSLRequest, validates the server certificate and hostname, and disconnects without authentication or SQL execution.
Before provisioning anything, I would appreciate clarification on the following:
-
Do Railway Sandboxes in ISOLATED mode support outbound IPv6 connections to external PostgreSQL endpoints on TCP port 5432?
-
Can a standard Railway service or Sandbox enforce a platform-level outbound allowlist restricted to a specific IPv6 destination and TCP port, while permitting only the DNS traffic necessary for resolution?
-
Is there a provider-enforced absolute execution timeout that terminates the entire service or Sandbox, independently of application behavior, client connectivity, or idle activity?
-
Can an empty environment be created without inheriting existing service credentials, shared variables, deployment triggers, or access to other environments?
-
Can a one-shot deployment be protected against automatic or unintended re-execution, including infrastructure recovery, restarts, and redeployment?
-
Are per-service or per-Sandbox spending limits available on Hobby without risking shutdown of unrelated services in the workspace? Are there any additional provisioning, image-pull, build, or termination charges?
The proposed workload is a non-root container with no public endpoint, no persistent storage, no automatic retries, and approximately two minutes of execution.
Please distinguish between application-enforced controls and Railway infrastructure-enforced controls, and provide documentation references where available.
This is an informational inquiry only. No infrastructure changes are requested.
Thank you.
3 Replies
2 hours ago
For a standard service, outbound IPv6 is opt-in per service: enable Enable Outbound IPv6 under the service's Settings > Networking, then apply the staged change to redeploy. While it is disabled, IPv6 connection attempts fail with ENETUNREACH (Outbound Networking). Sandboxes have outbound internet access through a NAT gateway in both modes. ISOLATED only blocks private networking to and from other services (Sandboxes networking). We can't confirm IPv6 egress from a sandbox, so test it in a throwaway sandbox first.
Our infrastructure destroys a sandbox once its idle timeout passes. On Hobby the default is 30 minutes, and you can set it from 1 to 120 minutes. You can also set an optional per-command deadline with timeoutSec or --timeout. execHttp enforces a 2-minute timeout by default, with a 10-minute maximum (Timeouts). A sandbox stops billing once it is destroyed.
Usage limits apply to the whole workspace, not to individual services or sandboxes. Reaching the compute hard limit takes all workloads offline, and the minimum hard limit is $10 (Cost Control). Sandboxes are billed per second at VM rates for CPU used, memory in use and egress at $0.05 per GB, and this comes out of your included usage (Sandbox pricing).
For destination allowlisting, credential isolation in new environments and protection against re-execution, rely on your application's controls and validate them in an isolated test project.
Status changed to Awaiting User Response Railway • about 2 hours ago
Railway
For a standard service, outbound IPv6 is opt-in per service: enable **Enable Outbound IPv6** under the service's Settings > Networking, then apply the staged change to redeploy. While it is disabled, IPv6 connection attempts fail with `ENETUNREACH` ([Outbound Networking](https://docs.railway.com/networking/outbound-networking)). Sandboxes have outbound internet access through a NAT gateway in both modes. `ISOLATED` only blocks private networking to and from other services ([Sandboxes networking](https://docs.railway.com/sandboxes#networking)). We can't confirm IPv6 egress from a sandbox, so test it in a throwaway sandbox first. Our infrastructure destroys a sandbox once its idle timeout passes. On Hobby the default is 30 minutes, and you can set it from 1 to 120 minutes. You can also set an optional per-command deadline with `timeoutSec` or `--timeout`. `execHttp` enforces a 2-minute timeout by default, with a 10-minute maximum ([Timeouts](https://docs.railway.com/sandboxes#timeouts-and-output)). A sandbox stops billing once it is destroyed. Usage limits apply to the whole workspace, not to individual services or sandboxes. Reaching the compute hard limit takes all workloads offline, and the minimum hard limit is $10 ([Cost Control](https://docs.railway.com/pricing/cost-control)). Sandboxes are billed per second at VM rates for CPU used, memory in use and egress at $0.05 per GB, and this comes out of your included usage ([Sandbox pricing](https://docs.railway.com/sandboxes#pricing)). For destination allowlisting, credential isolation in new environments and protection against re-execution, rely on your application's controls and validate them in an isolated test project.
2 hours ago
Thank you for the clarification.
I would appreciate a human engineering review of the following unresolved points:
-
Does Railway Sandbox support outbound IPv6 to external TCP port 5432?
-
Is a platform-enforced outbound destination and port allowlist unavailable on the Hobby plan?
-
Is there any infrastructure-enforced absolute lifetime limit for a Sandbox or service, independent of idle activity and application behavior?
-
Can an isolated environment be guaranteed not to inherit existing credentials or deployment triggers?
-
Can Railway infrastructure prevent unintended re-execution after infrastructure recovery or redeployment?
We already have application-level security controls. However, our security qualification requires independent infrastructure-level enforcement.
Please explicitly distinguish unsupported features from features that are available but undocumented.
No deployment or infrastructure changes are requested.
Thank you.
Status changed to Awaiting Railway Response Railway • about 2 hours ago
32 minutes ago
On the absolute lifetime question, sandboxes have no infrastructure-enforced maximum lifetime independent of activity. Teardown is driven by the idle timeout (1 to 120 minutes on Hobby, or disabled entirely with idleTimeoutMinutes: 0), and we defer idle teardown while an exec command is running, including a detached one. The only hard deadlines are per command: timeoutSec on exec, and execHttp, which the server enforces at 2 minutes by default and 10 at most (Timeouts).
On inheritance, a sandbox only receives the variables you pass at create time through env or --variable, and a fork does not inherit its source's variables or settings. A project token is scoped to a single environment, while account and workspace tokens span environments (Sandbox configuration).
We can't give an infrastructure-level guarantee for outbound IPv6 from a sandbox to port 5432, for an outbound destination and port allowlist, or for preventing re-execution after recovery or redeployment, and we can't provide engineering sign-off on those points. If your qualification depends on any of them, please validate the behavior yourself in a throwaway project before relying on it.
Status changed to Awaiting User Response Railway • 32 minutes ago