Roboflow Secure Gateway — MicroShift Installer Guide. This is the canonical install walkthrough that ships inside the MicroShift installer tarball as README.md. Bookmark the bundle URL alongside this guide — both live next to each other in repo.roboflow.com/rfdm/secure-gateway/microshift/.

Roboflow Secure Gateway — offline installer for MicroShift

This tarball installs the Roboflow Secure Gateway on a Red Hat Device Edge host running the Red Hat build of MicroShift. After install, the gateway runs as two pods (secure-gateway, seaweedfs) in the roboflow-edge namespace, supervised by rfdm running on the host in kubernetes mode.

For plain Linux + Docker hosts, use the docker-flavor bundle (secure-gateway-offline-installer-*) instead.


TL;DR

# 1. Download the latest bundle + its sha256 sidecar
curl -fOL https://repo.roboflow.com/rfdm/secure-gateway/microshift/latest/secure-gateway-microshift-installer-linux-amd64.tar.gz
curl -fOL https://repo.roboflow.com/rfdm/secure-gateway/microshift/latest/secure-gateway-microshift-installer-linux-amd64.tar.gz.sha256

# 2. Verify integrity
echo "$(cat secure-gateway-microshift-installer-linux-amd64.tar.gz.sha256)  secure-gateway-microshift-installer-linux-amd64.tar.gz" \
  | sha256sum -c -

# 3. Extract and run
tar xzf secure-gateway-microshift-installer-linux-amd64.tar.gz
cd secure-gateway-microshift-installer

sudo ./install-microshift.sh \
    --api-key   <ROBOFLOW_API_KEY> \
    --device-id <DEVICE_ID> \
    --workspace <WORKSPACE>

The installer is idempotent. It imports the bundled images into CRI-O, pins them, hands host ports 80/443 to the gateway, and starts rfdm.


Requirements

OS RHEL 9.6 x86_64
MicroShift Red Hat build of MicroShift 4.16+ (4.20 EUS recommended), installed and active with a valid pull secret
Storage An LVM volume group with free space — MicroShift's LVMS provisioner carves the cache volume out of it
Tools skopeo (dnf install skopeo), plus curl, ip (iproute), cmp (diffutils) and standard coreutils/gawk/grep/sed. The installer checks them before changing the host and prints the dnf packages to install.
Privileges root (sudo)
Ports 80/443 free for the gateway — the installer removes MicroShift's default ingress router to release them
Network Outbound HTTPS to api.roboflow.com (or your --api-base-url) and repo.roboflow.com once running. Nothing is pulled during install.

Warning: removing the default ingress router breaks any existing workloads on this MicroShift instance that rely on Route/Ingress objects. This deployment model assumes a dedicated gateway host.


Install

sudo ./install-microshift.sh \
    --api-key   <KEY> \
    --device-id <ID> \
    --workspace <WS>
Flag Default Purpose
--api-base-url <URL> https://api.roboflow.com Override for sovereign/enterprise (e.g. https://api.roboflow.one). rfdm and the gateway's API upstream (API_URL) both use it.

The script:

  1. Preflights: microshift active and >= 4.16, skopeo present, an LVM volume group exists.
  2. skopeo copys the bundled secure-gateway and seaweedfs OCI archives into CRI-O's containers-storage.
  3. Pins both images via /etc/crio/crio.conf.d/50-roboflow-pinned.conf so kubelet image GC never removes them.
  4. Sets ingress.status: Removed (a /etc/microshift/config.d snippet) and restarts microshift, freeing host 80/443 for the gateway's LoadBalancer Service.
  5. Installs the rfdm binary + systemd unit (ordered after microshift.service) and writes /opt/rfdm/config/device.json with "runtime": "kubernetes".
  6. Drops the bundled kubernetes-mode rfconfig.json into place and starts rfdm, which creates the roboflow-edge namespace and reconciles the pods against the MicroShift API.

TLS certificate

In kubernetes mode rfdm mints a long-lived self-signed certificate for the gateway and stores it in the secure-gateway-tls Secret (type kubernetes.io/tls) in the roboflow-edge namespace; the gateway pod mounts it at /etc/secure-gateway/tls/. The certificate is also exported into the fleet trust bundle that gateway-fronted devices consume.

The offline installer's --rotate-tls and the gateway CA it generates apply to the Docker and Podman flavors only; this installer has no such flag. The gateway keeps the rfdm-minted certificate (it cannot rewrite the read-only Secret), and rfdm renews it.

To bring your own certificate, replace the Secret and restart the pod:

export KUBECONFIG=/var/lib/microshift/resources/kubeadmin/kubeconfig
oc -n roboflow-edge create secret tls secure-gateway-tls \
  --cert=/path/to/tls.crt --key=/path/to/tls.key \
  --dry-run=client -o yaml | oc apply -f -
oc -n roboflow-edge rollout restart deploy/secure-gateway

Custom certificates must cover both api.roboflow.com and repo.roboflow.com in their DNS subject alternative names (an applicable *.roboflow.com wildcard also works), plus the hostname or IP in GATEWAY_PUBLIC_URL when configured. Clients route the canonical API and repository hostnames to the gateway and validate both TLS identities. Startup and client installation reject certificates missing either canonical hostname; startup preserves the supplied certificate and key so the operator can replace them.


Pointing clients at the gateway

Same as the docker flavor — on each client:

Clients require curl, jq, openssl, cmp (diffutils), and the distribution's CA trust tools. On an HTTPS gateway, re-running the client installer on a configured client fetches /ca.crt and /trust-bundle.crt first, over TLS verified against the gateway anchor the client already has installed (or, if none is installed, the system trust store), and refreshes the trust anchors if they changed, for example a new device trust bundle. If the gateway's certificate changed, so that the installed anchor no longer verifies it, the re-run changes nothing and exits 1. It prints the SHA-256 fingerprints of what the gateway now publishes at /ca.crt. Check that the first one matches the gateway's published CA (on the gateway host, curl -fsk https://localhost/ca.crt | openssl x509 -noout -fingerprint -sha256, adding the port if it is not 443; the TLS certificate file starts with the leaf, so it does not match) and re-run with --force to trust them. A first install, or a run with --force, trusts the gateway on first use, as earlier installers did, and prints the fingerprints it trusts so they can be checked the same way. Because of that fetch, the re-run exits 1 if the gateway is unreachable, where earlier scripts exited 0 as already configured. Clients of a plain-HTTP gateway (--insecure-http) install no trust anchors and still exit 0 as already configured. The installer only installs self-signed certificates from /ca.crt and /trust-bundle.crt as trust anchors; a leaf or intermediate of an operator certificate chain is skipped, so clients must already trust that chain's root. Earlier installers also installed the intermediate, which Go clients such as Docker and RFDM accepted as an anchor; on operator full-chain setups, install the corporate root on each client before re-running. Any PEM block other than CERTIFICATE is refused. The client installer preserves Docker settings and routes repo.roboflow.com directly through the gateway; it does not configure a general HTTP forward proxy. For a nondefault gateway port, include that port in Docker image references.

# First install: nothing on the client can authenticate the gateway yet.
curl -fsSLk https://<gateway-host>/install-client.sh -o install-client.sh
sudo bash install-client.sh --server <gateway-host>

The first install trusts what the gateway serves and prints its SHA-256 fingerprints. Compare the first with the gateway's published CA, on the gateway host: curl -fsk https://localhost/ca.crt | openssl x509 -noout -fingerprint -sha256 (add the port if it is not 443). If they differ, something between the client and the gateway served another certificate: run sudo bash install-client.sh --uninstall to remove what was installed, find the cause, and install again. The same check applies to --force.

Re-run with the script fetched over TLS verified by the anchor the first run installed, not with -k. repo.roboflow.com already points at the gateway, and the Host header selects the gateway's own routes:

# RHEL: --cacert /etc/pki/ca-trust/source/anchors/roboflow-secure-gateway.crt
curl -fsSL --cacert /usr/local/share/ca-certificates/roboflow-secure-gateway.crt \
  -H 'Host: secure-gateway' https://repo.roboflow.com/install-client.sh \
  | sudo bash -s -- --server <gateway-host>

With an operator certificate no gateway anchor is installed; drop --cacert, since the client already trusts the corporate root. For a nondefault port, use https://repo.roboflow.com:<port>/install-client.sh.


Verify

systemctl is-active rfdm                                        # active
export KUBECONFIG=/var/lib/microshift/resources/kubeadmin/kubeconfig
oc get pods -n roboflow-edge
# secure-gateway-...   1/1   Running
# seaweedfs-...        1/1   Running

# The LoadBalancer answers on the node IP, not localhost (OVN-Kubernetes
# DNATs traffic addressed to the node IP; nothing binds 80/443 on loopback).
curl -fk https://<node-ip>/health

Day-2

rfdm watches /opt/rfdm/config/rfconfig.json and reconciles the pods on change.

Action Command
Tail rfdm logs sudo journalctl -u rfdm -f
Tail gateway logs oc logs -f deploy/secure-gateway -n roboflow-edge
Edit container env edit /opt/rfdm/config/rfconfig.json; rfdm picks it up
Restart sudo systemctl restart rfdm
Stop & disable sudo systemctl disable --now rfdm

Troubleshooting

Symptom What to do
seaweedfs PVC stays Pending No LVM volume group (or no free space) for LVMS. sudo vgs should list one; create/grow it and delete the PVC so it re-binds.
Gateway LoadBalancer Service stays <pending> Host 80/443 still held — usually the default router is back (ingress.status not Removed) or another process owns the ports. Check sudo microshift show-config --mode effective and ss -tlnp 'sport = :443'.
Pods lose networking after a firewall-cmd --reload A firewalld reload drops OVN-Kubernetes' rules. Restart the ovnkube pod: oc -n openshift-ovn-kubernetes delete pod -l app=ovnkube-master.
Images disappeared after host cleanup podman rmi/podman system prune on the host can delete images the pin doesn't cover. Re-run ./install-microshift.sh to re-import.
rfdm can't reach the API journalctl -u rfdm -n 200; check outbound HTTPS/proxy to api.roboflow.com.

Log sources by component:

Component Where
rfdm sudo journalctl -u rfdm
Gateway HTTP oc logs deploy/secure-gateway -n roboflow-edge
Cache backend oc logs deploy/seaweedfs -n roboflow-edge
MicroShift sudo journalctl -u microshift

Uninstall

sudo systemctl disable --now rfdm
export KUBECONFIG=/var/lib/microshift/resources/kubeadmin/kubeconfig
oc delete namespace roboflow-edge                 # pods, PVC, Secrets, ConfigMaps
sudo rm -rf /opt/rfdm /usr/local/bin/rfdm /etc/systemd/system/rfdm.service
sudo rm -f /etc/crio/crio.conf.d/50-roboflow-pinned.conf
sudo rm -f /etc/microshift/config.d/10-roboflow-ingress.yaml   # restores the default router on next microshift restart
sudo systemctl daemon-reload
sudo systemctl restart crio microshift