Skip to content
Impulse SoftwareDOCS
Get modules

ImpulseObjects

Verified for ImpulseObjects 1.2.1 ·

Adding a storage server

Have the module provision a RustFS storage server on Vultr, Hetzner, DigitalOcean, Linode or Proxmox VE — or turn a server you already own into one with a one-time installer.

Time: ~15 min · Requires: step 1 complete

Every ImpulseObjects server runs RustFS, an S3-compatible object store. RustFS is an operator-side detail that is never shown to customers: they get S3-compatible buckets, a dashboard and access keys. New servers install the Default RustFS version under Settings → General & Access, or RustFS 1.0.4 when it’s blank. A server installs its target release whenever its setup runs: its own Engine version (pin) (on ✎ Edit / details), else that default, else 1.0.4. Nothing upgrades RustFS on its own: ⬆ Update server moves a server to its target release (see Keep each server current).

There are two ways to add a server. Both live under Infrastructure:

Path Use when
+ Provision New Server You want the module to create a fresh VPS through your provider’s API and set it up automatically — RustFS, Nginx, a Let’s Encrypt certificate and the Admin Proxy. The default and recommended path.
+ Add Existing Server You already have a server (any provider, or bare metal) and want the module to turn it into a storage node. The module builds a one-time installer you run on the box.

On the Standard tier you can have one server in total; adding a second needs a license.

From the addon, open Infrastructure → + Provision New Server. Fill in:

  • VPS Provider — shown when Settings → Providers & Regions is in Multi-provider mode: pick from your configured providers. In single-provider mode the server goes to your default provider.

    Amazon EC2, Azure and Google Cloud aren’t offered for new servers: the cloud firewall set up there opens only the management ports (the Admin Proxy and SSH, from your WHMCS server), so customers couldn’t reach S3 on ports 80 and 443. They’re left out of the picker, the provision form’s plan and region lists refuse them, and a provision on one is refused before anything is created, with a message that names the provider, such as Google Cloud isn't available for this module yet: its cloud firewall doesn't open the service's ports. Choose another provider. None of them can be saved as the default provider or as a region’s preferred provider. If your saved default is one of them, new servers go to the first provider you’ve set up, in this order: Vultr, Hetzner, DigitalOcean, Linode, Proxmox VE. Settings and the provision form warn about it, and when none of those is set up, the warning asks you to set one up. A server already on one of them is still managed as before (⬆ Update server, reboot, TLS, destroy), keeps taking orders while it’s active, and shows a warning in the server list and on its details page. While a server runs on one of them, Settings → Providers & Regions keeps that provider’s credentials, marked EXISTING SERVERS ONLY.

  • Provider Region — where the VPS is created. Choosing it fills in the server name and hostname.

  • Server Name — admin-facing label, e.g. US Central — Dallas.

  • Hostname (FQDN) — becomes the customer’s S3 endpoint, e.g. s3.us-central.example.com. It must sit in a zone on your DNS provider. The region the server belongs to is read from the hostname using the Hostname Template under Settings → DNS & TLS; customers pick a region at order time and orders are spread across that region’s servers.

  • Join an existing region pool (optional) — puts the new server in the same region as servers you already have; the hostname is adjusted (s3 → s3-2) so it stays unique.

  • VPS Plan (Compute) — click Choose Plan to pick from the provider’s plan catalog. The list only shows plans with at least 4 GB RAM.

  • Block Storage — size of a volume to attach (Vultr, Hetzner, DigitalOcean and Linode). Prices come from the provider’s API. The volume is mounted as the RustFS data directory, /mnt/rustfs-data.

  • Advanced options — Max Tenants (how many customer services can land on this server; 0 = unlimited) and Mark as default for this region (default servers are picked first for new orders).

Click Provision Server. The flow takes 5–10 minutes:

  1. The provider API creates the VPS. The provisioning task (every 2 minutes, on ImpulseCore’s cron runner) attaches block storage, sets reverse DNS and creates the hostname’s A/AAAA records at your DNS provider.
  2. On first boot the VPS fetches its setup from your WHMCS and installs RustFS, Nginx, the Admin Proxy and certbot. Its firewall admits only your WHMCS addresses (Additional WHMCS addresses included) to the Admin Proxy. SSH is set to keys only, with port 22 open to your WHMCS server and your break-glass SSH sources only; see SSH on storage servers. The setup also turns on automatic security updates, which never reboot the server on their own.
  3. Certbot requests a Let’s Encrypt certificate through a Cloudflare DNS-01 challenge. If that fails — no Cloudflare token, a zone that isn’t on Cloudflare, or slow DNS propagation — the server comes up with a self-signed certificate until you reissue it.
  4. The provisioning task checks the Admin Proxy (/admin/v1/health) and the server’s own setup report; once setup has finished, the server flips to online and starts taking orders.

For a server you already own, open Infrastructure → + Add Existing Server:

  1. Fill in the Hostname (FQDN) (point an A/AAAA record for it at the server before you run the installer), the Region label and code, and the Admin proxy port (default 9099). Under Advanced you can set the server name, its IPv4/IPv6 addresses, or an Admin Proxy secret of your own.
  2. Click Provision & build installer. The next page offers Download installer (.sh) or Show / copy script. While HIGH RISK break-glass SSH is on and has a public key (Settings → General & Access), it also offers Add the WHMCS break-glass SSH key to root’s authorized keys on this host, unticked; tick it before you download or copy the script if you want the key there. Otherwise the installer adds no SSH key.
  3. Run it on the server as root, from an SSH session: sudo bash impulseobjects-install-<host>.sh. It installs the Admin Proxy and sets the box up as a full storage node — RustFS, Nginx and TLS — on the server’s local disk (it never formats an attached volume). It also turns SSH password logins off, so put your SSH key in root’s authorized_keys before you run it (see below). Add --remove-open-ssh to remove your firewall rules that open SSH to anyone else without being asked. The token embedded in the script is single-use and expires about 2 hours after you generate it.
  4. Until the box’s first setup finishes, the server’s status reads waiting for installer. Click 📶 Test admin proxy. Once it answers, open the server’s details (✎ Edit / details) and tick Active so customer orders can land on it.

No SSH from WHMCS is involved, and no secrets are copied by hand. To build the installer again, choose 📥 Installer from the server’s row menu: it opens the same page, and each download or copy builds a new script with a new token. The installer is only for servers added this way: the menu doesn’t offer it for a server the module provisioned, and the module refuses to build one for such a server.

What the installer does to SSH and the firewall

Section titled “What the installer does to SSH and the firewall”

A server you add yourself gets keys-only SSH too, open to your WHMCS server, your break-glass SSH sources and the address you run the installer from. Your own SSH rules stay unless you choose to remove them. The installer never resets the firewall (ufw). It:

  1. Opens every TCP port sshd listens on (from sshd’s settings and, while it’s active, the ssh.socket unit; 22 when neither says) to your WHMCS addresses (WHMCS Server IPv4, WHMCS Server IPv6 and Additional WHMCS addresses), your break-glass SSH sources and the address of the SSH session you run it from, before it changes anything else. Nothing opens SSH to everyone. If it can’t read your session’s address (a console, or tmux or screen started elsewhere), it says so and opens SSH to the others only: add your address to Break-glass SSH sources before you build the installer. If the rules that keep your way in can’t be added, it stops before it changes the firewall.
  2. Sets ufw to deny incoming traffic (and allow outgoing traffic) by default, opens HTTP and HTTPS (and port 9001 if Expose Object Storage Console on provisioned servers is on), and turns ufw on.
  3. Opens both Admin Proxy ports — 9098 for TLS and the Admin proxy port you entered — to your WHMCS addresses, and removes any other rule for exactly one of those ports, including one of yours. A rule that opens one of them together with other ports, or every port, is listed and left. (If the host also sits behind a firewall outside the server, such as a cloud firewall or security group, open the Admin Proxy ports there too, to each WHMCS address.)
  4. Turns SSH password and keyboard-interactive logins off, as on the servers the module provisions (see SSH on storage servers). Run over SSH, it warns when root, or the account you ran sudo from, has no key in ~/.ssh/authorized_keys: add one before you log out, or you can sign in only from the provider’s console.
  5. Lists your firewall rules that open SSH to anyone else and keeps them, unless you answer y when it asks (it waits 120 seconds; no answer keeps them) or ran it with --remove-open-ssh. Without a terminal to ask on, it only lists them. A rule that opens SSH together with other ports, or every port to one host, is listed and never removed.

⬆ Update server keeps SSH that way on these servers: it never asks and never removes your SSH rules. Its result reads key-only, or key-only, rules kept while rules of yours still let SSH in from elsewhere. A server you added with an earlier release takes all of this on its next ⬆ Update server: password logins turn off there too (check your key first), and the rule that release added to open port 22 to everyone is listed as kept. Remove it by hand, or build the installer again (📥 Installer) and answer y or run it with --remove-open-ssh.

The break-glass SSH key. The installer adds your break-glass SSH public key to root’s authorized_keys (no other account’s) only when you tick that option as you build it. A setup re-run by ⬆ Update server never adds it to a server you added yourself. Earlier releases added it whenever break-glass SSH was on, both in the installer and in setup re-runs, and nothing removes it now: if you don’t want it on a host, delete it from /root/.ssh/authorized_keys there.

On Infrastructure → Manage Servers, the server’s row should show:

  • Status: online.
  • Tenants: 0 against your Max Tenants.

From the row’s menu, 📶 Test admin proxy confirms WHMCS can reach the box, and ✎ Edit / details shows the attached block storage.

If the server is stuck or failed, choose 📜 View bootstrap log from the row’s menu. The log is read through the Admin Proxy; if the proxy isn’t answering yet, you see the output captured during provisioning. The most common stalls are a Cloudflare API token missing Zone:DNS:Edit or Zone:Zone:Read, and hostnames that don’t resolve yet. See Troubleshooting.

When a release changes what a server should run, its status on Infrastructure → Manage Servers shows update available. Choose ⬆ Update server from the row’s menu. It shows a plan first (what changes, what restarts and for how long, and whether customers notice), then runs one of two updates through the Admin Proxy. It never uses SSH. The plan also moves a server to its target RustFS release, but the status doesn’t show a release change: after you change a server’s pin or Default RustFS version, run ⬆ Update server on the servers it concerns.

  • Settings re-apply. Used when the server already runs the current setup. The Admin Proxy re-applies the server’s settings and restarts the storage engine, so S3 requests pause for a few seconds. Then it runs the Admin Proxy ports step and the SSH step, and the reply says what each came to.
  • Setup re-run. Used when the server’s setup is older, or it runs another RustFS release than its target (the plan shows the move, for example RustFS: 1.0.0-beta.6 → 1.0.4). After the settings re-apply, the server downloads the current setup once and re-runs it in place, installing the target release; data and access keys are kept. Nginx, the storage engine and the Admin Proxy restart, for about 5–10 seconds of S3 downtime. The re-run holds back kernel upgrades and never reboots the server. Follow it with 📜 View bootstrap log.

Both plans include an Admin Proxy ports line (both ports open to this WHMCS server’s addresses, Additional WHMCS addresses included, only; a rule for an address no longer listed is removed) and an SSH line. On a server the module provisioned, the SSH line says password login off and port 22 open to this WHMCS server (and your break-glass SSH sources) only, which closes SSH from anywhere else; add any address you SSH from to Break-glass SSH sources before you run it. On a server you added yourself, it says password login off and every port sshd listens on open to this WHMCS server, your break-glass SSH sources and the address its installer last ran from; your own rules that open SSH to anyone else are kept.

The plan refuses, and says why, when the server is still running a setup, its Admin Proxy doesn’t answer, its storage root password isn’t stored, or its Admin Proxy is too old to update in place (replace the server). When no valid WHMCS address is set, the run refuses before it changes anything on the server. A server on this release also refuses, before it changes anything, an update that comes from an address your settings don’t list (This request comes from …).

The SSH line. The server’s details page (✎ Edit / details) shows the SSH result of its last settings re-apply, with the time it was recorded. A setup re-run writes its SSH result to the bootstrap log only and clears the line. Run ⬆ Update server once more afterwards: that quick settings re-apply records the result. Troubleshooting explains each result.

Every storage server lets in only your WHMCS addresses, so a WHMCS server that moves to a new address must be let in first:

  1. Add WHMCS’s new address under Settings → General & Access → Additional WHMCS addresses, and save.
  2. Run ⬆ Update server on every server, and check each let the new address in to both Admin Proxy ports: a settings re-apply says Admin Proxy firewall: both ports open to … only.; a setup re-run says Admin Proxy port …: open to the WHMCS server's addresses only in its bootstrap log, once per port. Move WHMCS only once every server has.
  3. On an Amazon EC2, Azure or Google Cloud server, add a rule of your own to its cloud firewall for the new address (both Admin Proxy ports, and port 22 if you use break-glass SSH): the module’s rules there cover the WHMCS IPv4 and IPv6 alone.
  4. Move WHMCS.
  5. Put the new address in WHMCS Server IPv4 (or IPv6) in place of the old one, remove it from Additional WHMCS addresses, and save.
  6. Run ⬆ Update server on every server again. It closes the Admin Proxy ports to the old address, and port 22 too on a server the module provisioned; on a server you added yourself the old address’s SSH rules stay, listed, until you remove them.

Settings refuses a save that would remove the address WHMCS reaches the servers from now (WHMCS reaches your storage servers from … now, and this save would remove it …) and leaves the three fields as they were. It asks the servers where WHMCS comes from, and a server whose setup predates this release can’t say: run ⬆ Update server on every server before you change these addresses (until then the save goes on with a warning that says so).