Skip to main content

Install the gateway

The verdictan command is the CLI and the gateway in one binary. Use this page to install it on a server for production, or with a package manager, a release archive, or the container image.

For a first gateway, you do not need this page: the Quickstart installs and starts the gateway for you. If you already did the Quickstart, continue with Connect your application. If you run the gateway only in Docker, you do not have to install the binary on the host.

Before you start​

  • For the current direct release: macOS on Apple silicon, or Linux on x86_64 or aarch64. The current release does not publish Intel macOS or Windows binaries. Check the assets of the selected release before you choose a platform or version.
  • Outbound HTTPS access to github.com and verdictan.github.io.
  • Administrator rights for APT, DNF, or a system-scope gateway service.

Select your installation​

The channel that installs a binary owns its upgrades. Package-manager channels can lag behind direct releases and can have a different platform inventory. Check the version and archive URL in the channel manifest before installation. The current direct release publishes these archives:

HostArchive
Linux amd64verdictan-x86_64-unknown-linux-gnu.tar.gz
Linux arm64verdictan-aarch64-unknown-linux-gnu.tar.gz
macOS Apple siliconverdictan-aarch64-apple-darwin.tar.gz
ChannelUse it whenUpgrade with
HomebrewThe tap publishes the version and host architecture you need.brew upgrade verdictan
APTYou run an amd64 Debian or Ubuntu server.sudo apt upgrade verdictan
DNFYou run an x86_64 RHEL, CentOS, Fedora, or Amazon Linux 2023 server.sudo dnf upgrade verdictan-gateway
Official installerYou do not use a package manager.verdictan-update
Release archiveYou must have one exact version or a copy for an air-gapped host.Download the new archive.
Container imageYou run the gateway in Docker or Kubernetes.Pull the new image tag.

The APT and RPM repositories publish x86_64 packages only. On aarch64 Linux, use Homebrew, the official installer, or a release archive.

Install with a package manager​

brew install verdictan/tap/verdictan

Install with the official installer​

The shell installer downloads the release for your platform and compares its SHA-256 digest with the checksum embedded in the installer. It installs verdictan and verdictan-update without registering a background service. This checksum check is not an independent verification of the release signature. Signed checksum and Sigstore assets are published separately with the release.

Download the installer, read it, and then run your local copy:

INSTALLER="$(mktemp)"
curl -fsSL https://verdictan.com/install -o "$INSTALLER"
less "$INSTALLER"
sh "$INSTALLER"
rm "$INSTALLER"

The binaries go in ~/.local/bin on Linux and macOS. Set VERDICTAN_INSTALL_DIR to an absolute path to select another directory. The installer adds that directory to PATH in your shell profile. Set VERDICTAN_NO_MODIFY_PATH=1 to keep your profile unchanged, then add the directory to PATH yourself.

Install from a release archive​

  1. Open the latest release.
  2. Download the archive for your platform, for example verdictan-aarch64-apple-darwin.tar.gz or verdictan-x86_64-unknown-linux-gnu.tar.gz.
  3. Download sha256.sum from the same release. Compare the digest of the archive with the listed value.
  4. Extract the archive. Move both verdictan and verdictan-update to a directory on your PATH. Release executables include their runtime; they do not need a separate Node.js installation.

Each release asset also has a .sigstore.json bundle. Use it if your change process requires signature verification.

Run the container image​

docker pull verdictan/verdictan:latest
docker run --rm verdictan/verdictan:latest --version

The image contains the same verdictan command. A container without a policy config and a gateway registration does not govern requests. The quickstart in Docker starts a container with both.

Verify the installation​

Open a new terminal and run:

verdictan --version
verdictan doctor

verdictan --version prints the installed version. This confirms the installation.

On a new installation, verdictan doctor can report missing authentication or a missing config file. This is expected before setup. The quickstart signs you in and starts a connected gateway.

Run the gateway as a service​

A service starts the gateway again after a restart of the host. First, run the gateway in the foreground. Send a request that succeeds. Then install a service with the same agent:

verdictan gateway install \
  --name verdictan-proxy \
  --agent-id <existing-agent-id>

Like the foreground gateway, the service gets its configuration from the control plane. Do not add --policy-config for this task. With --policy-config, the service deploys the file to every gateway of the agent each time it starts. Without an agent, the install command stops with an error. To change the configuration, deploy a version to the agent in Configurations.

The service must have the same provider credentials and gateway token as the foreground gateway. See verdictan gateway for status, logs, and removal.

With CLI 0.1.14 or later, you can deploy a local file through the agent. After deployment, check In sync in Gateways. Then send a test request. The gateway service must also run version 0.1.14 or later to report configuration changes correctly.

Upgrade​

Use the upgrade command for the channel that installed the binary. The table in Select your installation lists each command.

verdictan-update replaces the binary at its current path with the latest release. Use it only when no package manager owns the binary. It does not replace a binary while the supervisor manages a gateway service.

verdictan-update --version (or -V) prints the updater version. verdictan-update --help (or -h) prints its usage. Both commands exit without an update check.

For a gateway service, use the supervised upgrade. It records a rollback binary before it changes the service:

verdictan gateway upgrade plan \
  --name verdictan-proxy \
  --target-version <new-version> \
  --binary-path /absolute/path/to/new/verdictan
verdictan gateway upgrade apply --name verdictan-proxy

See verdictan gateway upgrade for status and rollback. For a container, pull the new image tag and create the container again with the same configuration.

Troubleshooting​

ProblemCauseAction
verdictan: command not found after the official installerThe open shell does not have the install directory on PATH.Open a new terminal, or run export PATH="${VERDICTAN_INSTALL_DIR:-$HOME/.local/bin}:$PATH".
The installer reports Unsupported platformThe current release has no binary for that host.Check the release asset list. Use a supported Linux host or a compatible container host.
The installer reports checksum mismatchThe download is incomplete or changed in transit.Run the installer again. If the error occurs again, stop and report it.
APT or DNF reports a signature errorThe key file or the repository file is incomplete.Do the key and repository steps again and compare the fingerprint.
verdictan-update refuses to runA supervised gateway service uses the binary.Use verdictan gateway upgrade plan and apply.

Next steps​