Procy Docs
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeProcy home API GitHub Sign in

Upgrading from OpenRPort

Procy continues OpenRPort, and an OpenRPort server can be upgraded in place. The binaries, config file and data directory keep their names (rportd, rport, /etc/rport/rportd.conf), and Procy migrates the SQLite databases on its first start.

What stays compatible

  • Clients. OpenRPort clients (tested with 0.9.14) connect to a Procy server unchanged, and their tunnels, commands, scripts and file uploads keep working. You don’t have to upgrade clients at the same time as the server. A Procy client also connects to an OpenRPort server.
  • Data. Clients, client credentials, users and groups, stored tunnels, schedules, client groups, job history, saved commands and scripts, and the vault all carry over. API tokens and login sessions stay valid.
  • Config. Every OpenRPort setting is still accepted. Some values are now refused or need an extra setting; see config changes.

Upgrade the server

  1. Stop the server: sudo systemctl stop rportd.
  2. Back up the data directory (data_dir in rportd.conf, usually /var/lib/rport). Procy migrates the databases, and OpenRPort can’t open them afterwards, so the backup is your only way back.
  3. Download rportd_<version>_linux_x86_64.tar.gz from the latest release and replace the rportd binary (usually /usr/local/bin/rportd).
  4. Start the server: sudo systemctl start rportd. Clients reconnect on their own, and their tunnels come back.
  5. If it doesn’t start, check the log (journalctl -u rportd). Each config error names the setting it’s about; see config changes.

The OpenRPort web UI isn’t tested with Procy. Install the Procy web UI instead.

Config changes

Example values are refused

Procy won’t start with the placeholder values from the example config:

SettingRefused value
[server] key_seed<YOUR_SEED>
[server] authclientAuth1:1234
[api] authadmin:foobaz
[api] jwt_secret<YOUR_SECRET>, the docs’ example value, or anything shorter than 16 characters

If your server still uses any of these, you need new values, and two of the changes reach your clients:

  • A new key_seed gives the server a new fingerprint. Update fingerprint in every client’s rport.conf, or clients refuse to connect with ssh: handshake failed: invalid fingerprint.
  • New client credentials in [server] auth mean updating auth in every client’s rport.conf.

For jwt_secret you can also delete the line. Procy then generates a secret and saves it in the data directory, which signs everyone out once.

Header authentication needs trusted proxies

If you sign users in through a reverse proxy with [api] auth_header, list the proxies’ addresses in [api] trusted_proxies, for example trusted_proxies = ["127.0.0.1"]. Procy doesn’t start without it. In addition:

  • Unknown users aren’t created on their first sign-in unless you set create_missing_users = true. OpenRPort created them whenever header authentication was on.
  • Users created that way get no group unless you set default_user_group. OpenRPort put them in Administrators.

Client IP addresses behind a reverse proxy

Procy reads X-Forwarded-For only from the addresses in [api] trusted_proxies. If the API is behind a reverse proxy and that setting is empty, the server starts, but the audit log, sessions and login bans record the proxy’s address instead of the user’s. Add the proxy to trusted_proxies.

Permission changes

Users from auth or auth_file are now admin-only

OpenRPort let users outside the Administrators group run commands, open tunnels and read the vault when their users came from [api] auth or auth_file, which can’t store group permissions. Procy refuses that. Only Administrators can use commands, scripts, tunnels, the vault and schedules, and the server logs a warning at startup.

If you have non-admin users, move them to a user database with auth_group_details_table, where you can give their groups the permissions they need. The alternative is to add them to Administrators.

Commands and scripts share one permission

The separate scripts permission is gone. A group that may run commands may also run scripts. Clients still enforce their own settings, so a client with remote scripts turned off still refuses scripts.

Other differences

  • Pairing is built in. The “Install client” one-liners no longer use pairing.openrport.io. Enable Procy’s own pairing with the [pairing] section.
  • Built-in library entries. On its first start Procy adds a few entries to the command and script library, such as client updates and OS updates.
  • Postgres. SQLite stays the default. To move to Postgres later, see Postgres and clusters.