Replacing Legacy Panel Callbacks with a Pure-Rust Wings Remote Engine
Pterodactyl Wings nodes frequently call panel remote endpoints for server configuration sync, installation status updates, SFTP authentication, and activity logging. Offloading these hot-path callbacks to a dedicated Rust daemon reduces latency and tightens trust boundaries.
Loopback Isolation Architecture
athars-core binds exclusively to 127.0.0.1:8088 and is explicitly blocked from external proxy exposure in athars-proxy. Only local Wings daemons and internal services (pteropay-gateway and ptero-mcp) can reach it.
- Constant-Time Auth: Wings
daemonTokenId.daemonTokenheaders are validated usingsubtle::ConstantTimeEq. - Parameterized SQLx Queries: Every PostgreSQL query against shared Prisma-managed tables uses strict bind parameters (
$1,$2). - Short-Lived Console JWTs: WebSocket console tokens are signed via
jsonwebtoken(aws_lc_rs) with a 10-minute expiration window.
Temporary SFTP Passwords Without Exposing Account Secrets
Instead of reusing user login passwords for SFTP, athars-core issues time-bound bcrypt-hashed temporary credentials scoped to a specific container UUID, verified during Wings SFTP handshake callbacks.
See how this powers instant Indonesia container hosting in our Pterodactyl Panel Indonesia solution.