PortGate

Blueprints · AI & LLMs

Production 15 min · Local AI

Ray dashboard on localhost

Stages a Ray start command that binds the dashboard to 127.0.0.1. The Jobs API does not authenticate by itself.

Why this should not be public

Ray's Jobs API runs submitted code without authentication (CVE-2023-48022), and exposed clusters were mass-exploited for cryptomining in the ShadowRay campaign.

Baked-in protections

Step 1 · bash

Start command

/root/portgate-blueprints/ray-start.sh

Run this as the user who should own the jobs, after you accept that the dashboard has no login of its own.

#!/bin/sh
set -eu
ray start --head --dashboard-host 127.0.0.1 --port 6380

Step 2 · bash

Read-only check

/root/portgate-blueprints/ray-check.sh

Prints status. It does not change the service.

#!/bin/sh
set -eu
ss -tulpn | grep 8265 || echo "Nothing is listening on 8265."