New Three new products: fordway trading ERP, UEPS cloud rendering and WPECS delivery and operations View products →

The security boundaries of a Pixel Streaming platform: viewer port, admin port and render machines

Engineering By SREYUN 0 views

A Pixel Streaming platform serves three kinds of clients at once: viewers on the public internet, operators on the internal network, and UE processes and agents on the render machines. Many early setups put all of them on the same port behind the same authentication, or none at all: signaling had no authentication by default, allow-lists could be bypassed with forged headers, and anyone who reached the signaling port could pretend to be UE. UEPS follows secure by default: draw the boundaries first, then defend each one.

Boundary 1: separate viewer and admin ports

EntryOpen toServes
Viewer port (public, through nginx)Viewers on the internet or LANPlayer page, browser SDK, viewer signaling and the public program list
Admin port (:88, internal only)Allowed admin subnetsConsole, REST API, Prometheus metrics
UE / agent access (:88, internal only)Allowed UE subnets plus the agent tokenUE signaling, agent connections, render machine installer downloads

Requests forwarded through a proxy can never connect as UE or an agent. The deployment checklist includes a dedicated test: a WebSocket upgrade with the agent protocol through the public entry must return 403. If a change to the allowed admin subnets or trusted reverse proxies would lock out the administrator making it, the change is refused.

Boundary 2: administrator identity

  • Passwords are stored with scrypt (N=16384); sign-in tokens are HS256 JWTs valid for 8 hours, kept in an httpOnly, SameSite=Strict cookie.
  • Three roles: administrator (everything), operator (instances, programs, sessions) and read-only, and every write is audited.
  • Five failures within a 5-minute window lock the source IP for 5 minutes; two-factor authentication (TOTP), session revocation and "sign out everywhere" are supported.
  • Writes require a JSON body plus an X-PS-Request: 1 header, which blocks cross-site request forgery.
  • API tokens are for business system integration; configuration changes are only allowed from administrator sessions, and API tokens can only read them.
  • Single sign-on: a business system calls the API with an administrator token to create a one-time sign-in link (60 seconds, single use by default), and unused links stop working as soon as the user is disabled or signed out by force.
  • If a password is forgotten, run --reset-password on the gateway: the new password is written to the data directory, two-factor authentication is cleared and old sessions are revoked.

Boundary 3: viewer access control

Viewers need no account, but that does not mean no control:

  • Access links: a program can require an access token signed by the server, carrying the program, an expiry and a usage limit, and revocable at any time; VIP links are server-signed too and cannot be forged by editing the URL.
  • IP allow-lists and per-IP limits: restrict source networks and the number of sessions per IP for each program.
  • Connection rate limits: by default 20 new viewer connections per second per IP with bursts of 100, answered with HTTP 429 beyond that; raise it for corporate NAT gateways. The limit applies only to viewer connections, so several UE processes on one render machine are never caught by it.

When a viewer is disconnected, the player shows a clear message based on the close code, which makes troubleshooting easier for the business side:

Close codeMeaning
4003An access link is required
4005A new session from the same IP replaced this one
4006The IP is not on the allow-list
4002Idle for too long
4007The slot went to a VIP viewer while the program was full
4009(UE side) the instance was already stopped by the platform; the zombie UE is refused

Boundary 4: render machines

  • Agents connect only with the access token, which can be rotated in the console; install links already generated carry the new token when downloaded.
  • Agents only start executables inside their allowed directories, from an argument array without a shell.
  • If two render machines use the same machine name, the platform refuses the second one (HTTP 409) and logs both addresses, so the two machines do not keep knocking each other offline.

Configuration under control

Version 1.5 moved 22 parameters that used to live only in configuration files and environment variables into System settings in the console. The precedence is environment variable, then console, then default: anything set by an environment variable shows as locked and read-only; every item is validated on its own and against related items and marked as taking effect immediately or after a restart; a version number stops two administrators from overwriting each other; and every change or reset is audited with before and after values.

Not brought down by a single request

The platform offers pathfinding and coordinate conversion APIs compatible with the legacy enterprise edition. Because these run in the same process as signaling, a huge pathfinding request could make the whole platform unresponsive. Version 1.3.2 added limits: at most 1,000 waypoints, and a cap on waypoints times road network size, with a clear reason returned when exceeded.

In short

UEPS's security design fits in one sentence: the public entry only does viewer work, the internal entry only serves internal people and machines, and every kind of client has its own identity and limits. See the UEPS product page for more.

Related articles