HUB
Sign inSign up

unholyw4r/ferryx-worker

By unholyw4r

โ€ขUpdated 3 months ago

Image
0

1.3K

unholyw4r/ferryx-worker repository overview

โ โš™๏ธ Ferryx Worker

Outbound-only job executor for closed / private networks.


โ ๐ŸŽฏ Purpose

Ferryx Worker runs inside environments that are not publicly accessible:

  • No static IP
  • Inbound traffic blocked
  • VPN-only or private networks

The Worker never exposes ports to the internet.
Instead, it connects outbound to a Ferryx Hub and waits for authenticated job triggers.


โ ๐Ÿงฑ How it works

  1. Worker starts inside the private network
  2. Establishes an outbound SignalR connection to the Hub
  3. Authenticates using a Hub-issued JWT
  4. Subscribes to a single Group
  5. Waits for job / deploy signals
  6. Executes local scripts when triggered

โ ๐Ÿ”— Connection Model

  • Outbound-only connection
  • No inbound firewall rules required
  • Hub pushes signals over the existing connection
  • Ideal for restricted environments

โ ๐Ÿš€ Quick Start (Docker)

โ Run Worker
docker run -d --name ferryx-worker --restart unless-stopped   --user 0:0   -p 16080:16080   -e FERRYX_HUB_URL="http://HUB_ADDRESS:18080"   -e FERRYX_HUB_TOKEN="HUB_JWT"   -e FERRYX_GROUP="pre-prod"   -v /ferryx/operation:/ferryx/operation   unholyw4r/ferryx-worker:latest

โ ๐Ÿ” Required Environment Variables

VariableDescription
FERRYX_HUB_URLHub address (IP or domain)
FERRYX_HUB_TOKENJWT generated by the Hub
FERRYX_GROUPGroup to subscribe to (e.g. pre-prod, prod)

The group must exist under a target in the Hub configuration.


โ ๐Ÿ‘ฅ Groups & Routing

  • Each Worker subscribes to exactly one group
  • Groups are defined on the Hub under a target
  • When a job is triggered for a group:
    • All Workers in that group receive the signal
    • Workers outside the group are ignored

โ โš™๏ธ Job Execution

Workers execute jobs from:

/ferryx/operation/run.sh

This script is fully user-defined.

โ Common use cases
  • Application deployments
  • Restarting services
  • Running maintenance scripts
  • Executing custom automation

โ ๐Ÿ”’ Security Model

  • Worker authenticates using a Hub-issued JWT
  • JWT is validated on connection
  • No inbound access required
  • No exposed credentials beyond the token

Token characteristics:

  • Long-lived
  • Signature-based validation
  • Infrastructure-level trust

โ ๐Ÿงช Testing locally

If Hub and Worker run on the same host:

-e FERRYX_HUB_URL="http://localhost:18080"

For production:

  • Use public Hub IP or domain
  • Worker network can remain fully private

โ โœ… Summary

  • Runs inside closed / restricted networks
  • Outbound-only connection to Hub
  • Listens for group-based triggers
  • Executes local jobs safely
  • No inbound firewall or NAT configuration required

Tag summary

Content type

Image

Digest

sha256:171a0fa0bโ€ฆ

Size

115.2 MB

Last updated

3 months ago

docker pull unholyw4r/ferryx-worker