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_64oraarch64. 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.comandverdictan.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:
| Host | Archive |
|---|---|
| Linux amd64 | verdictan-x86_64-unknown-linux-gnu.tar.gz |
| Linux arm64 | verdictan-aarch64-unknown-linux-gnu.tar.gz |
| macOS Apple silicon | verdictan-aarch64-apple-darwin.tar.gz |
| Channel | Use it when | Upgrade with |
|---|---|---|
| Homebrew | The tap publishes the version and host architecture you need. | brew upgrade verdictan |
| APT | You run an amd64 Debian or Ubuntu server. | sudo apt upgrade verdictan |
| DNF | You run an x86_64 RHEL, CentOS, Fedora, or Amazon Linux 2023 server. | sudo dnf upgrade verdictan-gateway |
| Official installer | You do not use a package manager. | verdictan-update |
| Release archive | You must have one exact version or a copy for an air-gapped host. | Download the new archive. |
| Container image | You 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-
Download the repository key:
sudo apt update sudo apt install curl gnupg curl -fsSL https://verdictan.com/packages/keys/verdictan-packages.asc \ -o /tmp/verdictan-packages.asc gpg --show-keys --fingerprint /tmp/verdictan-packages.asc -
Compare the fingerprint with this value. If the values are different, stop. Do not install the package.
C694 4190 15D8 4CDB C336 FD4C 0EBE AF08 4212 D66A -
Add the key and the repository. Then install the package:
sudo gpg --dearmor --yes \ -o /usr/share/keyrings/verdictan-packages.gpg \ /tmp/verdictan-packages.asc sudo curl -fsSL https://verdictan.com/packages/apt/verdictan.list \ -o /etc/apt/sources.list.d/verdictan.list sudo apt update sudo apt install verdictan
-
Add the RPM repository:
sudo curl -fsSL https://verdictan.com/packages/rpm/verdictan.repo \ -o /etc/yum.repos.d/verdictan.repo -
Install the package. At the key prompt, compare the fingerprint with
C694 4190 15D8 4CDB C336 FD4C 0EBE AF08 4212 D66A. If the values are different, answer no.sudo dnf install verdictan-gateway
DNF verifies the package signature and the repository metadata signature.
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
- Open the latest release.
- Download the archive for your platform, for example
verdictan-aarch64-apple-darwin.tar.gzorverdictan-x86_64-unknown-linux-gnu.tar.gz. - Download
sha256.sumfrom the same release. Compare the digest of the archive with the listed value. - Extract the archive. Move both
verdictanandverdictan-updateto a directory on yourPATH. 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 --versionThe 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 doctorverdictan --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-proxySee 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
| Problem | Cause | Action |
|---|---|---|
verdictan: command not found after the official installer | The 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 platform | The 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 mismatch | The 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 error | The key file or the repository file is incomplete. | Do the key and repository steps again and compare the fingerprint. |
verdictan-update refuses to run | A supervised gateway service uses the binary. | Use verdictan gateway upgrade plan and apply. |
Next steps
- Quickstart: connect this installation and send your first request.
- Manage configuration in a file: write, lint, and test
policy-config.yaml. - verdictan gateway: run and manage the gateway as a service.
- Select an installation channel for the Verdictan CLI: a short guide to this task, with the decisions and limits in one place.