Install
From an empty host to a first recorded session.
Start on a test machine with Docker Compose. For production, move to Helm and plug in your own OpenBao. For a site without Internet access, use the signed offline bundle.
Prepare the host
A dedicated Linux machine is enough, and a DNS name pointing to it, for example bastion.votre-entreprise.fr. Compose also starts PostgreSQL, OpenBao, Valkey, NATS and recording storage.
Run the installer
One command, or three if you'd rather read the script before running it. On a bastion, that's a good habit. The script asks its questions in the terminal: the bastion's address, its HTTPS certificate, the OpenBao to use, the premium modules. It installs only the deployment files, never the source code.
$ curl -fsSL https://raw.githubusercontent.com/su2626/bastionos-install/main/install.sh | sudo bash
$ curl -fsSL -o install.sh https://raw.githubusercontent.com/su2626/bastionos-install/main/install.sh $ less install.sh $ sudo bash install.sh
Choose the address and the certificate
The address is the one your users type. It also serves security keys and single sign-on redirects. For its HTTPS certificate, the installer offers five choices:
The first administrator
The installer creates it on the server, never over the network, and shows its password only once. The same command serves as break-glass access: it re-enables the account, unlocks it and closes its sessions.
$ sudo bastionos admin-password admin
Sign in, then open a first session
The console answers on the address you chose, for example https://bastion.votre-entreprise.fr. Enroll your second factor, add a machine and an account, write a rule, then connect:
$ ssh -p 2222 'admin#root@web-01'@bastion.votre-entreprise.fr
The session appears in Audit, with its recording and its commands.
Docker Compose
For a trial or a small site, on a single host.
Movable ports
HTTPS 443, SSH 2222, PostgreSQL 15432, MySQL 13306. Each one can be changed at install time or with a variable, for example BASTION_SSH_PORT=2223.
Generated secrets
Internal passwords are drawn at random at install time. Running the generator again after an upgrade adds the new ones and keeps the others.
Bundled OpenBao
The Compose one unseals itself with a key kept next to its data: fine for a trial, never for production. Plug in your own with compose.external-openbao.yaml.
Built-in HTTPS
An HTTPS front serves the console under your name, with Let's Encrypt or your certificate, and redirects HTTP. The clear-text console only listens on the host. An existing reverse proxy is still possible.
Helm
For production and high availability, on your Kubernetes cluster.
$ helm install bastion deploy/helm/bastionos -f my-values.yaml
Your services
The chart uses your PostgreSQL, OpenBao, Valkey, NATS and S3 storage. It never deploys OpenBao.
Multiple replicas
Replicated control plane and gateways, disruption budgets, anti-affinity and network policies.
Separate gateways
SSH and database gateways have their own network services and scale independently.
Never as root
The chart rejects values that would run a container as root. Migrations run before every upgrade.
Without Internet
A signed archive holds the BastionOS images and the ones it relies on, the Compose files, the Helm chart and the documentation.
$ ./install.sh verify --pubkey bastionos-release.pub $ ./install.sh load --pubkey bastionos-release.pub
Verify first
The archive is rejected if its signature, a checksum or an unexpected file doesn't match. The public key is obtained separately, never from the archive.
Load or push
On a host: load the images, then start Compose. On Kubernetes: push the images to your internal registry, then install the chart.